Lines Matching refs:ptrace
36 ptrace(PTRACE_TRACEME, 0, 0, 0) < 0) {
37 perror("ptrace");
125 if (ptrace(PTRACE_CONT, pid, 0, 0) < 0) {
126 perror("stop_ptraced_child : ptrace failed");
157 " Turns off syscall emulation patch for ptrace (SYSEMU).\n"
159 " behaviour of ptrace() and helps reduce host context switch rates.\n"
169 os_info("Checking syscall emulation patch for ptrace...");
173 if (ptrace(PTRACE_SYSEMU, pid, 0, 0) < 0)
183 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0)
191 n = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_RET_OFFSET, os_getpid());
205 os_info("Checking advanced syscall emulation patch for ptrace...");
208 if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0,
214 if (ptrace(PTRACE_SYSEMU_SINGLESTEP, pid, 0, 0) < 0)
227 n = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_RET_OFFSET,
263 os_info("Checking that ptrace can change system call numbers...");
266 if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0,
271 if (ptrace(PTRACE_SYSCALL, pid, 0, 0) < 0)
272 fatal_perror("check_ptrace : ptrace failed");
283 syscall = ptrace(PTRACE_PEEKUSER, pid, PT_SYSCALL_NR_OFFSET,
286 n = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_NR_OFFSET,