Lines Matching refs:ptrace
4 #include <sys/ptrace.h>
15 #include <asm/ptrace-abi.h>
163 if (ptrace(PTRACE_TRACEME, 0, 0, 0) != 0)
184 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
188 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0)
207 * magical. It needs to work so that ptrace and syscall restart
212 if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0)
215 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
219 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0)
244 if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0)
247 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
251 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0)
263 if (ptrace(PTRACE_CONT, chld, 0, 0) != 0)
277 printf("[RUN]\tkernel syscall restart under ptrace\n");
283 if (ptrace(PTRACE_TRACEME, 0, 0, 0) != 0)
305 if (ptrace(PTRACE_SYSCALL, chld, 0, 0) != 0)
311 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0)
329 if (ptrace(PTRACE_SYSCALL, chld, 0, 0) != 0)
333 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0)
348 if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0)
352 if (ptrace(PTRACE_CONT, chld, 0, 0) != 0)
365 if (ptrace(PTRACE_SYSCALL, chld, 0, 0) != 0)
371 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0)