diff options
author | Joseph Myers <joseph@codesourcery.com> | 2023-08-08 14:38:22 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2023-08-08 14:38:22 +0000 |
commit | b163fca6c399808f6c447be98d09cd1165e78e07 (patch) | |
tree | a2da2dd57d89542b74d608bec13e97e60ced161b /sysdeps/unix/sysv/linux/aarch64/sys | |
parent | c8c20039c7595677f9180b487c4424a5a08c572f (diff) | |
download | glibc-b163fca6c399808f6c447be98d09cd1165e78e07.tar.gz glibc-b163fca6c399808f6c447be98d09cd1165e78e07.tar.xz glibc-b163fca6c399808f6c447be98d09cd1165e78e07.zip |
Add PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG etc. from Linux 6.4 to sys/ptrace.h
Linux 6.4 adds new constants PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG and PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG. Add those to all relevant sys/ptrace.h headers, along with adding the associated argument structure to bits/ptrace-shared.h (named struct __ptrace_sud_config there following the usual convention for such structures). Tested for x86_64 and with build-many-glibcs.py.
Diffstat (limited to 'sysdeps/unix/sysv/linux/aarch64/sys')
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h index 2bbbedc597..c4dc6f9d02 100644 --- a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h +++ b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h @@ -59,6 +59,8 @@ __BEGIN_DECLS #undef PTRACE_SECCOMP_GET_METADATA #undef PTRACE_GET_SYSCALL_INFO #undef PTRACE_GET_RSEQ_CONFIGURATION +#undef PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG +#undef PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG /* Type of the REQUEST argument to `ptrace.' */ enum __ptrace_request @@ -195,8 +197,18 @@ enum __ptrace_request #define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO /* Get rseq configuration information. */ - PTRACE_GET_RSEQ_CONFIGURATION = 0x420f + PTRACE_GET_RSEQ_CONFIGURATION = 0x420f, #define PTRACE_GET_RSEQ_CONFIGURATION PTRACE_GET_RSEQ_CONFIGURATION + + /* Set configuration for syscall user dispatch. */ + PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210, +#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG \ + PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG + + /* Get configuration for syscall user dispatch. */ + PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG = 0x4211 +#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG \ + PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG }; |