Linux Perf Users
 help / color / mirror / Atom feed
* [PATCH 0/2] perf cs-etm: Queue context packets for frontend
@ 2026-05-26 11:14 James Clark
  2026-05-26 11:14 ` [PATCH 1/2] " James Clark
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: James Clark @ 2026-05-26 11:14 UTC (permalink / raw)
  To: Suzuki K Poulose, Mike Leach, Leo Yan, Peter Zijlstra,
	Ingo Molnar, Arnaldo Carvalho de Melo, Namhyung Kim, Mark Rutland,
	Alexander Shishkin, Jiri Olsa, Ian Rogers, Adrian Hunter,
	John Garry, Will Deacon, Amir Ayupov
  Cc: coresight, linux-arm-kernel, linux-perf-users, linux-kernel,
	James Clark

Fix thread tracking when decoding Coresight trace and add a new test for
it.

Unfortunately the test has to be added as a separate binary like the
other existing Coresight workloads which needs a bit of makefile
boilerplate. Ideally it would be a builtin Perf test workload, but Perf
has a lot of dependencies and generates a lot of trace when starting up
which makes tracing tests very slow because all that has to be decoded.

Hopefully I can find a generic way to enable Perf events at the
beginning of the workload and then I can migrate everything from
tools/perf/tests/shell/coresight to Perf test workloads, but that will
have to be done as a separate change.

Signed-off-by: James Clark <james.clark@linaro.org>
---
James Clark (1):
      perf test cs-etm: Test thread attribution

Leo Yan (1):
      perf cs-etm: Queue context packets for frontend

 tools/perf/tests/shell/coresight/Makefile          |   1 +
 .../shell/coresight/context_switch_loop/.gitignore |   1 +
 .../shell/coresight/context_switch_loop/Makefile   |  29 ++++
 .../context_switch_loop/context_switch_loop.c      |  83 ++++++++++
 .../tests/shell/coresight/context_switch_thread.sh |  48 ++++++
 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c    |  18 +-
 tools/perf/util/cs-etm.c                           | 181 +++++++++++++--------
 tools/perf/util/cs-etm.h                           |   5 +-
 8 files changed, 295 insertions(+), 71 deletions(-)
---
base-commit: 09d355618f7ccc27ffc7fc668b2e232872962079
change-id: 20260515-james-cs-context-tracking-fix-754998bae7ed

Best regards,
-- 
James Clark <james.clark@linaro.org>


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

end of thread, other threads:[~2026-05-29 14:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-26 11:14 [PATCH 0/2] perf cs-etm: Queue context packets for frontend James Clark
2026-05-26 11:14 ` [PATCH 1/2] " James Clark
2026-05-26 11:53   ` sashiko-bot
2026-05-26 11:14 ` [PATCH 2/2] perf test cs-etm: Test thread attribution James Clark
2026-05-26 12:13   ` sashiko-bot
2026-05-29 14:55 ` [PATCH 0/2] perf cs-etm: Queue context packets for frontend Arnaldo Carvalho de Melo
2026-05-29 14:58   ` James Clark

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