diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-03-24 15:40:18 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-26 03:52:57 -0400 |
commit | b3c9ac0846c654dea4df095999ee202e8b4cb253 (patch) | |
tree | 4845ae36123beba5bc9959be7c67cc0ce4bc5a11 /tools/perf/util/newt.c | |
parent | 59fd53062f71011a68d03f4cd0ba93d822ac3249 (diff) |
perf callchains: Store the map together with the symbol
We need this to know where a symbol in a callchain came from,
for various reasons, among them precise annotation from a
TUI/GUI tool.
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-5-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/newt.c')
-rw-r--r-- | tools/perf/util/newt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c index 25cd2e1f4251..f6953ca89bbc 100644 --- a/tools/perf/util/newt.c +++ b/tools/perf/util/newt.c | |||
@@ -104,8 +104,8 @@ static void newt_checkbox_tree__add(newtComponent tree, const char *str, | |||
104 | static char *callchain_list__sym_name(struct callchain_list *self, | 104 | static char *callchain_list__sym_name(struct callchain_list *self, |
105 | char *bf, size_t bfsize) | 105 | char *bf, size_t bfsize) |
106 | { | 106 | { |
107 | if (self->sym) | 107 | if (self->ms.sym) |
108 | return self->sym->name; | 108 | return self->ms.sym->name; |
109 | 109 | ||
110 | snprintf(bf, bfsize, "%#Lx", self->ip); | 110 | snprintf(bf, bfsize, "%#Lx", self->ip); |
111 | return bf; | 111 | return bf; |
@@ -157,7 +157,7 @@ static void __callchain__append_graph_browser(struct callchain_node *self, | |||
157 | indexes[depth + 2] = NEWT_ARG_LAST; | 157 | indexes[depth + 2] = NEWT_ARG_LAST; |
158 | ++chain_idx; | 158 | ++chain_idx; |
159 | } | 159 | } |
160 | newt_checkbox_tree__add(tree, str, chain->sym, indexes); | 160 | newt_checkbox_tree__add(tree, str, chain->ms.sym, indexes); |
161 | free(alloc_str); | 161 | free(alloc_str); |
162 | ++printed; | 162 | ++printed; |
163 | } | 163 | } |
@@ -193,7 +193,7 @@ static void callchain__append_graph_browser(struct callchain_node *self, | |||
193 | continue; | 193 | continue; |
194 | 194 | ||
195 | str = callchain_list__sym_name(chain, ipstr, sizeof(ipstr)); | 195 | str = callchain_list__sym_name(chain, ipstr, sizeof(ipstr)); |
196 | newt_checkbox_tree__add(tree, str, chain->sym, indexes); | 196 | newt_checkbox_tree__add(tree, str, chain->ms.sym, indexes); |
197 | } | 197 | } |
198 | 198 | ||
199 | indexes[1] = parent_idx; | 199 | indexes[1] = parent_idx; |