aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-11-27 13:29:17 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-27 14:21:59 -0500
commit6a4694a433a218c729d336b348a01bfc720da095 (patch)
tree19c166d8cb244fa0ec504cd49f7de957552ce573 /tools/perf/builtin-top.c
parent3610583c29563e23dd038d2870f59c88438bf7a3 (diff)
perf symbols: Better support for multiple symbol tables per dso
By using an array of rb_roots in struct dso we can, from a struct map instance to get the right symbol rb_tree more easily. This way we can have just one symbol lookup method for struct map instances, map__find_symbol, instead of one per symtab type (functions, variables). 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: <1259346563-12568-6-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index a0168f260d06..abe78bbd154a 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -948,7 +948,7 @@ static void event__process_sample(const event_t *self, int counter)
948 map = thread__find_map(thread, ip); 948 map = thread__find_map(thread, ip);
949 if (map != NULL) { 949 if (map != NULL) {
950 ip = map->map_ip(map, ip); 950 ip = map->map_ip(map, ip);
951 sym = map__find_function(map, ip, symbol_filter); 951 sym = map__find_symbol(map, ip, symbol_filter);
952 if (sym == NULL) 952 if (sym == NULL)
953 return; 953 return;
954 userspace_samples++; 954 userspace_samples++;