]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest/arm64: Add a GCS stress test
authorMark Brown <broonie@kernel.org>
Tue, 1 Oct 2024 22:59:17 +0000 (23:59 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Oct 2024 11:04:45 +0000 (12:04 +0100)
commit05e6cfff58c481bfe0ada24ebe1c205e2817dacd
tree7427e21b90d118d1615809e669dd5846c0da612e
parent794b64ca5665323f36e5fc92dfca02a3797b6523
kselftest/arm64: Add a GCS stress test

Add a stress test which runs one more process than we have CPUs spinning
through a very recursive function with frequent syscalls immediately prior
to return and signals being injected every 100ms. The goal is to flag up
any scheduling related issues, for example failure to ensure that barriers
are inserted when moving a GCS using task to another CPU. The test runs for
a configurable amount of time, defaulting to 10 seconds.

Reviewed-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Tested-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241001-arm64-gcs-v13-38-222b78d87eee@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/gcs/.gitignore
tools/testing/selftests/arm64/gcs/Makefile
tools/testing/selftests/arm64/gcs/asm-offsets.h [new file with mode: 0644]
tools/testing/selftests/arm64/gcs/gcs-stress-thread.S [new file with mode: 0644]
tools/testing/selftests/arm64/gcs/gcs-stress.c [new file with mode: 0644]