linux/tools/perf/arch/x86
Adrian Hunter 3fc173fb4f perf intel-pt: Fix exclude_guest setting
[ Upstream commit b40934ae32 ]

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: 6e86bfdc4a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-08-03 08:53:53 +02:00
..
annotate perf annotate: Remove x86 instructions with suffix 2023-06-09 10:56:05 -03:00
entry/syscalls tools headers UAPI: Sync files changed by new fchmodat2 and map_shadow_stack syscalls with the kernel sources 2023-09-13 08:24:51 -03:00
include perf parse-regs: Remove unused macros PERF_REG_{IP|SP} 2023-08-16 08:48:06 -03:00
tests perf tools changes and fixes for v6.5: 1st batch 2023-06-30 11:35:41 -07:00
util perf intel-pt: Fix exclude_guest setting 2024-08-03 08:53:53 +02:00
Build perf tools: Rename build libperf to perf 2019-02-14 15:18:08 -03:00
Makefile perf tools: Clean 'generated' directory used for creating the syscall table on x86 2021-03-06 16:54:25 -03:00