diff options
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 4c8653a86aaf..ded6cf65ad9c 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -948,7 +948,7 @@ static void event__process_sample(const event_t *self, int counter) | |||
948 | map = thread__find_map(thread, ip); | 948 | map = thread__find_map(thread, ip); |
949 | if (map != NULL) { | 949 | if (map != NULL) { |
950 | ip = map->map_ip(map, ip); | 950 | ip = map->map_ip(map, ip); |
951 | sym = map__find_symbol(map, ip, symbol_filter); | 951 | sym = map__find_function(map, ip, symbol_filter); |
952 | if (sym == NULL) | 952 | if (sym == NULL) |
953 | return; | 953 | return; |
954 | userspace_samples++; | 954 | userspace_samples++; |
@@ -968,7 +968,7 @@ static void event__process_sample(const event_t *self, int counter) | |||
968 | if (hide_kernel_symbols) | 968 | if (hide_kernel_symbols) |
969 | return; | 969 | return; |
970 | 970 | ||
971 | sym = kernel_maps__find_symbol(ip, &map, symbol_filter); | 971 | sym = kernel_maps__find_function(ip, &map, symbol_filter); |
972 | if (sym == NULL) | 972 | if (sym == NULL) |
973 | return; | 973 | return; |
974 | break; | 974 | break; |