Skip to content

Commit 7c49396

Browse files
authored
Auto merge of #417 - valarauca:master, r=alexcrichton
Added all additional ptrace options. Added additional PTrace Flags. All the `PTRACE_O` are flags options values that are passed with `PTRACE_OPTION`. The `PTRACE_PEEKSIGINFO_SHARED` is used for setting/fetching signal masks when interacting with thread groups not individual threads. `SYSEMU` stuff I pulled from the kernel sources. As far as I can tell these flags haven't been added to `<sys/ptrace.h>`, which is weird because the two `SYSEMU` calls have been live on x64 since 2011. I'm starting a thread on kernel-newies about it.
2 parents 4577f08 + 12e1cd1 commit 7c49396

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/unix/notbsd/linux/other/b64/x86_64.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,17 @@ pub const PTRACE_GETFPXREGS: ::c_uint = 18;
149149
pub const PTRACE_SETFPXREGS: ::c_uint = 19;
150150
pub const PTRACE_GETREGS: ::c_uint = 12;
151151
pub const PTRACE_SETREGS: ::c_uint = 13;
152+
pub const PTRACE_O_EXITKILL: ::c_uint = 1048576;
153+
pub const PTRACE_O_TRACECLONE: ::c_uint = 8;
154+
pub const PTRACE_O_TRACEEXEC: ::c_uint = 16;
155+
pub const PTRACE_O_TRACEEXIT: ::c_uint = 64;
156+
pub const PTRACE_O_TRACEFORK: ::c_uint = 2;
157+
pub const PTRACE_O_TRACESYSGOOD: ::c_uint = 1;
158+
pub const PTRACE_O_TRACEVFORK: ::c_uint = 4;
159+
pub const PTRACE_O_TRACEVFORKDONE: ::c_uint = 32;
160+
pub const PTRACE_O_TRACESECCOMP: ::c_uint = 128;
161+
pub const PTRACE_O_SUSPEND_SECCOMP: ::c_uint = 2097152;
162+
pub const PTRACE_PEEKSIGINFO_SHARED: ::c_uint = 1;
152163

153164
pub const SYS_gettid: ::c_long = 186;
154165
pub const SYS_perf_event_open: ::c_long = 298;

0 commit comments

Comments
 (0)