Skip to content

Commit fa23100

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: Add streaming SVE to SVE ptrace tests
In order to allow ptrace of streaming mode SVE registers we have added a new regset for streaming mode which in isolation offers the same ABI as regular SVE with a different vector type. Add this to the array of regsets we handle, together with additional tests for the interoperation of the two regsets. 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-37-broonie@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 4963aeb commit fa23100

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tools/testing/selftests/arm64/fp/sve-ptrace.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#define NT_ARM_SVE 0x405
2727
#endif
2828

29+
#ifndef NT_ARM_SSVE
30+
#define NT_ARM_SSVE 0x40b
31+
#endif
32+
2933
struct vec_type {
3034
const char *name;
3135
unsigned long hwcap_type;
@@ -42,6 +46,13 @@ static const struct vec_type vec_types[] = {
4246
.regset = NT_ARM_SVE,
4347
.prctl_set = PR_SVE_SET_VL,
4448
},
49+
{
50+
.name = "Streaming SVE",
51+
.hwcap_type = AT_HWCAP2,
52+
.hwcap = HWCAP2_SME,
53+
.regset = NT_ARM_SSVE,
54+
.prctl_set = PR_SME_SET_VL,
55+
},
4556
};
4657

4758
#define VL_TESTS (((SVE_VQ_MAX - SVE_VQ_MIN) + 1) * 4)

0 commit comments

Comments
 (0)