aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-kmem.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-03-26 11:30:40 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-04-02 15:27:43 -0400
commit7e5e1b1404c30db5f6bc3f5203b6c21c1d244f99 (patch)
tree1203765ed3e60af2ba7682677ed2553c6226f058 /tools/perf/builtin-kmem.c
parentc6e718ff8cdcf5e7855077687720b37c4a07650a (diff)
perf symbols: map_groups__find_symbol must return the map too
Tools need to know from which map in the map_group a symbol was resolved to, so that, for isntance, we can annotate kernel modules symbols by getting its precise name, etc. Also add the _by_name variants for completeness. 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> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-kmem.c')
-rw-r--r--tools/perf/builtin-kmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c
index 924a9518931a..32edb6a86876 100644
--- a/tools/perf/builtin-kmem.c
+++ b/tools/perf/builtin-kmem.c
@@ -369,7 +369,8 @@ static void __print_result(struct rb_root *root, struct perf_session *session,
369 if (is_caller) { 369 if (is_caller) {
370 addr = data->call_site; 370 addr = data->call_site;
371 if (!raw_ip) 371 if (!raw_ip)
372 sym = map_groups__find_function(&session->kmaps, addr, NULL); 372 sym = map_groups__find_function(&session->kmaps,
373 addr, NULL, NULL);
373 } else 374 } else
374 addr = data->ptr; 375 addr = data->ptr;
375 376