aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 0ee3d05a0409..e4b1004e76ea 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -448,14 +448,14 @@ got_map:
448 * trick of looking in the whole kernel symbol list. 448 * trick of looking in the whole kernel symbol list.
449 */ 449 */
450 if ((long long)ip < 0) 450 if ((long long)ip < 0)
451 return kernel_maps__find_symbol(ip, mapp, NULL); 451 return kernel_maps__find_function(ip, mapp, NULL);
452 } 452 }
453 dump_printf(" ...... dso: %s\n", 453 dump_printf(" ...... dso: %s\n",
454 map ? map->dso->long_name : "<not found>"); 454 map ? map->dso->long_name : "<not found>");
455 dump_printf(" ...... map: %Lx -> %Lx\n", *ipp, ip); 455 dump_printf(" ...... map: %Lx -> %Lx\n", *ipp, ip);
456 *ipp = ip; 456 *ipp = ip;
457 457
458 return map ? map__find_symbol(map, ip, NULL) : NULL; 458 return map ? map__find_function(map, ip, NULL) : NULL;
459} 459}
460 460
461static int call__match(struct symbol *sym) 461static int call__match(struct symbol *sym)
@@ -495,7 +495,7 @@ static struct symbol **resolve_callchain(struct thread *thread,
495 case PERF_CONTEXT_HV: 495 case PERF_CONTEXT_HV:
496 break; 496 break;
497 case PERF_CONTEXT_KERNEL: 497 case PERF_CONTEXT_KERNEL:
498 sym = kernel_maps__find_symbol(ip, NULL, NULL); 498 sym = kernel_maps__find_function(ip, NULL, NULL);
499 break; 499 break;
500 default: 500 default:
501 sym = resolve_symbol(thread, NULL, &ip); 501 sym = resolve_symbol(thread, NULL, &ip);
@@ -715,7 +715,7 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head)
715 715
716 if (cpumode == PERF_RECORD_MISC_KERNEL) { 716 if (cpumode == PERF_RECORD_MISC_KERNEL) {
717 level = 'k'; 717 level = 'k';
718 sym = kernel_maps__find_symbol(ip, &map, NULL); 718 sym = kernel_maps__find_function(ip, &map, NULL);
719 dump_printf(" ...... dso: %s\n", 719 dump_printf(" ...... dso: %s\n",
720 map ? map->dso->long_name : "<not found>"); 720 map ? map->dso->long_name : "<not found>");
721 } else if (cpumode == PERF_RECORD_MISC_USER) { 721 } else if (cpumode == PERF_RECORD_MISC_USER) {