perf top: Keep the default of asking for kernel module symbols
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Oct 2009 17:26:15 +0000 (14:26 -0300)
committerIngo Molnar <mingo@elte.hu>
Mon, 5 Oct 2009 18:35:22 +0000 (20:35 +0200)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-top.c

index befef84..34d48c1 100644 (file)
@@ -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)