]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: etm4x: Hook pause and resume callbacks
authorLeo Yan <leo.yan@arm.com>
Tue, 1 Apr 2025 18:07:04 +0000 (19:07 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 14 May 2025 10:56:17 +0000 (11:56 +0100)
commit0814151bae4b50d49514666b5f06920ce3eb829b
tree78a663c04fc0930ce50f5ad7ac7e7158bd92e596
parent5fa96c83b81e50833274f3b450ee9a8c0b2172bc
coresight: etm4x: Hook pause and resume callbacks

Add callbacks for pausing and resuming the tracer.

A "paused" flag in the driver data indicates whether the tracer is
paused.  If the flag is set, the driver will skip starting the hardware
trace.  The flag is always set to false for the sysfs mode, meaning the
tracer will never be paused in the case.

Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250401180708.385396-4-leo.yan@arm.com
drivers/hwtracing/coresight/coresight-etm4x-core.c
drivers/hwtracing/coresight/coresight-etm4x.h