diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-11-24 10:01:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-24 10:37:03 -0500 |
commit | fcf1203a919c3a3d212c0ed01f5240fd592bf5ae (patch) | |
tree | bd7a9f796882c5b01fabc4afe2bdea6ac74c2098 /tools/perf/builtin-annotate.c | |
parent | 727dad10c17cbaade3cb6a56bd4863a4630f4d13 (diff) |
perf symbols: Rename find_symbol routines to find_function
Paving the way for supporting variable in adition to function
symbols.
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: <1259074912-5924-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r-- | tools/perf/builtin-annotate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index cd97c2b1cc3..18ac5eaefc3 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
@@ -162,7 +162,7 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) | |||
162 | 162 | ||
163 | if (event->header.misc & PERF_RECORD_MISC_KERNEL) { | 163 | if (event->header.misc & PERF_RECORD_MISC_KERNEL) { |
164 | level = 'k'; | 164 | level = 'k'; |
165 | sym = kernel_maps__find_symbol(ip, &map, symbol_filter); | 165 | sym = kernel_maps__find_function(ip, &map, symbol_filter); |
166 | dump_printf(" ...... dso: %s\n", | 166 | dump_printf(" ...... dso: %s\n", |
167 | map ? map->dso->long_name : "<not found>"); | 167 | map ? map->dso->long_name : "<not found>"); |
168 | } else if (event->header.misc & PERF_RECORD_MISC_USER) { | 168 | } else if (event->header.misc & PERF_RECORD_MISC_USER) { |
@@ -171,7 +171,7 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) | |||
171 | if (map != NULL) { | 171 | if (map != NULL) { |
172 | got_map: | 172 | got_map: |
173 | ip = map->map_ip(map, ip); | 173 | ip = map->map_ip(map, ip); |
174 | sym = map__find_symbol(map, ip, symbol_filter); | 174 | sym = map__find_function(map, ip, symbol_filter); |
175 | } else { | 175 | } else { |
176 | /* | 176 | /* |
177 | * If this is outside of all known maps, | 177 | * If this is outside of all known maps, |