perf symbols: Remove unrelated actions from dso__load_kernel_sym
It should just load kernel symbols, not load the list of modules. There are more stuff to move to other routines, but lets do it in several steps. End goal is to be able to defer symbol table loading till we find a hit for that map address range. So that the kernel & modules are handled just like all the other DSOs in the system. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1258757489-5978-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
96200591a3
commit
6671cb1674
@@ -953,8 +953,16 @@ static int parse_symbols(void)
|
||||
if (kernel == NULL)
|
||||
return -1;
|
||||
|
||||
if (dsos__load_modules() < 0)
|
||||
pr_debug("Couldn't read the complete list of modules, "
|
||||
"continuing...\n");
|
||||
|
||||
if (dsos__load_modules_sym(symbol_filter) < 0)
|
||||
pr_warning("Failed to read module symbols, continuing...\n");
|
||||
|
||||
if (dso__load_kernel_sym(kernel, symbol_filter, 1) <= 0)
|
||||
return -1;
|
||||
pr_debug("Couldn't read the complete list of kernel symbols, "
|
||||
"continuing...\n");
|
||||
|
||||
if (dump_symtab)
|
||||
dsos__fprintf(stderr);
|
||||
|
Reference in New Issue
Block a user