On Fri, Nov 20, 2026 at 10:54:34AM -0800, Amir Ayupov wrote:
[...]
--- a/Documentation/trace/coresight/coresight-perf.rst +++ b/Documentation/trace/coresight/coresight-perf.rst @@ -109,6 +109,21 @@ Example for triggering AUX pause and resume with PMU event:: -e cycles/aux-action=pause,period=10000000/ \ -e cycles/aux-action=resume,period=1050000/ -- sleep 1 +Using external-output pulses +----------------------------
+The ``pmu_pulse`` configuration drives fixed external output 1. Separately +select the matching PMU event, ``trcextout1``, to count it. The hardware must +support and connect this output to that PMU; this is not checked automatically.
+Perf skips CPUs whose trace units do not support this configuration and fails +setup if none remain. Use the PMU instance that counts output 1 on your system::
- perf record -a -e '{cs_etm/pmu_pulse,aux-action=start-paused/u,cycles/aux-action=resume,period=10000000/u,armv8_pmuv3_0/trcextout1,aux-action=pause,period=5000/u}' -- sleep 1
For the record, this series drops the PMU feature check. Since TRCEXTOUT support is already in mainline, the ETM driver is only responsible for enabling ETM pulses, while the PMU driver handles the corresponding events.
If PMU feature is missing, I'd use a separate patch for the PMU driver.
For this patch:
Reviewed-by: Leo Yan leo.yan@arm.com