diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-11 15:48:49 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-11 16:19:20 -0400 |
commit | 6de783b6f50f7f1db18a3fda0aa34b2e84b5771d (patch) | |
tree | b5606aafa9e9703d433d8dff6ef931027832eb90 /tools/perf/util/annotate.h | |
parent | e8ea1561952b04276cf4c02500e363de76c142aa (diff) |
perf annotate: Resolve symbols using objdump comment
This:
mov 0x95bbb6(%rip),%ecx # ffffffff81ae8d04 <d_hash_shift>
Becomes:
mov d_hash_shift,%ecx
Ditto for many more instructions that take two operands.
Requested-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-i5opbyai2x6mn9e5yjmhx9k6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r-- | tools/perf/util/annotate.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index bb0a9f27165b..066d31d696df 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h | |||
@@ -13,10 +13,16 @@ struct ins; | |||
13 | struct ins_operands { | 13 | struct ins_operands { |
14 | char *raw; | 14 | char *raw; |
15 | struct { | 15 | struct { |
16 | char *raw; | ||
16 | char *name; | 17 | char *name; |
17 | u64 offset; | ||
18 | u64 addr; | 18 | u64 addr; |
19 | u64 offset; | ||
19 | } target; | 20 | } target; |
21 | struct { | ||
22 | char *raw; | ||
23 | char *name; | ||
24 | u64 addr; | ||
25 | } source; | ||
20 | }; | 26 | }; |
21 | 27 | ||
22 | struct ins_ops { | 28 | struct ins_ops { |