Skip to content

Commit 512a09f

Browse files
ahunter6acmel
authored andcommitted
perf kvm report: Add guest_code support
Add an option to indicate that guest code can be found in the hypervisor process. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Leo Yan <leo.yan@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: kvm@vger.kernel.org Link: https://lore.kernel.org/r/20220517131011.6117-6-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 5b20814 commit 512a09f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

tools/perf/Documentation/perf-kvm.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ OPTIONS
9494
kernel module information. Users copy it out from guest os.
9595
--guestvmlinux=<path>::
9696
Guest os kernel vmlinux.
97+
--guest-code::
98+
Indicate that guest code can be found in the hypervisor process,
99+
which is a common case for KVM test programs.
97100
-v::
98101
--verbose::
99102
Be more verbose (show counter open errors, etc).

tools/perf/builtin-kvm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,6 +1603,8 @@ int cmd_kvm(int argc, const char **argv)
16031603
"file", "file saving guest os /proc/kallsyms"),
16041604
OPT_STRING(0, "guestmodules", &symbol_conf.default_guest_modules,
16051605
"file", "file saving guest os /proc/modules"),
1606+
OPT_BOOLEAN(0, "guest-code", &symbol_conf.guest_code,
1607+
"Guest code can be found in hypervisor process"),
16061608
OPT_INCR('v', "verbose", &verbose,
16071609
"be more verbose (show counter open errors, etc)"),
16081610
OPT_END()

0 commit comments

Comments
 (0)