linux/tools/perf/tests/workloads
James Clark 904708945c perf test: Compile named_threads workload with -O0
The work loop relies on the compiler not optimizing it away, although
named_threads_work is not static for that reason, the compiler could
still do it.

Fix it by compiling without optimization. Also add -fno-inline for
consistency and in case anyone wants to look at callstacks.

Fixes: b5dd510be55e8670 ("perf test: Add named_threads workload")
Closes: https://lore.kernel.org/all/20260609160001.2739E1F00893@smtp.kernel.org
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2026-06-11 21:14:30 -03:00
..
brstack.c perf test: Add 'brstack' test workload 2022-11-23 10:28:01 -03:00
Build perf test: Compile named_threads workload with -O0 2026-06-11 21:14:30 -03: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 test: Name the noploop process 2025-07-01 15:37:22 -07:00
sqrtloop.c perf test: Add 'sqrtloop' test workload 2022-11-23 10:26:27 -03:00
thloop.c perf test workload: Add thread count argument to thloop 2025-10-28 16:59:58 -07:00
traploop.c perf test: Extend branch stack sampling test for Arm64 BRBE 2025-10-01 15:31:49 -03:00