diff options
author | Szabolcs Nagy <nsz@port70.net> | 2021-07-07 17:46:31 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2022-03-08 17:21:26 -0500 |
commit | bdb5454065f74b0f6b5ddd8ee39f83d6303c97bb (patch) | |
tree | 4144e65d9fe3c3cb280cc0f6649ae77f77a7083f | |
parent | aa3bab6ce48d4e210ba3a86fed62e589df789ff4 (diff) | |
download | musl-bdb5454065f74b0f6b5ddd8ee39f83d6303c97bb.tar.gz musl-bdb5454065f74b0f6b5ddd8ee39f83d6303c97bb.tar.xz musl-bdb5454065f74b0f6b5ddd8ee39f83d6303c97bb.zip |
sys/ptrace.h: add PTRACE_GET_RSEQ_CONFIGURATION from linux v5.13
see linux commit 90f093fa8ea48e5d991332cee160b761423d55c1 rseq, ptrace: Add PTRACE_GET_RSEQ_CONFIGURATION request the struct type got __ prefix to follow existing practice.
-rw-r--r-- | include/sys/ptrace.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sys/ptrace.h b/include/sys/ptrace.h index 5d62a985..c72e3c06 100644 --- a/include/sys/ptrace.h +++ b/include/sys/ptrace.h @@ -42,6 +42,7 @@ extern "C" { #define PTRACE_SECCOMP_GET_FILTER 0x420c #define PTRACE_SECCOMP_GET_METADATA 0x420d #define PTRACE_GET_SYSCALL_INFO 0x420e +#define PTRACE_GET_RSEQ_CONFIGURATION 0x420f #define PT_READ_I PTRACE_PEEKTEXT #define PT_READ_D PTRACE_PEEKDATA @@ -130,6 +131,14 @@ struct __ptrace_syscall_info { }; }; +struct __ptrace_rseq_configuration { + uint64_t rseq_abi_pointer; + uint32_t rseq_abi_size; + uint32_t signature; + uint32_t flags; + uint32_t pad; +}; + long ptrace(int, ...); #ifdef __cplusplus |