History

arm64/sme: Implement ZT0 ptrace support

Implement support for a new note type NT_ARM64_ZT providing access to ZT0 when implemented. Since ZT0 is a register with constant size this is much simpler than for other SME state. As ZT0 is only accessible when PSTATE.ZA is set writes to ZT0 cause PSTATE.ZA to be set, the main alternative would be to return -EBUSY in this case but this seemed more constructive. Practical users are also going to be working with ZA anyway and have some understanding of the state.

Mark Brown committed 3 years ago

Commit f90b5291 parent ee072cf2 files · +55 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/elf.h+1−0
@@ -434,6 +434,7 @@ typedef struct elf64_shdr { · 433 unmodified lines
434434 #define NT_ARM_PAC_ENABLED_KEYS 0x40a /* arm64 ptr auth enabled keys (prctl()) */
435435 #define NT_ARM_SSVE 0x40b /* ARM Streaming SVE registers */
436436 #define NT_ARM_ZA 0x40c /* ARM SME ZA registers */
437+#define NT_ARM_ZT 0x40d /* ARM SME ZT registers */
437438 #define NT_ARC_V2 0x600 /* ARCv2 accumulator/extra registers */
438439 #define NT_VMCOREDD 0x700 /* Vmcore Device Dump Note */
439440 #define NT_MIPS_DSP 0x800 /* MIPS DSP ASE registers */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t