linux/tools/perf/tests/shell/coresight
Leo Yan ca0e19074b perf test: Add Arm CoreSight callchain test
Add a CoreSight shell test for synthesized callchains.

The test uses the new callchain workload to generate trace and decodes
it with synthesis callchain. It then verifies that the instruction
samples show the expected callchain push and pop.

Use control FIFOs so tracing starts only around the workload, which
keeps the trace data small. The test is limited to with the cs_etm
event available and root permission.

After:

  perf test 138 -vvv
  138: CoreSight synthesized callchain:
  ---- start ----
  test child forked, pid 35581
  Callchain flow matched:
    l1=4642868 l2=4642880 l3=4642895 l4=4642919 l5=4670494 l6=4670500 l7=4670520
  ---- end(0) ----
  138: CoreSight synthesized callchain                                                                           : Ok

Assisted-by: Codex:GPT-5.5
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2026-07-03 16:52:00 -07:00
..
callchain.sh perf test: Add Arm CoreSight callchain test 2026-07-03 16:52:00 -07:00
concurrent_threads.sh perf test cs-etm: Test decoding for concurrent threads test 2026-06-10 18:55:49 -03:00
context_switch_thread.sh perf test cs-etm: Test process attribution 2026-06-10 18:55:48 -03:00
deterministic.sh perf test cs-etm: Replace unroll loop thread with deterministic decode test 2026-06-10 18:55:48 -03:00
raw_dump_stress.sh perf test cs-etm: Replace memcpy test with raw dump stress test 2026-06-10 18:55:49 -03:00
test_arm_coresight_disasm.sh perf cs-etm: Filter synthesized branch samples 2026-07-03 16:51:59 -07:00
test_arm_coresight.sh perf test cs-etm: Move existing tests to coresight folder 2026-06-10 18:55:49 -03:00