about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/bits/ptrace-shared.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2021-08-09 16:51:38 +0000
committerJoseph Myers <joseph@codesourcery.com>2021-08-09 16:51:38 +0000
commit98149b16d645e9644a8e9b3d1f4b7932b9b193c5 (patch)
tree485baa22fe5b8f1cbcc222b150e38a6821585b09 /sysdeps/unix/sysv/linux/bits/ptrace-shared.h
parentb805aebd42364fe696e417808a700fdb9800c9e8 (diff)
downloadglibc-98149b16d645e9644a8e9b3d1f4b7932b9b193c5.tar.gz
glibc-98149b16d645e9644a8e9b3d1f4b7932b9b193c5.tar.xz
glibc-98149b16d645e9644a8e9b3d1f4b7932b9b193c5.zip
Add PTRACE_GET_RSEQ_CONFIGURATION from Linux 5.13 to sys/ptrace.h
Linux 5.13 adds a PTRACE_GET_RSEQ_CONFIGURATION constant, with an
associated ptrace_rseq_configuration structure.

Add this constant to the various sys/ptrace.h headers in glibc, with
the structure in bits/ptrace-shared.h (named struct
__ptrace_rseq_configuration in glibc, as with other such structures).

Tested for x86_64, and with build-many-glibcs.py.
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits/ptrace-shared.h')
-rw-r--r--sysdeps/unix/sysv/linux/bits/ptrace-shared.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/ptrace-shared.h b/sysdeps/unix/sysv/linux/bits/ptrace-shared.h
index 7d40634da5..7e95ca7082 100644
--- a/sysdeps/unix/sysv/linux/bits/ptrace-shared.h
+++ b/sysdeps/unix/sysv/linux/bits/ptrace-shared.h
@@ -120,6 +120,16 @@ struct __ptrace_syscall_info
   };
 };
 
+/* Results of PTRACE_GET_RSEQ_CONFIGURATION.  */
+struct __ptrace_rseq_configuration
+{
+  __uint64_t rseq_abi_pointer;
+  __uint32_t rseq_abi_size;
+  __uint32_t signature;
+  __uint32_t flags;
+  __uint32_t pad;
+};
+
 /* 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