summaryrefslogtreecommitdiff
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorDavid Ahern <daahern@cisco.com>2010-12-08 02:39:46 (GMT)
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-12-09 13:07:07 (GMT)
commitb226a5a72901bc9c73d639ea2e53e6c304bf3b74 (patch)
tree3cc388b8450f95af1909c1ce00978b5db6ed17a5 /tools/perf/builtin-report.c
parent2c6cb1053ad8b61ab9fb50b578d0ffea959f7583 (diff)
downloadlinux-b226a5a72901bc9c73d639ea2e53e6c304bf3b74.tar.xz
perf report: Allow user to specify path to kallsyms file
This is useful for analyzing a perf data file on a different system than the one data was collected on and still include symbols from loaded kernel modules in the output. Commiter note: Updated the man page accordingly. LKML-Reference: <1291775986-16475-1-git-send-email-daahern@cisco.com> Signed-off-by: David Ahern <daahern@cisco.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 904519f..b6a2a899 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -443,6 +443,8 @@ static const struct option options[] = {
"dump raw trace in ASCII"),
OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name,
"file", "vmlinux pathname"),
+ OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name,
+ "file", "kallsyms pathname"),
OPT_BOOLEAN('f', "force", &force, "don't complain, do it"),
OPT_BOOLEAN('m', "modules", &symbol_conf.use_modules,
"load module symbols - WARNING: use only with -k and LIVE kernel"),