Lines Matching refs:pid
81 static bool set_watchpoint(pid_t pid, int size, int wp) in set_watchpoint() argument
98 if (ptrace(PTRACE_SETREGSET, pid, NT_ARM_HW_WATCH, &iov) == 0) in set_watchpoint()
116 pid_t pid = fork(); in run_test() local
119 if (pid < 0) { in run_test()
124 if (pid == 0) in run_test()
127 wpid = waitpid(pid, &status, __WALL); in run_test()
128 if (wpid != pid) { in run_test()
143 if (!set_watchpoint(pid, wp_size, wp)) in run_test()
146 if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) { in run_test()
154 wpid = waitpid(pid, &status, __WALL); in run_test()
155 if (wpid != pid) { in run_test()
173 if (ptrace(PTRACE_GETSIGINFO, pid, NULL, &siginfo) != 0) { in run_test()
185 kill(pid, SIGKILL); in run_test()
186 wpid = waitpid(pid, &status, 0); in run_test()
187 if (wpid != pid) { in run_test()