]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
perf report: Introduce --ignore-vmlinux command line option
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Mar 2018 19:27:04 +0000 (16:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Mar 2018 15:53:42 +0000 (12:53 -0300)
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>
tools/perf/Documentation/perf-report.txt
tools/perf/builtin-report.c

index cba16d8a970e472b1afe48d45eba0acdf17fd2ff..e1a660e60849f33663afff25687855328eecc6fa 100644 (file)
@@ -296,6 +296,9 @@ OPTIONS
 --vmlinux=<file>::
         vmlinux pathname
 
+--ignore-vmlinux::
+       Ignore vmlinux files.
+
 --kallsyms=<file>::
         kallsyms pathname
 
index 1a82f38671a866ddddfa89c3bab29eb7cf1fab92..0f198f6d9b77b049078606493bc8a92019b25f68 100644 (file)
@@ -1018,6 +1018,8 @@ int cmd_report(int argc, const char **argv)
        OPT_BOOLEAN(0, "mmaps", &report.mmaps_mode, "Display recorded tasks memory maps"),
        OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name,
                   "file", "vmlinux pathname"),
+       OPT_BOOLEAN(0, "ignore-vmlinux", &symbol_conf.ignore_vmlinux,
+                    "don't load vmlinux even if found"),
        OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name,
                   "file", "kallsyms pathname"),
        OPT_BOOLEAN('f', "force", &symbol_conf.force, "don't complain, do it"),