diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-03-24 15:40:17 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-26 03:52:57 -0400 |
commit | 59fd53062f71011a68d03f4cd0ba93d822ac3249 (patch) | |
tree | d707ca954b8e1fb9c0808b23d83951f357ac8a0d /tools/perf/util/symbol.h | |
parent | ac73c5a9c1767b2771e6d2b5accafdef89db04c2 (diff) |
perf tools: Introduce struct map_symbol
That will be in both struct hist_entry and struct
callchain_list, so that the TUI can store a pointer to the pair
(map, symbol) in the trees where hist_entries and
callchain_lists are present, to allow precise annotation instead
of looking for the first symbol with the selected name.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1269459619-982-4-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 0da2455d5b90..a4a894b8ea03 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -88,6 +88,11 @@ struct ref_reloc_sym { | |||
88 | u64 unrelocated_addr; | 88 | u64 unrelocated_addr; |
89 | }; | 89 | }; |
90 | 90 | ||
91 | struct map_symbol { | ||
92 | struct map *map; | ||
93 | struct symbol *sym; | ||
94 | }; | ||
95 | |||
91 | struct addr_location { | 96 | struct addr_location { |
92 | struct thread *thread; | 97 | struct thread *thread; |
93 | struct map *map; | 98 | struct map *map; |