]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf: tools: cs-etm: Fix print issue for Coresight debug in ETE/TRBE trace
authorMike Leach <mike.leach@arm.com>
Wed, 18 Mar 2026 10:36:39 +0000 (10:36 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 18 Mar 2026 18:47:24 +0000 (11:47 -0700)
commit6c478e7b3eba3f387a2d6c749e3e3ee0f8ad1c53
tree6fb3686ad8919a73dbf581ec7a36e29d5a1efdb1
parentbb551508e78c886e6d3bcca6c744d3bc3fd8ad59
perf: tools: cs-etm: Fix print issue for Coresight debug in ETE/TRBE trace

Building perf with CORESIGHT=1 and the optional CSTRACE_RAW=1 enables
additional debug printing of raw trace data when using command:-
perf report --dump.

This raw trace prints the CoreSight formatted trace frames, which may be
used to investigate suspected issues with trace quality / corruption /
decode.

These frames are not present in ETE + TRBE trace.
This fix removes the unnecessary call to print these frames.

This fix also rationalises implementation - original code had helper
function that unnecessarily repeated initialisation calls that had
already been made.

Due to an addtional fault with the OpenCSD library, this call when ETE/TRBE
are being decoded will cause a segfault in perf. This fix also prevents
that problem for perf using older (<= 1.8.0 version) OpenCSD libraries.

Fixes: 68ffe3902898 ("perf tools: Add decoder mechanic to support dumping trace data")
Reported-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Mike Leach <mike.leach@arm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c