diff options
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 07b92c378ae2..6d770ac7be0b 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -948,7 +948,12 @@ static int symbol_filter(struct map *map, struct symbol *sym) | |||
948 | 948 | ||
949 | static int parse_symbols(void) | 949 | static int parse_symbols(void) |
950 | { | 950 | { |
951 | if (dsos__load_kernel(vmlinux_name, symbol_filter, 1) <= 0) | 951 | struct dso *kernel = dsos__load_kernel(); |
952 | |||
953 | if (kernel == NULL) | ||
954 | return -1; | ||
955 | |||
956 | if (dso__load_kernel_sym(kernel, symbol_filter, 1) <= 0) | ||
952 | return -1; | 957 | return -1; |
953 | 958 | ||
954 | if (dump_symtab) | 959 | if (dump_symtab) |