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-report.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-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 8 |
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 | ||
461 | static int call__match(struct symbol *sym) | 461 | static 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) { |