Skip to content

Commit 1b3aae9

Browse files
committed
perf top: Allow passing a kallsyms file
This basically replicates what was done for 'perf report' in: b226a5a ("perf report: Allow user to specify path to kallsyms file") This should help with resolving eBPF symbols, that are in kallsyms but, of course, not in vmlinux. Reported-by: Ivan Babrou <[email protected]> Tested-by: Ivan Babrou <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: David Ahern <[email protected]> Cc: David S. Miller <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 1970289 commit 1b3aae9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tools/perf/Documentation/perf-top.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ Default is to monitor all CPUS.
7070
--ignore-vmlinux::
7171
Ignore vmlinux files.
7272

73+
--kallsyms=<file>::
74+
kallsyms pathname
75+
7376
-m <pages>::
7477
--mmap-pages=<pages>::
7578
Number of mmap data pages (must be a power of two) or size

tools/perf/builtin-top.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,8 @@ int cmd_top(int argc, const char **argv)
12891289
"file", "vmlinux pathname"),
12901290
OPT_BOOLEAN(0, "ignore-vmlinux", &symbol_conf.ignore_vmlinux,
12911291
"don't load vmlinux even if found"),
1292+
OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name,
1293+
"file", "kallsyms pathname"),
12921294
OPT_BOOLEAN('K', "hide_kernel_symbols", &top.hide_kernel_symbols,
12931295
"hide kernel symbols"),
12941296
OPT_CALLBACK('m', "mmap-pages", &opts->mmap_pages, "pages",

0 commit comments

Comments
 (0)