diff options
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r-- | tools/perf/builtin-annotate.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 377cb7c9bdda..0846c8a155ed 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
@@ -169,7 +169,6 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) | |||
169 | level = '.'; | 169 | level = '.'; |
170 | map = thread__find_map(thread, ip); | 170 | map = thread__find_map(thread, ip); |
171 | if (map != NULL) { | 171 | if (map != NULL) { |
172 | got_map: | ||
173 | ip = map->map_ip(map, ip); | 172 | ip = map->map_ip(map, ip); |
174 | sym = map__find_function(map, ip, symbol_filter); | 173 | sym = map__find_function(map, ip, symbol_filter); |
175 | } else { | 174 | } else { |
@@ -183,10 +182,9 @@ got_map: | |||
183 | * the "[vdso]" dso, but for now lets use the old | 182 | * the "[vdso]" dso, but for now lets use the old |
184 | * trick of looking in the whole kernel symbol list. | 183 | * trick of looking in the whole kernel symbol list. |
185 | */ | 184 | */ |
186 | if ((long long)ip < 0) { | 185 | if ((long long)ip < 0) |
187 | map = kernel_map__functions; | 186 | sym = kernel_maps__find_function(ip, &map, |
188 | goto got_map; | 187 | symbol_filter); |
189 | } | ||
190 | } | 188 | } |
191 | dump_printf(" ...... dso: %s\n", | 189 | dump_printf(" ...... dso: %s\n", |
192 | map ? map->dso->long_name : "<not found>"); | 190 | map ? map->dso->long_name : "<not found>"); |