OLD | NEW |
1 #ifndef _SYS_PTRACE_H | 1 #ifndef _SYS_PTRACE_H |
2 #define _SYS_PTRACE_H | 2 #define _SYS_PTRACE_H |
3 #ifdef __cplusplus | 3 #ifdef __cplusplus |
4 extern "C" { | 4 extern "C" { |
5 #endif | 5 #endif |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #define PTRACE_TRACEME 0 | 9 #define PTRACE_TRACEME 0 |
10 #define PT_TRACE_ME PTRACE_TRACEME | 10 #define PT_TRACE_ME PTRACE_TRACEME |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #define PT_ATTACH PTRACE_ATTACH | 57 #define PT_ATTACH PTRACE_ATTACH |
58 #define PT_DETACH PTRACE_DETACH | 58 #define PT_DETACH PTRACE_DETACH |
59 #define PT_GETFPXREGS PTRACE_GETFPXREGS | 59 #define PT_GETFPXREGS PTRACE_GETFPXREGS |
60 #define PT_SETFPXREGS PTRACE_SETFPXREGS | 60 #define PT_SETFPXREGS PTRACE_SETFPXREGS |
61 #define PT_SYSCALL PTRACE_SYSCALL | 61 #define PT_SYSCALL PTRACE_SYSCALL |
62 #define PT_SETOPTIONS PTRACE_SETOPTIONS | 62 #define PT_SETOPTIONS PTRACE_SETOPTIONS |
63 #define PT_GETEVENTMSG PTRACE_GETEVENTMSG | 63 #define PT_GETEVENTMSG PTRACE_GETEVENTMSG |
64 #define PT_GETSIGINFO PTRACE_GETSIGINFO | 64 #define PT_GETSIGINFO PTRACE_GETSIGINFO |
65 #define PT_SETSIGINFO PTRACE_SETSIGINFO | 65 #define PT_SETSIGINFO PTRACE_SETSIGINFO |
66 | 66 |
67 #define PTRACE_O_TRACESYSGOOD 0x00000001 | 67 #define PTRACE_O_TRACESYSGOOD 0x00000001 |
68 #define PTRACE_O_TRACEFORK 0x00000002 | 68 #define PTRACE_O_TRACEFORK 0x00000002 |
69 #define PTRACE_O_TRACEVFORK 0x00000004 | 69 #define PTRACE_O_TRACEVFORK 0x00000004 |
70 #define PTRACE_O_TRACECLONE 0x00000008 | 70 #define PTRACE_O_TRACECLONE 0x00000008 |
71 #define PTRACE_O_TRACEEXEC 0x00000010 | 71 #define PTRACE_O_TRACEEXEC 0x00000010 |
72 #define PTRACE_O_TRACEVFORKDONE 0x00000020 | 72 #define PTRACE_O_TRACEVFORKDONE 0x00000020 |
73 #define PTRACE_O_TRACEEXIT 0x00000040 | 73 #define PTRACE_O_TRACEEXIT 0x00000040 |
74 #define PTRACE_O_TRACESECCOMP 0x00000080 | 74 #define PTRACE_O_TRACESECCOMP 0x00000080 |
75 #define PTRACE_O_EXITKILL 0x00100000 | 75 #define PTRACE_O_EXITKILL 0x00100000 |
76 #define PTRACE_O_SUSPEND_SECCOMP 0x00200000 | 76 #define PTRACE_O_SUSPEND_SECCOMP 0x00200000 |
77 #define PTRACE_O_MASK 0x003000ff | 77 #define PTRACE_O_MASK 0x003000ff |
78 | 78 |
79 #define PTRACE_EVENT_FORK 1 | 79 #define PTRACE_EVENT_FORK 1 |
80 #define PTRACE_EVENT_VFORK 2 | 80 #define PTRACE_EVENT_VFORK 2 |
81 #define PTRACE_EVENT_CLONE 3 | 81 #define PTRACE_EVENT_CLONE 3 |
82 #define PTRACE_EVENT_EXEC 4 | 82 #define PTRACE_EVENT_EXEC 4 |
83 #define PTRACE_EVENT_VFORK_DONE 5 | 83 #define PTRACE_EVENT_VFORK_DONE 5 |
84 #define PTRACE_EVENT_EXIT 6 | 84 #define PTRACE_EVENT_EXIT 6 |
85 #define PTRACE_EVENT_SECCOMP 7 | 85 #define PTRACE_EVENT_SECCOMP 7 |
86 | 86 |
87 #define PTRACE_PEEKSIGINFO_SHARED 1 | 87 #define PTRACE_PEEKSIGINFO_SHARED 1 |
88 | 88 |
89 struct ptrace_peeksiginfo_args { | 89 struct ptrace_peeksiginfo_args { |
90 » uint64_t off; | 90 uint64_t off; |
91 » uint32_t flags; | 91 uint32_t flags; |
92 » int32_t nr; | 92 int32_t nr; |
93 }; | 93 }; |
94 | 94 |
95 long ptrace(int, ...); | 95 long ptrace(int, ...); |
96 | 96 |
97 #ifdef __cplusplus | 97 #ifdef __cplusplus |
98 } | 98 } |
99 #endif | 99 #endif |
100 #endif | 100 #endif |
OLD | NEW |