Skip to content

Commit 0403150

Browse files
MarcondiroJohnTitor
authored andcommitted
Add PTRACE_SET_SYSCALL_INFO constant
1 parent 9934c04 commit 0403150

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎libc-test/build.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4495,6 +4495,9 @@ fn test_linux(target: &str) {
44954495
// Linux 6.14
44964496
"AT_EXECVE_CHECK" => true,
44974497

4498+
// FIXME(linux): Requires >= 6.16 kernel headers.
4499+
"PTRACE_SET_SYSCALL_INFO" => true,
4500+
44984501
_ => false,
44994502
}
45004503
});

‎libc-test/semver/linux-gnu.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ PR_SET_VMA_ANON_NAME
345345
PTHREAD_MUTEX_ADAPTIVE_NP
346346
PTRACE_GET_SYSCALL_INFO
347347
PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
348+
PTRACE_SET_SYSCALL_INFO
348349
PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
349350
PTRACE_SYSCALL_INFO_ENTRY
350351
PTRACE_SYSCALL_INFO_EXIT

‎src/unix/linux_like/linux/gnu/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ pub const PTRACE_PEEKSIGINFO: c_uint = 0x4209;
748748
pub const PTRACE_GETSIGMASK: c_uint = 0x420a;
749749
pub const PTRACE_SETSIGMASK: c_uint = 0x420b;
750750
pub const PTRACE_GET_SYSCALL_INFO: c_uint = 0x420e;
751+
pub const PTRACE_SET_SYSCALL_INFO: c_uint = 0x4212;
751752
pub const PTRACE_SYSCALL_INFO_NONE: crate::__u8 = 0;
752753
pub const PTRACE_SYSCALL_INFO_ENTRY: crate::__u8 = 1;
753754
pub const PTRACE_SYSCALL_INFO_EXIT: crate::__u8 = 2;

0 commit comments

Comments
 (0)