selftests: arm64: Add test for the SVE ptrace interface
authorMark Brown <broonie@kernel.org>
Wed, 19 Aug 2020 11:48:33 +0000 (12:48 +0100)
committerWill Deacon <will@kernel.org>
Fri, 18 Sep 2020 13:17:58 +0000 (14:17 +0100)
commit0dca276ac4d20d4071b3d3095b1ad33269ea5272
tree0799747647494395949cf61e2363140416e5d13b
parentca765153eb90577e5fda281485048427b80a9a77
selftests: arm64: Add test for the SVE ptrace interface

Add a test case that does some basic verification of the SVE ptrace
interface, forking off a child with known values in the registers and
then using ptrace to inspect and manipulate the SVE registers of the
child, including in FPSIMD mode to account for sharing between the SVE
and FPSIMD registers.

This program was written by Dave Martin and modified for kselftest by
me.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20200819114837.51466-3-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/sve-ptrace-asm.S [new file with mode: 0644]
tools/testing/selftests/arm64/fp/sve-ptrace.c [new file with mode: 0644]