]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit65cb559393b8c446cc9893e19140d5ea8dd50bb8
tree78235f6700ca7c392ac9d075dd0b4ef38a858d94
parentd692e4dc92112306d862fb116c8cfb07fd10a6ad
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]