summaryrefslogtreecommitdiff
path: root/include/linux/coresight.h
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2022-02-04 18:24:03 +0300
committerSuzuki K Poulose <suzuki.poulose@arm.com>2022-03-11 13:07:55 +0300
commitec70b05d5da9ac753868e55607298b0699a7ad27 (patch)
tree26c981a1d3830fcb49621d95548a3ff9156d88cf /include/linux/coresight.h
parentaab473867fed4a0b29f9456286d8f680be0ab314 (diff)
downloadlinux-ec70b05d5da9ac753868e55607298b0699a7ad27.tar.xz
coresight: etm3x: Don't trace PID for non-root PID namespace
ETMv3 driver enables PID tracing by directly using perf config from userspace, this means the tracer will capture PID packets from root namespace but the profiling session runs in non-root PID namespace. Finally, the recorded packets can mislead perf reporting with the mismatched PID values. This patch changes to only enable PID tracing for root PID namespace. Note, the hardware supports VMID tracing from ETMv3.5, but the driver never enables VMID trace, this patch doesn't handle VMID trace (bit 30 in ETMCR register) particularly. Signed-off-by: Leo Yan <leo.yan@linaro.org> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20220204152403.71775-5-leo.yan@linaro.org
Diffstat (limited to 'include/linux/coresight.h')
0 files changed, 0 insertions, 0 deletions