kselftest/arm64: Add test case for TPIDR2 signal frame records
authorMark Brown <broonie@kernel.org>
Tue, 27 Dec 2022 14:20:43 +0000 (14:20 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 20 Jan 2023 12:42:31 +0000 (12:42 +0000)
commit8ced928019353eaecbffee566d7ed6a9a9e60e78
treeb6733ca8c6e69aee4034f7bd67341073d0bd41ab
parentbae393dabf353172784987c12c99a55cbe8075bc
kselftest/arm64: Add test case for TPIDR2 signal frame records

Ensure that we get signal context for TPIDR2 if and only if SME is present
on the system. Since TPIDR2 is owned by libc we merely validate that the
value is whatever it was set to, this isn't ideal since it's likely to
just be the default of 0 with current systems but it avoids future false
positives.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221208-arm64-tpidr2-sig-v3-4-c77c6c8775f4@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/signal/.gitignore
tools/testing/selftests/arm64/signal/testcases/tpidr2_siginfo.c [new file with mode: 0644]