• Home
  • Raw
  • Download

Lines Matching refs:pid

33 	int pid = os_getpid(), ppid = getppid();  in ptrace_child()  local
39 kill(pid, SIGKILL); in ptrace_child()
41 kill(pid, SIGSTOP); in ptrace_child()
49 if (sc_result == pid) in ptrace_child()
96 int pid, n, status; in start_ptraced_child() local
98 pid = fork(); in start_ptraced_child()
99 if (pid == 0) in start_ptraced_child()
101 else if (pid < 0) in start_ptraced_child()
104 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in start_ptraced_child()
111 return pid; in start_ptraced_child()
120 static int stop_ptraced_child(int pid, int exitcode, int mustexit) in stop_ptraced_child() argument
124 if (ptrace(PTRACE_CONT, pid, 0, 0) < 0) { in stop_ptraced_child()
128 CATCH_EINTR(n = waitpid(pid, &status, 0)); in stop_ptraced_child()
204 int pid, n, status, count=0; in check_sysemu() local
208 pid = start_ptraced_child(); in check_sysemu()
210 if (ptrace(PTRACE_SYSEMU, pid, 0, 0) < 0) in check_sysemu()
213 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in check_sysemu()
220 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0) in check_sysemu()
228 n = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_RET_OFFSET, os_getpid()); in check_sysemu()
235 if (stop_ptraced_child(pid, 0, 0) < 0) in check_sysemu()
243 pid = start_ptraced_child(); in check_sysemu()
245 if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0, in check_sysemu()
251 if (ptrace(PTRACE_SYSEMU_SINGLESTEP, pid, 0, 0) < 0) in check_sysemu()
253 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in check_sysemu()
264 n = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_RET_OFFSET, in check_sysemu()
280 if (stop_ptraced_child(pid, 0, 0) < 0) in check_sysemu()
291 stop_ptraced_child(pid, 1, 0); in check_sysemu()
298 int pid, syscall, n, status; in check_ptrace() local
301 pid = start_ptraced_child(); in check_ptrace()
303 if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0, in check_ptrace()
308 if (ptrace(PTRACE_SYSCALL, pid, 0, 0) < 0) in check_ptrace()
311 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in check_ptrace()
320 syscall = ptrace(PTRACE_PEEKUSER, pid, PT_SYSCALL_NR_OFFSET, in check_ptrace()
323 n = ptrace(PTRACE_POKEUSER, pid, PT_SYSCALL_NR_OFFSET, in check_ptrace()
331 stop_ptraced_child(pid, 0, 1); in check_ptrace()
361 int pid; in os_early_checks() local
373 pid = start_ptraced_child(); in os_early_checks()
374 if (init_registers(pid)) in os_early_checks()
376 stop_ptraced_child(pid, 1, 1); in os_early_checks()
418 int pid, n; in check_skas3_ptrace_faultinfo() local
421 pid = start_ptraced_child(); in check_skas3_ptrace_faultinfo()
423 n = ptrace(PTRACE_FAULTINFO, pid, 0, &fi); in check_skas3_ptrace_faultinfo()
436 stop_ptraced_child(pid, 1, 1); in check_skas3_ptrace_faultinfo()
442 int pid, n; in check_skas3_ptrace_ldt() local
450 pid = start_ptraced_child(); in check_skas3_ptrace_ldt()
452 n = ptrace(PTRACE_LDT, pid, 0, (unsigned long) &ldt_op); in check_skas3_ptrace_ldt()
465 stop_ptraced_child(pid, 1, 1); in check_skas3_ptrace_ldt()