mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Add Linux PTRACE_EVENT_STOP
Add PTRACE_EVENT_STOP value to Linux's sys/ptrace.h, modify related comments accordingly. This constant initially appeared in Linux 3.1 (kernel commit 3544d72a, "ptrace: implement PTRACE_SEIZE") but its value has changed later in Linux 3.4 (kernel commit 5cdf389a, "ptrace: renumber PTRACE_EVENT_STOP so that future new options and events can match"). The comment is also taken from the above commit. This constant is used by e.g. strace, CRIU, Mozilla RR. * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes): Add PTRACE_EVENT_STOP. * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise. * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise. * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise. * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
This commit is contained in:
committed by
Dmitry V. Levin
parent
12d6284c0e
commit
3f67d1a702
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
|||||||
|
2017-02-08 Kir Kolyshkin <kir@openvz.org>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes):
|
||||||
|
Add PTRACE_EVENT_STOP.
|
||||||
|
* sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
|
||||||
|
|
||||||
2017-02-07 Joseph Myers <joseph@codesourcery.com>
|
2017-02-07 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
|
* math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
|
||||||
|
@ -163,16 +163,18 @@ enum __ptrace_setoptions
|
|||||||
PTRACE_O_MASK = 0x003000ff
|
PTRACE_O_MASK = 0x003000ff
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Wait extended result codes for the above trace options. */
|
|
||||||
enum __ptrace_eventcodes
|
enum __ptrace_eventcodes
|
||||||
{
|
{
|
||||||
|
/* Wait extended result codes for the above trace options. */
|
||||||
PTRACE_EVENT_FORK = 1,
|
PTRACE_EVENT_FORK = 1,
|
||||||
PTRACE_EVENT_VFORK = 2,
|
PTRACE_EVENT_VFORK = 2,
|
||||||
PTRACE_EVENT_CLONE = 3,
|
PTRACE_EVENT_CLONE = 3,
|
||||||
PTRACE_EVENT_EXEC = 4,
|
PTRACE_EVENT_EXEC = 4,
|
||||||
PTRACE_EVENT_VFORK_DONE = 5,
|
PTRACE_EVENT_VFORK_DONE = 5,
|
||||||
PTRACE_EVENT_EXIT = 6,
|
PTRACE_EVENT_EXIT = 6,
|
||||||
PTRACE_EVENT_SECCOMP = 7
|
PTRACE_EVENT_SECCOMP = 7,
|
||||||
|
/* Extended result codes enabled by means other than options. */
|
||||||
|
PTRACE_EVENT_STOP = 128
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Arguments for PTRACE_PEEKSIGINFO. */
|
/* Arguments for PTRACE_PEEKSIGINFO. */
|
||||||
|
@ -183,16 +183,18 @@ enum __ptrace_setoptions
|
|||||||
PTRACE_O_MASK = 0x003000ff
|
PTRACE_O_MASK = 0x003000ff
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Wait extended result codes for the above trace options. */
|
|
||||||
enum __ptrace_eventcodes
|
enum __ptrace_eventcodes
|
||||||
{
|
{
|
||||||
|
/* Wait extended result codes for the above trace options. */
|
||||||
PTRACE_EVENT_FORK = 1,
|
PTRACE_EVENT_FORK = 1,
|
||||||
PTRACE_EVENT_VFORK = 2,
|
PTRACE_EVENT_VFORK = 2,
|
||||||
PTRACE_EVENT_CLONE = 3,
|
PTRACE_EVENT_CLONE = 3,
|
||||||
PTRACE_EVENT_EXEC = 4,
|
PTRACE_EVENT_EXEC = 4,
|
||||||
PTRACE_EVENT_VFORK_DONE = 5,
|
PTRACE_EVENT_VFORK_DONE = 5,
|
||||||
PTRACE_EVENT_EXIT = 6,
|
PTRACE_EVENT_EXIT = 6,
|
||||||
PTRACE_EVENT_SECCOMP = 7
|
PTRACE_EVENT_SECCOMP = 7,
|
||||||
|
/* Extended result codes enabled by means other than options. */
|
||||||
|
PTRACE_EVENT_STOP = 128
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Arguments for PTRACE_PEEKSIGINFO. */
|
/* Arguments for PTRACE_PEEKSIGINFO. */
|
||||||
|
@ -155,16 +155,18 @@ enum __ptrace_setoptions
|
|||||||
PTRACE_O_MASK = 0x003000ff
|
PTRACE_O_MASK = 0x003000ff
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Wait extended result codes for the above trace options. */
|
|
||||||
enum __ptrace_eventcodes
|
enum __ptrace_eventcodes
|
||||||
{
|
{
|
||||||
|
/* Wait extended result codes for the above trace options. */
|
||||||
PTRACE_EVENT_FORK = 1,
|
PTRACE_EVENT_FORK = 1,
|
||||||
PTRACE_EVENT_VFORK = 2,
|
PTRACE_EVENT_VFORK = 2,
|
||||||
PTRACE_EVENT_CLONE = 3,
|
PTRACE_EVENT_CLONE = 3,
|
||||||
PTRACE_EVENT_EXEC = 4,
|
PTRACE_EVENT_EXEC = 4,
|
||||||
PTRACE_EVENT_VFORK_DONE = 5,
|
PTRACE_EVENT_VFORK_DONE = 5,
|
||||||
PTRACE_EVENT_EXIT = 6,
|
PTRACE_EVENT_EXIT = 6,
|
||||||
PTRACE_EVENT_SECCOMP = 7
|
PTRACE_EVENT_SECCOMP = 7,
|
||||||
|
/* Extended result codes enabled by means other than options. */
|
||||||
|
PTRACE_EVENT_STOP = 128
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Arguments for PTRACE_PEEKSIGINFO. */
|
/* Arguments for PTRACE_PEEKSIGINFO. */
|
||||||
|
@ -194,16 +194,18 @@ enum __ptrace_setoptions
|
|||||||
PTRACE_O_MASK = 0x003000ff
|
PTRACE_O_MASK = 0x003000ff
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Wait extended result codes for the above trace options. */
|
|
||||||
enum __ptrace_eventcodes
|
enum __ptrace_eventcodes
|
||||||
{
|
{
|
||||||
|
/* Wait extended result codes for the above trace options. */
|
||||||
PTRACE_EVENT_FORK = 1,
|
PTRACE_EVENT_FORK = 1,
|
||||||
PTRACE_EVENT_VFORK = 2,
|
PTRACE_EVENT_VFORK = 2,
|
||||||
PTRACE_EVENT_CLONE = 3,
|
PTRACE_EVENT_CLONE = 3,
|
||||||
PTRACE_EVENT_EXEC = 4,
|
PTRACE_EVENT_EXEC = 4,
|
||||||
PTRACE_EVENT_VFORK_DONE = 5,
|
PTRACE_EVENT_VFORK_DONE = 5,
|
||||||
PTRACE_EVENT_EXIT = 6,
|
PTRACE_EVENT_EXIT = 6,
|
||||||
PTRACE_EVENT_SECCOMP = 7
|
PTRACE_EVENT_SECCOMP = 7,
|
||||||
|
/* Extended result codes enabled by means other than options. */
|
||||||
|
PTRACE_EVENT_STOP = 128
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Arguments for PTRACE_PEEKSIGINFO. */
|
/* Arguments for PTRACE_PEEKSIGINFO. */
|
||||||
|
@ -237,16 +237,18 @@ enum __ptrace_setoptions
|
|||||||
PTRACE_O_MASK = 0x003000ff
|
PTRACE_O_MASK = 0x003000ff
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Wait extended result codes for the above trace options. */
|
|
||||||
enum __ptrace_eventcodes
|
enum __ptrace_eventcodes
|
||||||
{
|
{
|
||||||
|
/* Wait extended result codes for the above trace options. */
|
||||||
PTRACE_EVENT_FORK = 1,
|
PTRACE_EVENT_FORK = 1,
|
||||||
PTRACE_EVENT_VFORK = 2,
|
PTRACE_EVENT_VFORK = 2,
|
||||||
PTRACE_EVENT_CLONE = 3,
|
PTRACE_EVENT_CLONE = 3,
|
||||||
PTRACE_EVENT_EXEC = 4,
|
PTRACE_EVENT_EXEC = 4,
|
||||||
PTRACE_EVENT_VFORK_DONE = 5,
|
PTRACE_EVENT_VFORK_DONE = 5,
|
||||||
PTRACE_EVENT_EXIT = 6,
|
PTRACE_EVENT_EXIT = 6,
|
||||||
PTRACE_EVENT_SECCOMP = 7
|
PTRACE_EVENT_SECCOMP = 7,
|
||||||
|
/* Extended result codes enabled by means other than options. */
|
||||||
|
PTRACE_EVENT_STOP = 128
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Arguments for PTRACE_PEEKSIGINFO. */
|
/* Arguments for PTRACE_PEEKSIGINFO. */
|
||||||
|
@ -185,16 +185,18 @@ enum __ptrace_setoptions
|
|||||||
PTRACE_O_MASK = 0x003000ff
|
PTRACE_O_MASK = 0x003000ff
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Wait extended result codes for the above trace options. */
|
|
||||||
enum __ptrace_eventcodes
|
enum __ptrace_eventcodes
|
||||||
{
|
{
|
||||||
|
/* Wait extended result codes for the above trace options. */
|
||||||
PTRACE_EVENT_FORK = 1,
|
PTRACE_EVENT_FORK = 1,
|
||||||
PTRACE_EVENT_VFORK = 2,
|
PTRACE_EVENT_VFORK = 2,
|
||||||
PTRACE_EVENT_CLONE = 3,
|
PTRACE_EVENT_CLONE = 3,
|
||||||
PTRACE_EVENT_EXEC = 4,
|
PTRACE_EVENT_EXEC = 4,
|
||||||
PTRACE_EVENT_VFORK_DONE = 5,
|
PTRACE_EVENT_VFORK_DONE = 5,
|
||||||
PTRACE_EVENT_EXIT = 6,
|
PTRACE_EVENT_EXIT = 6,
|
||||||
PTRACE_EVENT_SECCOMP = 7
|
PTRACE_EVENT_SECCOMP = 7,
|
||||||
|
/* Extended result codes enabled by means other than options. */
|
||||||
|
PTRACE_EVENT_STOP = 128
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Arguments for PTRACE_PEEKSIGINFO. */
|
/* Arguments for PTRACE_PEEKSIGINFO. */
|
||||||
|
@ -152,16 +152,18 @@ enum __ptrace_setoptions
|
|||||||
PTRACE_O_MASK = 0x003000ff
|
PTRACE_O_MASK = 0x003000ff
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Wait extended result codes for the above trace options. */
|
|
||||||
enum __ptrace_eventcodes
|
enum __ptrace_eventcodes
|
||||||
{
|
{
|
||||||
|
/* Wait extended result codes for the above trace options. */
|
||||||
PTRACE_EVENT_FORK = 1,
|
PTRACE_EVENT_FORK = 1,
|
||||||
PTRACE_EVENT_VFORK = 2,
|
PTRACE_EVENT_VFORK = 2,
|
||||||
PTRACE_EVENT_CLONE = 3,
|
PTRACE_EVENT_CLONE = 3,
|
||||||
PTRACE_EVENT_EXEC = 4,
|
PTRACE_EVENT_EXEC = 4,
|
||||||
PTRACE_EVENT_VFORK_DONE = 5,
|
PTRACE_EVENT_VFORK_DONE = 5,
|
||||||
PTRACE_EVENT_EXIT = 6,
|
PTRACE_EVENT_EXIT = 6,
|
||||||
PTRACE_EVENT_SECCOMP = 7
|
PTRACE_EVENT_SECCOMP = 7,
|
||||||
|
/* Extended result codes enabled by means other than options. */
|
||||||
|
PTRACE_EVENT_STOP = 128
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Arguments for PTRACE_PEEKSIGINFO. */
|
/* Arguments for PTRACE_PEEKSIGINFO. */
|
||||||
|
Reference in New Issue
Block a user