]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf intel-pt: Fix exclude_guest setting
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 25 Jun 2024 10:45:32 +0000 (13:45 +0300)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 2 Jul 2024 22:24:07 +0000 (15:24 -0700)
commitb40934ae32232140e85dc7dc1c3ea0e296986723
treef7bd188cca5eb135a4510a4c2edf389f0a837bcc
parent36b4cd990a8fd3f5b748883050e9d8c69fe6398d
perf intel-pt: Fix exclude_guest setting

In the past, the exclude_guest setting has had no effect on Intel PT
tracing, but that may not be the case in the future.

Set the flag correctly based upon whether KVM is using Intel PT
"Host/Guest" mode, which is determined by the kvm_intel module
parameter pt_mode:

 pt_mode=0 System-wide mode : host and guest output to host buffer
 pt_mode=1 Host/Guest mode : host/guest output to host/guest
                buffers respectively

Fixes: 6e86bfdc4a60 ("perf intel-pt: Support decoding of guest kernel")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240625104532.11990-3-adrian.hunter@intel.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/arch/x86/util/intel-pt.c