perf symbols: Cache /proc/kallsyms files by build-id
So that when we don't have a vmlinux handy we can store the kallsyms for later use by 'perf report'. 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: <1263501006-14185-3-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
8d0591f6ad
commit
9e201442de
@ -245,7 +245,7 @@ int event__synthesize_kernel_mmap(event__handler_t process,
|
||||
*/
|
||||
struct process_symbol_args args = { .name = symbol_name, };
|
||||
|
||||
if (kallsyms__parse(&args, find_symbol_cb) <= 0)
|
||||
if (kallsyms__parse("/proc/kallsyms", &args, find_symbol_cb) <= 0)
|
||||
return -ENOENT;
|
||||
|
||||
size = snprintf(ev.mmap.filename, sizeof(ev.mmap.filename),
|
||||
|
Reference in New Issue
Block a user