|
|
25845f |
commit 521c6785e1fc94d1f501743e9a40af9e02797df3
|
|
|
25845f |
Author: Andreas Jaeger <aj@suse.de>
|
|
|
25845f |
Date: Thu Jul 4 09:45:12 2013 +0200
|
|
|
25845f |
|
|
|
25845f |
Sync sys/ptrace with Linux 3.10
|
|
|
25845f |
|
|
|
25845f |
diff -rup a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h 2018-05-08 22:10:50.628796132 -0400
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h 2018-05-08 22:33:59.528930354 -0400
|
|
|
25845f |
@@ -21,6 +21,7 @@
|
|
|
25845f |
#define _SYS_PTRACE_H 1
|
|
|
25845f |
|
|
|
25845f |
#include <features.h>
|
|
|
25845f |
+#include <bits/types.h>
|
|
|
25845f |
|
|
|
25845f |
__BEGIN_DECLS
|
|
|
25845f |
|
|
|
25845f |
@@ -123,7 +124,11 @@ enum __ptrace_request
|
|
|
25845f |
#define PTRACE_INTERRUPT PTRACE_INTERRUPT
|
|
|
25845f |
|
|
|
25845f |
/* Wait for next group event. */
|
|
|
25845f |
- PTRACE_LISTEN = 0x4208
|
|
|
25845f |
+ PTRACE_LISTEN = 0x4208,
|
|
|
25845f |
+#define PTRACE_LISTEN PTRACE_LISTEN
|
|
|
25845f |
+
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO = 0x4209
|
|
|
25845f |
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
@@ -159,6 +164,20 @@ enum __ptrace_eventcodes
|
|
|
25845f |
PTRACE_EVENT_SECCOMP = 7
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
+/* Arguments for PTRACE_PEEKSIGINFO. */
|
|
|
25845f |
+struct __ptrace_peeksiginfo_args
|
|
|
25845f |
+{
|
|
|
25845f |
+ __uint64_t off; /* From which siginfo to start. */
|
|
|
25845f |
+ __uint32_t flags; /* Flags for peeksiginfo. */
|
|
|
25845f |
+ __int32_t nr; /* How many siginfos to take. */
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
+enum __ptrace_peeksiginfo_flags
|
|
|
25845f |
+{
|
|
|
25845f |
+ /* Read signals from a shared (process wide) queue. */
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
/* Perform process tracing functions. REQUEST is one of the values
|
|
|
25845f |
above, and determines the action to be taken.
|
|
|
25845f |
For all requests except PTRACE_TRACEME, PID specifies the process to be
|
|
|
25845f |
diff -rup a/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h b/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h 2018-05-08 22:10:51.979794763 -0400
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h 2018-05-08 22:33:59.532930337 -0400
|
|
|
25845f |
@@ -21,6 +21,7 @@
|
|
|
25845f |
|
|
|
25845f |
#include <features.h>
|
|
|
25845f |
#include <sys/ucontext.h>
|
|
|
25845f |
+#include <bits/types.h>
|
|
|
25845f |
|
|
|
25845f |
__BEGIN_DECLS
|
|
|
25845f |
|
|
|
25845f |
@@ -128,7 +129,11 @@ enum __ptrace_request
|
|
|
25845f |
#define PTRACE_INTERRUPT PTRACE_INTERRUPT
|
|
|
25845f |
|
|
|
25845f |
/* Wait for next group event. */
|
|
|
25845f |
- PTRACE_LISTEN = 0x4208
|
|
|
25845f |
+ PTRACE_LISTEN = 0x4208,
|
|
|
25845f |
+#define PTRACE_LISTEN PTRACE_LISTEN
|
|
|
25845f |
+
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO = 0x4209
|
|
|
25845f |
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
@@ -179,6 +184,20 @@ enum __ptrace_eventcodes
|
|
|
25845f |
PTRACE_EVENT_SECCOMP = 7
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
+/* Arguments for PTRACE_PEEKSIGINFO. */
|
|
|
25845f |
+struct __ptrace_peeksiginfo_args
|
|
|
25845f |
+{
|
|
|
25845f |
+ __uint64_t off; /* From which siginfo to start. */
|
|
|
25845f |
+ __uint32_t flags; /* Flags for peeksiginfo. */
|
|
|
25845f |
+ __int32_t nr; /* How many siginfos to take. */
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
+enum __ptrace_peeksiginfo_flags
|
|
|
25845f |
+{
|
|
|
25845f |
+ /* Read signals from a shared (process wide) queue. */
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
/* Perform process tracing functions. REQUEST is one of the values
|
|
|
25845f |
above, and determines the action to be taken.
|
|
|
25845f |
For all requests except PTRACE_TRACEME, PID specifies the process to be
|
|
|
25845f |
diff -rup a/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h b/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h 2012-12-24 22:02:13.000000000 -0500
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h 2018-05-08 22:33:59.539930307 -0400
|
|
|
25845f |
@@ -20,6 +20,7 @@
|
|
|
25845f |
#define _SYS_PTRACE_H 1
|
|
|
25845f |
|
|
|
25845f |
#include <features.h>
|
|
|
25845f |
+#include <bits/types.h>
|
|
|
25845f |
|
|
|
25845f |
__BEGIN_DECLS
|
|
|
25845f |
|
|
|
25845f |
@@ -115,7 +116,11 @@ enum __ptrace_request
|
|
|
25845f |
#define PTRACE_INTERRUPT PTRACE_INTERRUPT
|
|
|
25845f |
|
|
|
25845f |
/* Wait for next group event. */
|
|
|
25845f |
- PTRACE_LISTEN = 0x4208
|
|
|
25845f |
+ PTRACE_LISTEN = 0x4208,
|
|
|
25845f |
+#define PTRACE_LISTEN PTRACE_LISTEN
|
|
|
25845f |
+
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO = 0x4209
|
|
|
25845f |
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
@@ -151,6 +156,20 @@ enum __ptrace_eventcodes
|
|
|
25845f |
PTRACE_EVENT_SECCOMP = 7
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
+/* Arguments for PTRACE_PEEKSIGINFO. */
|
|
|
25845f |
+struct __ptrace_peeksiginfo_args
|
|
|
25845f |
+{
|
|
|
25845f |
+ __uint64_t off; /* From which siginfo to start. */
|
|
|
25845f |
+ __uint32_t flags; /* Flags for peeksiginfo. */
|
|
|
25845f |
+ __int32_t nr; /* How many siginfos to take. */
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
+enum __ptrace_peeksiginfo_flags
|
|
|
25845f |
+{
|
|
|
25845f |
+ /* Read signals from a shared (process wide) queue. */
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
/* Perform process tracing functions. REQUEST is one of the values
|
|
|
25845f |
above, and determines the action to be taken.
|
|
|
25845f |
For all requests except PTRACE_TRACEME, PID specifies the process to be
|
|
|
25845f |
diff -rup a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h 2012-12-24 22:02:13.000000000 -0500
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h 2018-05-08 22:33:59.542930293 -0400
|
|
|
25845f |
@@ -21,6 +21,7 @@
|
|
|
25845f |
#define _SYS_PTRACE_H 1
|
|
|
25845f |
|
|
|
25845f |
#include <features.h>
|
|
|
25845f |
+#include <bits/types.h>
|
|
|
25845f |
|
|
|
25845f |
__BEGIN_DECLS
|
|
|
25845f |
#ifdef _LINUX_PTRACE_H
|
|
|
25845f |
@@ -154,7 +155,11 @@ enum __ptrace_request
|
|
|
25845f |
#define PTRACE_INTERRUPT PTRACE_INTERRUPT
|
|
|
25845f |
|
|
|
25845f |
/* Wait for next group event. */
|
|
|
25845f |
- PTRACE_LISTEN = 0x4208
|
|
|
25845f |
+ PTRACE_LISTEN = 0x4208,
|
|
|
25845f |
+#define PTRACE_LISTEN PTRACE_LISTEN
|
|
|
25845f |
+
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO = 0x4209
|
|
|
25845f |
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
@@ -190,6 +195,20 @@ enum __ptrace_eventcodes
|
|
|
25845f |
PTRACE_EVENT_SECCOMP = 7
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
+/* Arguments for PTRACE_PEEKSIGINFO. */
|
|
|
25845f |
+struct __ptrace_peeksiginfo_args
|
|
|
25845f |
+{
|
|
|
25845f |
+ __uint64_t off; /* From which siginfo to start. */
|
|
|
25845f |
+ __uint32_t flags; /* Flags for peeksiginfo. */
|
|
|
25845f |
+ __int32_t nr; /* How many siginfos to take. */
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
+enum __ptrace_peeksiginfo_flags
|
|
|
25845f |
+{
|
|
|
25845f |
+ /* Read signals from a shared (process wide) queue. */
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
/* Perform process tracing functions. REQUEST is one of the values
|
|
|
25845f |
above, and determines the action to be taken.
|
|
|
25845f |
For all requests except PTRACE_TRACEME, PID specifies the process to be
|
|
|
25845f |
diff -rup a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h 2012-12-24 22:02:13.000000000 -0500
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h 2018-05-08 22:33:59.546930276 -0400
|
|
|
25845f |
@@ -20,7 +20,7 @@
|
|
|
25845f |
#define _SYS_PTRACE_H 1
|
|
|
25845f |
|
|
|
25845f |
#include <features.h>
|
|
|
25845f |
-
|
|
|
25845f |
+#include <bits/types.h>
|
|
|
25845f |
#include <bits/wordsize.h>
|
|
|
25845f |
|
|
|
25845f |
/* Linux/SPARC kernels up to 2.3.18 do not care much
|
|
|
25845f |
@@ -198,7 +198,11 @@ enum __ptrace_request
|
|
|
25845f |
#define PTRACE_INTERRUPT PTRACE_INTERRUPT
|
|
|
25845f |
|
|
|
25845f |
/* Wait for next group event. */
|
|
|
25845f |
- PTRACE_LISTEN = 0x4208
|
|
|
25845f |
+ PTRACE_LISTEN = 0x4208,
|
|
|
25845f |
+#define PTRACE_LISTEN PTRACE_LISTEN
|
|
|
25845f |
+
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO = 0x4209
|
|
|
25845f |
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
@@ -234,6 +238,20 @@ enum __ptrace_eventcodes
|
|
|
25845f |
PTRACE_EVENT_SECCOMP = 7
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
+/* Arguments for PTRACE_PEEKSIGINFO. */
|
|
|
25845f |
+struct __ptrace_peeksiginfo_args
|
|
|
25845f |
+{
|
|
|
25845f |
+ __uint64_t off; /* From which siginfo to start. */
|
|
|
25845f |
+ __uint32_t flags; /* Flags for peeksiginfo. */
|
|
|
25845f |
+ __int32_t nr; /* How many siginfos to take. */
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
+enum __ptrace_peeksiginfo_flags
|
|
|
25845f |
+{
|
|
|
25845f |
+ /* Read signals from a shared (process wide) queue. */
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
/* Perform process tracing functions. REQUEST is one of the values
|
|
|
25845f |
above, and determines the action to be taken.
|
|
|
25845f |
For all requests except PTRACE_TRACEME, PID specifies the process to be
|
|
|
25845f |
diff -rup a/sysdeps/unix/sysv/linux/sys/ptrace.h b/sysdeps/unix/sysv/linux/sys/ptrace.h
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/sys/ptrace.h 2012-12-24 22:02:13.000000000 -0500
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/sys/ptrace.h 2018-05-08 22:33:59.550930259 -0400
|
|
|
25845f |
@@ -20,6 +20,7 @@
|
|
|
25845f |
#define _SYS_PTRACE_H 1
|
|
|
25845f |
|
|
|
25845f |
#include <features.h>
|
|
|
25845f |
+#include <bits/types.h>
|
|
|
25845f |
|
|
|
25845f |
__BEGIN_DECLS
|
|
|
25845f |
|
|
|
25845f |
@@ -145,7 +146,11 @@ enum __ptrace_request
|
|
|
25845f |
#define PTRACE_INTERRUPT PTRACE_INTERRUPT
|
|
|
25845f |
|
|
|
25845f |
/* Wait for next group event. */
|
|
|
25845f |
- PTRACE_LISTEN = 0x4208
|
|
|
25845f |
+ PTRACE_LISTEN = 0x4208,
|
|
|
25845f |
+#define PTRACE_LISTEN PTRACE_LISTEN
|
|
|
25845f |
+
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO = 0x4209
|
|
|
25845f |
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
@@ -181,6 +186,20 @@ enum __ptrace_eventcodes
|
|
|
25845f |
PTRAVE_EVENT_SECCOMP = 7
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
+/* Arguments for PTRACE_PEEKSIGINFO. */
|
|
|
25845f |
+struct __ptrace_peeksiginfo_args
|
|
|
25845f |
+{
|
|
|
25845f |
+ __uint64_t off; /* From which siginfo to start. */
|
|
|
25845f |
+ __uint32_t flags; /* Flags for peeksiginfo. */
|
|
|
25845f |
+ __int32_t nr; /* How many siginfos to take. */
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
+enum __ptrace_peeksiginfo_flags
|
|
|
25845f |
+{
|
|
|
25845f |
+ /* Read signals from a shared (process wide) queue. */
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
/* Perform process tracing functions. REQUEST is one of the values
|
|
|
25845f |
above, and determines the action to be taken.
|
|
|
25845f |
For all requests except PTRACE_TRACEME, PID specifies the process to be
|
|
|
25845f |
diff -rup a/sysdeps/unix/sysv/linux/tile/sys/ptrace.h b/sysdeps/unix/sysv/linux/tile/sys/ptrace.h
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/tile/sys/ptrace.h 2018-05-08 22:10:48.688798100 -0400
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/tile/sys/ptrace.h 2018-05-08 22:33:59.535930324 -0400
|
|
|
25845f |
@@ -20,6 +20,7 @@
|
|
|
25845f |
#define _SYS_PTRACE_H 1
|
|
|
25845f |
|
|
|
25845f |
#include <features.h>
|
|
|
25845f |
+#include <bits/types.h>
|
|
|
25845f |
|
|
|
25845f |
__BEGIN_DECLS
|
|
|
25845f |
|
|
|
25845f |
@@ -101,8 +102,28 @@ enum __ptrace_request
|
|
|
25845f |
#define PT_GETSIGINFO PTRACE_GETSIGINFO
|
|
|
25845f |
|
|
|
25845f |
/* Set new siginfo for process. */
|
|
|
25845f |
- PTRACE_SETSIGINFO = 0x4203
|
|
|
25845f |
+ PTRACE_SETSIGINFO = 0x4203,
|
|
|
25845f |
#define PT_SETSIGINFO PTRACE_SETSIGINFO
|
|
|
25845f |
+
|
|
|
25845f |
+ /* Set register content. */
|
|
|
25845f |
+ PTRACE_SETREGSET = 0x4205,
|
|
|
25845f |
+#define PTRACE_SETREGSET PTRACE_SETREGSET
|
|
|
25845f |
+
|
|
|
25845f |
+ /* Like PTRACE_ATTACH, but do not force tracee to trap and do not affect
|
|
|
25845f |
+ signal or group stop state. */
|
|
|
25845f |
+ PTRACE_SEIZE = 0x4206,
|
|
|
25845f |
+#define PTRACE_SEIZE PTRACE_SEIZE
|
|
|
25845f |
+
|
|
|
25845f |
+ /* Trap seized tracee. */
|
|
|
25845f |
+ PTRACE_INTERRUPT = 0x4207,
|
|
|
25845f |
+#define PTRACE_INTERRUPT PTRACE_INTERRUPT
|
|
|
25845f |
+
|
|
|
25845f |
+ /* Wait for next group event. */
|
|
|
25845f |
+ PTRACE_LISTEN = 0x4208,
|
|
|
25845f |
+#define PTRACE_LISTEN PTRACE_LISTEN
|
|
|
25845f |
+
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO = 0x4209
|
|
|
25845f |
+#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
@@ -132,6 +153,20 @@ enum __ptrace_eventcodes
|
|
|
25845f |
PTRACE_EVENT_SECCOMP = 7
|
|
|
25845f |
};
|
|
|
25845f |
|
|
|
25845f |
+/* Arguments for PTRACE_PEEKSIGINFO. */
|
|
|
25845f |
+struct __ptrace_peeksiginfo_args
|
|
|
25845f |
+{
|
|
|
25845f |
+ __uint64_t off; /* From which siginfo to start. */
|
|
|
25845f |
+ __uint32_t flags; /* Flags for peeksiginfo. */
|
|
|
25845f |
+ __int32_t nr; /* How many siginfos to take. */
|
|
|
25845f |
+};
|
|
|
25845f |
+
|
|
|
25845f |
+enum __ptrace_peeksiginfo_flags
|
|
|
25845f |
+{
|
|
|
25845f |
+ /* Read signals from a shared (process wide) queue. */
|
|
|
25845f |
+ PTRACE_PEEKSIGINFO_SHARED = (1 << 0)
|
|
|
25845f |
+}
|
|
|
25845f |
+
|
|
|
25845f |
/* Perform process tracing functions. REQUEST is one of the values
|
|
|
25845f |
above, and determines the action to be taken.
|
|
|
25845f |
For all requests except PTRACE_TRACEME, PID specifies the process to be
|