kselftest/arm64: Add coverage of TPIDR2_EL0 ptrace interface
authorMark Brown <broonie@kernel.org>
Mon, 29 Aug 2022 15:49:21 +0000 (16:49 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 21 Sep 2022 16:26:59 +0000 (17:26 +0100)
commit2ddadec2206ca47a30995d22fa83be575e78f2a2
tree8a0f99e435e4eb5ffdf020d3de904991bd16b4de
parent0027d9c6c7b57b61b82f7275633ba89d0de2d2fd
kselftest/arm64: Add coverage of TPIDR2_EL0 ptrace interface

Extend the ptrace test support for NT_ARM_TLS to cover TPIDR2_EL0 - on
systems that support SME the NT_ARM_TLS regset can be up to 2 elements
long with the second element containing TPIDR2_EL0. On systems
supporting SME we verify that this value can be read and written while
on systems that do not support SME we verify correct truncation of reads
and writes.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220829154921.837871-5-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/abi/ptrace.c