Skip to content

arm64/sme: ptrace support for TPIDR2_EL0

Mark Brown linux-arm-kernel linux-kselftest 4 versions – Applied

Status from this message: Applied to arm64 (for-next/tpidr2_el0), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 5 repliesApplied
  2. v34 patches 0 repliesSuperseded
  3. v24 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Rebase onto v6.0-rc3.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4kselftest/arm64: Add test coverage for NT_ARM_TLStools/testing/selftests/arm64/abi/.gitignore tools/testing/selftests/arm64/abi/Makefile tools/testing/selftests/arm64/abi/ptrace.c+167 -10 replies
2/4arm64/ptrace: Document extension of NT_ARM_TLS to cover TPIDR2_EL0Documentation/arm64/sme.rst+3 -00 replies
3/4arm64/ptrace: Support access to TPIDR2_EL0arch/arm64/kernel/ptrace.c+20 -54 replies
4/4kselftest/arm64: Add coverage of TPIDR2_EL0 ptrace interfacetools/testing/selftests/arm64/abi/ptrace.c+79 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/4] arm64/sme: ptrace support for TPIDR2_EL0

When SME was initially merged we did not add support for TPIDR2_EL0 to the ptrace interface, creating difficulties for debuggers in accessing lazy save state for ZA. This series implements that support, extending the existing NT_ARM_TLS regset to support the register when available, and adds kselftest coverage for the existing and new NT_ARM_TLS functionality.

Existing programs that query the size of the register set will be able to observe the increased size of the register set. Programs that assume the register set is single register will see no change. On systems that do not support SME TPIDR2_EL0 will read as 0 and writes will be ignored, support for SME should be queried via hwcaps as normal.

v4:
- Rebase onto v6.0-rc3.
v3:
- Fix copyright date on test program.
v2:
- Rebase onto v6.0-rc1.

Mark Brown (4):
kselftest/arm64: Add test coverage for NT_ARM_TLS arm64/ptrace: Document extension of NT_ARM_TLS to cover TPIDR2_EL0 arm64/ptrace: Support access to TPIDR2_EL0 kselftest/arm64: Add coverage of TPIDR2_EL0 ptrace interface

 Documentation/arm64/sme.rst                  |   3 +
 arch/arm64/kernel/ptrace.c                   |  25 +-
 tools/testing/selftests/arm64/abi/.gitignore |   1 +
 tools/testing/selftests/arm64/abi/Makefile   |   2 +-
 tools/testing/selftests/arm64/abi/ptrace.c   | 241 +++++++++++++++++++
 5 files changed, 266 insertions(+), 6 deletions(-)
 create mode 100644 tools/testing/selftests/arm64/abi/ptrace.c

base-commit: b90cb1053190353cc30f0fef0ef1f378ccc063c5

Signature · 1 line
2.30.2