1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-12 19:04:54 +03:00

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.
This commit is contained in:
Joseph Myers
2023-08-08 14:38:22 +00:00
parent c8c20039c7
commit b163fca6c3
9 changed files with 103 additions and 7 deletions

View File

@@ -130,6 +130,16 @@ struct __ptrace_rseq_configuration
__uint32_t pad;
};
/* Argument of PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG and
PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG. */
struct __ptrace_sud_config
{
__uint64_t mode;
__uint64_t selector;
__uint64_t offset;
__uint64_t len;
};
/* Perform process tracing functions. REQUEST is one of the values
above, and determines the action to be taken.
For all requests except PTRACE_TRACEME, PID specifies the process to be