kselftest/arm64: Add coverage for the ZA ptrace interface
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:45 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Apr 2022 16:57:12 +0000 (17:57 +0100)
commit86c8888f91a95a30d8a224c0c655ddac33d04eac
tree78235f6700ca7c392ac9d075dd0b4ef38a858d94
parentfa23100bbad0748f6503511b109cfec955e4183d
kselftest/arm64: Add coverage for the ZA ptrace interface

Add some basic coverage for the ZA ptrace interface, including walking
through all the vector lengths supported in the system.  Unlike SVE
doing syscalls does not discard the ZA state so when we set data in ZA
we run the child process briefly, having it add one to each byte in ZA
in order to validate that both the vector size and data are being read
and written as expected when the process runs.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220419112247.711548-38-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/.gitignore
tools/testing/selftests/arm64/fp/Makefile
tools/testing/selftests/arm64/fp/za-ptrace.c [new file with mode: 0644]