public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] perf: tools: cs-etm: Fixes for CoreSight debug dump
@ 2026-03-13 13:21 Mike Leach
  2026-03-13 13:21 ` [PATCH 1/2] perf: tools: cs-etm: Fix print issue for Coresight debug in ETE/TRBE trace Mike Leach
  2026-03-13 13:21 ` [PATCH 2/2] perf: tools: cs-etm: Enhance raw Coresight trace debug display Mike Leach
  0 siblings, 2 replies; 8+ messages in thread
From: Mike Leach @ 2026-03-13 13:21 UTC (permalink / raw)
  To: linux-perf-users, linux-arm-kernel, coresight, linux-kernel, acme
  Cc: suzuki.poulose, leo.yan, peterz, mingo, will, mark.rutland,
	alexander.shishkin, jolsa, namhyung, Mike Leach

perf will output additional CoreSight debug information, from the
'perf report --dump' command, when the build option CSTRACE_RAW=1
is added to the usual CORESIGHT=1 at build time.

This additional information consists of raw trace data in the form of
CoreSight formatted trace frames. This is intended to be used to
investigate possible issues relating to trace data corruption,
trace hardware issues or problems with decode.

The CoreSight formatted trace frames are used when multiple ETMs trace
into an ETR, and not present when a single ETE traces into the TRBE.

When the build option is used and perf is used to dump an ETE/TRBE
generated buffer a segfault will occur in the OpenCSD library.

Patch 1 of this set removes the unnecessary call to print the raw trace
frames when not needed, and fixes the segfault where older versions
of OpenCSD are in use.

Patch 2 enhances the debug output to associate raw data with individual
packets, which means that raw data is now present for ETE and extended
for ETM.

OpenCSD is being fixed independently.

Mike Leach (2):
  perf: tools: cs-etm: Fix print issue for Coresight debug in ETE/TRBE
    trace
  perf: tools: cs-etm: Enhance raw Coresight trace debug display

 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-18 18:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13 13:21 [PATCH 0/2] perf: tools: cs-etm: Fixes for CoreSight debug dump Mike Leach
2026-03-13 13:21 ` [PATCH 1/2] perf: tools: cs-etm: Fix print issue for Coresight debug in ETE/TRBE trace Mike Leach
2026-03-13 14:42   ` Leo Yan
2026-03-17 15:09     ` Mike Leach
2026-03-13 13:21 ` [PATCH 2/2] perf: tools: cs-etm: Enhance raw Coresight trace debug display Mike Leach
2026-03-13 14:45   ` Leo Yan
2026-03-18 12:56     ` Arnaldo Carvalho de Melo
2026-03-18 18:45       ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox