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