소스 검색

perf top: Keep the default of asking for kernel module symbols

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>
Arnaldo Carvalho de Melo 15 년 전
부모
커밋
5c2068059a
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      tools/perf/builtin-top.c

+ 1 - 3
tools/perf/builtin-top.c

@@ -804,10 +804,8 @@ static int symbol_filter(struct map *map, struct symbol *sym)
 
 
 static int parse_symbols(void)
 static int parse_symbols(void)
 {
 {
-	int use_modules = vmlinux_name ? 1 : 0;
-
 	if (dsos__load_kernel(vmlinux_name, sizeof(struct sym_entry),
 	if (dsos__load_kernel(vmlinux_name, sizeof(struct sym_entry),
-			      symbol_filter, verbose, use_modules) <= 0)
+			      symbol_filter, verbose, 1) <= 0)
 		return -1;
 		return -1;
 
 
 	if (dump_symtab)
 	if (dump_symtab)