[PATCH v3 0/4] perf: cs-etm: HW_ID improvements

James Clark james.clark at linaro.org
Wed Oct 21 01:42:24 PDT 2026



On 02/10/2026 12:15, James Clark wrote:
> The driver might not always be able to write HW_IDs, but we don't need
> them for unformatted mode anyway, so fix that in commit ("perf cs-etm:
> Synthesize missing HW_ID mappings for raw trace").
> 
> Include some other minor improvements encountered on the way to appease
> Sashiko, like properly freeing queues and ("perf: cs-etm: Respect
> --no-itrace option") makes debugging broken Coresight perf.data files
> easier.
> 
> Signed-off-by: James Clark <james.clark at linaro.org>
> ---
> Changes in v3:
> - Remove old b4 prerequisite metadata that's no longer relevant.
> - Link to v2: https://patch.msgid.link/20261002-james-cs-hw_id-output-failure-v2-0-7a194aa61173@linaro.org
> 
> Changes in v2:
> - Drop driver changes and move to https://lore.kernel.org/linux-perf-users/20261001-james-cs-retry-hw_id-v1-0-4d45ab46cde7@linaro.org/T/#t
> - Don't process any HW_IDs for unformatted queues, just create decoders
>    unconditionally with trace ID 1.
> - Use zfree() instead of etmq->decoder = NULL
> - Remove dependency on "[PATCH v2 00/14] perf cs-etm: Per-thread mode
>    fixes and snapshot wrap support", it wasn't functionally dependant,
>    just touching some of the same lines.
> - Link to v1: https://patch.msgid.link/20260821-james-cs-hw_id-output-failure-v1-0-9d532ddabcc3@linaro.org
> 
> ---
> James Clark (3):
>        perf: cs-etm: Don't add global v0 HW_IDs to unformatted queues
>        perf cs-etm: Free partially created queues
>        perf: cs-etm: Respect --no-itrace option
> 
> Leo Yan (1):
>        perf cs-etm: Synthesize missing HW_ID mappings for raw trace
> 
>   tools/perf/util/auxtrace.c                      |   2 +-
>   tools/perf/util/auxtrace.h                      |   1 +
>   tools/perf/util/cs-etm-decoder/cs-etm-decoder.c |  12 +-
>   tools/perf/util/cs-etm-decoder/cs-etm-decoder.h |   2 +-
>   tools/perf/util/cs-etm.c                        | 184 +++++++++++++++---------
>   5 files changed, 123 insertions(+), 78 deletions(-)
> ---
> base-commit: 705da5b15ab89ba97b11eedbe507c2fd83d31cb9
> change-id: 20260706-james-cs-hw_id-output-failure-1d06d042ef96
> 
> Best regards,
> --
> James Clark <james.clark at linaro.org>
> 

Hi Arnaldo,

Is it ok to take this one please, Leo has left his review tags.


Thanks
James




More information about the linux-arm-kernel mailing list