aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index cd97c2b1cc3b..18ac5eaefc36 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) {
172got_map: 172got_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,