kselftest/arm64: Remove assumption that tasks start FPSIMD only
authorMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 09:06:12 +0000 (10:06 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Apr 2022 16:57:10 +0000 (17:57 +0100)
commit1fb1e285b4a8a3664897c34414787ea825124cb2
tree0460219b008fb51e9d7f26a9686846cb5a4258d2
parent854f856f7ee35d26cdfd26e4eb3f293cc8cd8d12
kselftest/arm64: Remove assumption that tasks start FPSIMD only

Currently the sve-ptrace test for setting and reading FPSIMD data assumes
that the child will start off in FPSIMD only mode and that it can use this
to read some FPSIMD mode SVE ptrace data, skipping the test if it can't.
This isn't an assumption guaranteed by the ABI and also limits how we can
use this testcase within the program. Instead skip the initial read and
just generate a FPSIMD format buffer for the write part of the test, making
the coverage more robust in the face of future kernel and test program
changes.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220404090613.181272-3-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/sve-ptrace.c