summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/perf/builtin-top.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index befef842757e..34d48c1b7a8b 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -804,10 +804,8 @@ static int symbol_filter(struct map *map, struct symbol *sym)
static int parse_symbols(void)
{
- int use_modules = vmlinux_name ? 1 : 0;
-
if (dsos__load_kernel(vmlinux_name, sizeof(struct sym_entry),
- symbol_filter, verbose, use_modules) <= 0)
+ symbol_filter, verbose, 1) <= 0)
return -1;
if (dump_symtab)