Taeung Song
e7cb9de211
perf annotate: More exactly grep -v of the objdump command
...
The 'grep -v "filename"' applied to the objdump command output cause a
side effect eliminating filename:linenr of output of 'objdump -l' if the
object file name and source file name are the same, fix it.
E.g. the output of the following objdump command in symbol__disassemble():
$ objdump -l -d -S -C /home/taeung/hello --start-address=...
/home/taeung/hello: file format elf64-x86-64
Disassembly of section .text:
0000000000400526 <main>:
main():
/home/taeung/hello.c:4
void main()
{
400526: 55 push %rbp
400527: 48 89 e5 mov %rsp,%rbp
/home/taeung/hello.c:5
...
But it uses grep -v "filename" e.g. "/home/taeung/hello" in the objdump
command to remove the first line containing file name and file format
("/home/taeung/hello: file format elf64-x86-64"):
Before:
$ objdump -l -d -S -C /home/taeung/hello | grep /home/taeung/hello
But this causes a side effect, removing filename:linenr too, because the
object file and source file have the same name e.g. "/home/taueng/hello",
"/home/taeung/hello.c"
So more do a better match by using grep -v as below to correctly remove
that first line:
"/home/taeung/hello: file format elf64-x86-64"
After:
$ objdump -l -d -S -C /home/taeung/hello | grep /home/taeung/hello:
Signed-off-by: Taeung Song <treeze.taeung@gmail.com >
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com >
Cc: Jiri Olsa <jolsa@kernel.org >
Cc: Masami Hiramatsu <mhiramat@kernel.org >
Cc: Namhyung Kim <namhyung@kernel.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Wang Nan <wangnan0@huawei.com >
Link: http://lkml.kernel.org/r/1489978617-31396-5-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com >
2017-03-21 15:42:25 -03:00
..
2016-12-05 15:51:45 -03:00
2016-09-01 12:41:09 -03:00
2017-03-16 17:29:23 +01:00
2016-06-23 10:30:31 -03:00
2017-02-28 11:38:18 -08:00
2016-07-12 15:19:58 -03:00
2017-03-21 15:42:25 -03:00
2016-12-15 16:25:46 -03:00
2016-09-29 11:17:02 -03:00
2016-09-29 11:17:02 -03:00
2016-09-08 13:44:03 -03:00
2016-09-08 13:44:03 -03:00
2017-02-08 08:55:02 -03:00
2016-07-13 23:09:03 -03:00
2015-11-18 17:51:04 -03:00
2015-11-18 17:51:04 -03:00
2017-03-16 09:24:35 -03:00
2016-09-29 11:17:02 -03:00
2016-07-13 23:09:08 -03:00
2016-07-12 15:19:58 -03:00
2016-05-06 13:00:43 -03:00
2016-05-06 13:00:43 -03:00
2017-02-02 11:39:09 -03:00
2017-02-02 11:39:09 -03:00
2017-03-03 19:07:14 -03:00
2017-03-03 19:07:14 -03:00
2016-07-12 15:20:34 -03:00
2017-03-03 19:07:19 -03:00
2016-07-12 15:20:24 -03:00
2015-08-05 16:44:02 -03:00
2017-03-03 19:07:15 -03:00
2014-10-29 10:32:49 -02:00
2017-01-27 12:23:33 -03:00
2016-11-14 13:10:37 -03:00
2015-08-08 14:16:49 -03:00
2015-08-08 14:16:49 -03:00
2017-03-03 19:07:17 -03:00
2017-03-03 19:07:17 -03:00
2016-09-22 12:19:40 -03:00
2016-02-24 20:21:12 -03:00
2017-03-14 11:38:23 -03:00
2016-06-28 10:54:55 -03:00
2016-06-28 10:54:56 -03:00
2016-07-12 15:19:47 -03:00
2016-04-14 08:57:54 -03:00
2016-05-30 12:41:43 -03:00
2016-05-06 13:00:53 -03:00
2017-02-20 11:16:32 -03:00
2017-02-20 11:16:32 -03:00
2016-02-05 09:46:45 -03:00
2016-02-05 09:46:45 -03:00
2016-07-12 16:12:38 -03:00
2016-07-12 16:12:38 -03:00
2016-09-22 12:19:41 -03:00
2016-09-22 12:19:41 -03:00
2017-03-03 19:07:15 -03:00
2017-03-03 19:07:15 -03:00
2017-03-16 09:24:35 -03:00
2017-03-16 09:24:35 -03:00
2016-09-29 11:17:08 -03:00
2016-09-29 11:17:08 -03:00
2016-09-01 12:41:09 -03:00
2017-02-17 12:56:35 -03:00
2016-07-04 19:39:01 -03:00
2017-03-17 11:52:18 -03:00
2017-03-17 11:52:18 -03:00
2017-03-03 19:07:16 -03:00
2017-03-03 19:07:15 -03:00
2017-02-13 17:22:34 -03:00
2017-03-14 11:38:23 -03:00
2016-12-15 16:25:46 -03:00
2014-10-29 10:32:48 -02:00
2016-02-05 12:33:09 -03:00
2016-10-24 11:07:40 -03:00
2016-10-24 11:07:40 -03:00
2016-01-08 12:46:17 -03:00
2016-06-06 17:04:15 -03:00
2017-02-17 12:56:35 -03:00
2016-10-03 19:58:00 -03:00
2016-07-12 15:20:24 -03:00
2015-12-14 12:30:37 -03:00
2017-03-14 15:17:37 -03:00
2017-03-14 15:17:37 -03:00
2016-10-24 10:31:32 -03:00
2015-08-21 11:34:10 -03:00
2017-01-27 12:23:33 -03:00
2016-09-29 11:17:05 -03:00
2016-06-23 11:39:19 -03:00
2016-03-23 15:06:35 -03:00
2016-10-24 11:07:40 -03:00
2016-10-24 11:07:39 -03:00
2016-01-29 17:49:54 -03:00
2016-07-12 15:19:58 -03:00
2017-01-27 12:23:33 -03:00
2016-12-05 15:51:42 -03:00
2016-08-24 11:20:58 -03:00
2017-03-14 11:38:23 -03:00
2017-03-14 11:38:23 -03:00
2017-03-03 19:07:15 -03:00
2017-03-03 19:07:15 -03:00
2016-11-23 10:44:05 -03:00
2016-11-23 10:44:05 -03:00
2017-03-14 11:38:23 -03:00
2017-03-14 11:38:23 -03:00
2016-04-14 08:57:54 -03:00
2016-04-14 08:57:54 -03:00
2016-10-28 11:29:45 -02:00
2016-10-24 11:07:35 -03:00
2017-03-03 19:07:19 -03:00
2017-03-15 17:48:37 -03:00
2016-10-17 11:24:18 -03:00
2017-02-17 17:28:22 -03:00
2015-12-17 14:27:14 -03:00
2015-08-31 18:01:33 -03:00
2016-07-12 15:19:58 -03:00
2017-03-21 10:59:01 -03:00
2017-03-21 10:59:01 -03:00
2016-11-29 12:13:27 -03:00
2016-12-05 15:51:42 -03:00
2016-12-05 15:51:42 -03:00
2017-02-20 11:35:54 -03:00
2017-02-08 08:55:04 -03:00
2017-03-21 10:34:59 -03:00
2016-11-25 11:25:46 -03:00
2017-03-21 10:59:01 -03:00
2017-03-14 15:17:39 -03:00
2017-02-27 18:43:46 -08:00
2017-01-16 15:43:04 -03:00
2015-05-05 18:13:22 -03:00
2015-05-05 18:13:22 -03:00
2016-10-28 11:29:45 -02:00
2016-07-18 19:49:47 -03:00
2016-10-24 11:07:44 -03:00
2016-07-12 15:19:55 -03:00
2016-06-23 11:35:07 -03:00
2016-06-23 11:26:15 -03:00
2017-03-17 11:52:18 -03:00
2016-04-13 10:11:52 -03:00
2017-02-17 10:31:13 -03:00
2017-03-14 15:17:37 -03:00
2017-03-14 15:17:37 -03:00
2015-09-02 16:30:46 -03:00
2016-06-06 17:04:16 -03:00
2017-02-20 11:35:54 -03:00
2016-06-06 17:04:16 -03:00
2016-07-12 15:19:55 -03:00
2016-10-03 11:24:13 -03:00
2017-02-08 17:31:10 -03:00
2015-05-04 12:43:54 -03:00
2017-02-08 17:31:01 -03:00
2016-01-12 12:42:07 -03:00
2016-06-23 11:35:01 -03:00
2016-08-23 15:37:33 -03:00
2016-03-23 15:06:35 -03:00
2017-02-13 17:22:34 -03:00
2017-03-21 10:56:28 -03:00
2016-09-05 11:14:50 -03:00
2017-02-08 09:28:55 -03:00
2017-03-21 10:56:28 -03:00
2016-04-08 09:58:14 -03:00
2016-04-08 09:58:14 -03:00
2016-07-29 11:54:35 -03:00
2015-12-09 13:42:02 -03:00
2015-12-09 13:42:02 -03:00
2017-03-03 19:07:16 -03:00
2017-03-03 19:07:16 -03:00
2016-06-23 17:04:26 -03:00
2016-06-23 17:04:26 -03:00
2017-03-14 11:38:23 -03:00
2017-03-14 11:38:23 -03:00
2016-12-01 13:02:39 -03:00
2016-12-01 13:02:39 -03:00
2017-03-14 11:38:23 -03:00
2016-05-20 11:43:55 -03:00
2017-01-31 16:20:08 -03:00
2017-01-26 11:42:59 -03:00
2017-01-26 11:43:00 -03:00
2016-10-28 11:29:44 -02:00
2016-07-12 16:14:52 -03:00
2017-01-26 11:42:59 -03:00
2016-04-28 09:58:58 -03:00
2016-03-08 10:11:18 +01:00
2016-04-01 18:42:55 -03:00
2016-08-16 15:23:29 -03:00
2015-11-23 18:31:13 -03:00
2017-01-18 12:29:52 -03:00
2016-07-04 20:27:12 -03:00
2016-07-04 20:27:12 -03:00
2016-03-23 12:32:31 -03:00
2016-12-05 15:51:44 -03:00
2017-01-31 16:20:07 -03:00
2017-03-03 19:07:19 -03:00
2016-10-24 11:07:44 -03:00
2016-10-24 11:07:44 -03:00
2016-06-23 10:25:58 -03:00
2015-05-29 12:43:44 -03:00
2015-06-16 10:34:39 -03:00
2015-06-16 10:34:39 -03:00
2014-11-05 10:11:26 -03:00