Add programs sve-test and fpsimd-test which spin reading and writing to the SVE and FPSIMD registers, verifying the operations they perform. The intended use is to leave them running to stress the context switch code's handling of these registers which isn't compatible with what kselftest does so they're not integrated into the framework but there's no other obvious testsuite where they fit so let's store them here. These tests were written by Dave Martin and lightly adapted 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-4-broonie@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
11 lines
228 B
C
11 lines
228 B
C
#define sa_sz 32
|
|
#define sa_flags 8
|
|
#define sa_handler 0
|
|
#define sa_mask_sz 8
|
|
#define SIGUSR1 10
|
|
#define SIGTERM 15
|
|
#define SIGINT 2
|
|
#define SIGABRT 6
|
|
#define SA_NODEFER 1073741824
|
|
#define SA_SIGINFO 4
|
|
#define ucontext_regs 184
|