linux/tools/perf/tests/workloads
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
..
brstack.c perf test: Add 'brstack' test workload 2022-11-23 10:28:01 -03:00
Build perf test: Add Arm CoreSight callchain test 2026-07-03 16:52:00 -07:00
callchain.c perf test: Add Arm CoreSight callchain test 2026-07-03 16:52:00 -07:00
code_with_type.c perf test workload: Add code_with_type test workload 2026-02-08 19:16:24 -03:00
code_with_type.rs perf tests workload: Formatting for code_with_type.rs 2026-02-09 15:36:00 -03:00
context_switch_loop.c perf test: Add a workload that forces context switches 2026-06-10 18:55:48 -03:00
datasym.c perf test type profiling: Remote typedef on struct 2026-03-03 22:37:48 -08:00
deterministic.c perf test: Add deterministic workload 2026-06-10 18:55:48 -03:00
inlineloop.c perf test workload: Add inlineloop test workload 2026-01-12 16:11:15 -03:00
jitdump.c perf test: Remove /usr/bin/cc dependency from Intel PT shell test 2026-06-04 11:41:46 -03:00
landlock.c perf test: Remove duplicate word 2024-12-12 15:55:16 -03:00
leafloop.c perf test: Make leafloop workload immune to compiler options 2026-05-29 11:48:48 -03:00
named_threads.c perf test: Add named_threads workload 2026-06-10 18:55:49 -03:00
noploop.c perf tests workloads: Support sub-second durations in noploop and thloop 2026-06-30 17:09:13 -07:00
sqrtloop.c perf test: Add 'sqrtloop' test workload 2022-11-23 10:26:27 -03:00
thloop.c perf tests workloads: Support sub-second durations in noploop and thloop 2026-06-30 17:09:13 -07:00
traploop.c perf test: Extend branch stack sampling test for Arm64 BRBE 2025-10-01 15:31:49 -03:00