]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c49034c642757cdb5bbb70f64133e1edc150234
tree8a0f99e435e4eb5ffdf020d3de904991bd16b4de
parentd296915fe8321bcd25a6f0db86438bd8816e3569
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