mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-23 12:10:10 -04:00
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>
30 lines
1017 B
Plaintext
30 lines
1017 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
perf-test-y += noploop.o
|
|
perf-test-y += thloop.o
|
|
perf-test-y += named_threads.o
|
|
perf-test-y += leafloop.o
|
|
perf-test-y += sqrtloop.o
|
|
perf-test-y += brstack.o
|
|
perf-test-y += datasym.o
|
|
perf-test-y += landlock.o
|
|
perf-test-y += traploop.o
|
|
perf-test-y += inlineloop.o
|
|
perf-test-y += jitdump.o
|
|
perf-test-y += context_switch_loop.o
|
|
perf-test-y += deterministic.o
|
|
|
|
ifeq ($(CONFIG_RUST_SUPPORT),y)
|
|
perf-test-y += code_with_type.o
|
|
perf-test-y += code_with_type.a
|
|
endif
|
|
|
|
CFLAGS_sqrtloop.o = -g -O0 -fno-inline -U_FORTIFY_SOURCE
|
|
CFLAGS_leafloop.o = -g -O0 -fno-inline -fno-omit-frame-pointer -U_FORTIFY_SOURCE
|
|
CFLAGS_brstack.o = -g -O0 -fno-inline -U_FORTIFY_SOURCE
|
|
CFLAGS_datasym.o = -g -O0 -fno-inline -U_FORTIFY_SOURCE
|
|
CFLAGS_traploop.o = -g -O0 -fno-inline -U_FORTIFY_SOURCE
|
|
CFLAGS_inlineloop.o = -g -O2
|
|
CFLAGS_deterministic.o = -g -O0 -fno-inline -U_FORTIFY_SOURCE
|
|
CFLAGS_named_threads.o = -g -O0 -fno-inline -U_FORTIFY_SOURCE
|