aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2018-03-16 15:27:04 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-03-21 11:53:42 -0400
commit91340c5184f316d687d4522b9aa41b56d58a49b0 (patch)
tree852e8d528ae90d237a58046f3f34608baaa26cec
parentbe316409e9819423fc965e11486e6631734520ba (diff)
perf report: Introduce --ignore-vmlinux command line option
We've had this in 'perf top' for quite a while, useful if one wishes to force using /proc/kcore to do annotation using the patched kernel instead of the ELF image it started from, aka vmlinux. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-ircpvox4wzsv7gasrpb28fw9@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Documentation/perf-report.txt3
-rw-r--r--tools/perf/builtin-report.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt
index cba16d8a970e..e1a660e60849 100644
--- a/tools/perf/Documentation/perf-report.txt
+++ b/tools/perf/Documentation/perf-report.txt
@@ -296,6 +296,9 @@ OPTIONS
296--vmlinux=<file>:: 296--vmlinux=<file>::
297 vmlinux pathname 297 vmlinux pathname
298 298
299--ignore-vmlinux::
300 Ignore vmlinux files.
301
299--kallsyms=<file>:: 302--kallsyms=<file>::
300 kallsyms pathname 303 kallsyms pathname
301 304
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 1a82f38671a8..0f198f6d9b77 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -1018,6 +1018,8 @@ int cmd_report(int argc, const char **argv)
1018 OPT_BOOLEAN(0, "mmaps", &report.mmaps_mode, "Display recorded tasks memory maps"), 1018 OPT_BOOLEAN(0, "mmaps", &report.mmaps_mode, "Display recorded tasks memory maps"),
1019 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, 1019 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name,
1020 "file", "vmlinux pathname"), 1020 "file", "vmlinux pathname"),
1021 OPT_BOOLEAN(0, "ignore-vmlinux", &symbol_conf.ignore_vmlinux,
1022 "don't load vmlinux even if found"),
1021 OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name, 1023 OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name,
1022 "file", "kallsyms pathname"), 1024 "file", "kallsyms pathname"),
1023 OPT_BOOLEAN('f', "force", &symbol_conf.force, "don't complain, do it"), 1025 OPT_BOOLEAN('f', "force", &symbol_conf.force, "don't complain, do it"),