Skip to content

Commit acaea91

Browse files
committed
Added all additional ptrace options.
1 parent 4577f08 commit acaea91

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/unix/notbsd/linux/other/b32/x86.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ pub const SYS_perf_event_open: ::c_long = 336;
130130

131131
pub const PTRACE_GETFPXREGS: ::c_uint = 18;
132132
pub const PTRACE_SETFPXREGS: ::c_uint = 19;
133+
pub const PTRACE_SYSEMU: ::c_uint = 31;
134+
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_uint = 32;
133135

134136
pub const MCL_CURRENT: ::c_int = 0x0001;
135137
pub const MCL_FUTURE: ::c_int = 0x0002;

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,19 @@ 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_SYSEMU: ::c_uint = 31;
153+
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_uint = 32;
154+
pub const PTRACE_O_EXITKILL: ::c_uint = 1048576;
155+
pub const PTRACE_O_TRACECLONE: ::c_uint = 8;
156+
pub const PTRACE_O_TRACEEXEC: ::c_uint = 16;
157+
pub const PTRACE_O_TRACEEXIT: ::c_uint = 64;
158+
pub const PTRACE_O_TRACEFORK: ::c_uint = 2;
159+
pub const PTRACE_O_TRACESYSGOOD: ::c_uint = 1;
160+
pub const PTRACE_O_TRACEVFORK: ::c_uint = 4;
161+
pub const PTRACE_O_TRACEVFORKDONE: ::c_uint = 32;
162+
pub const PTRACE_O_TRACESECCOMP: ::c_uint = 128;
163+
pub const PTRACE_O_SUSPEND_SECCOMP: ::c_uint = 2097152;
164+
pub const PTRACE_PEEKSIGINFO_SHARED: ::c_uint = 1;
152165

153166
pub const SYS_gettid: ::c_long = 186;
154167
pub const SYS_perf_event_open: ::c_long = 298;

0 commit comments

Comments
 (0)