Lines Matching refs:pid
90 static bool set_watchpoint(pid_t pid, int size, int wp) in set_watchpoint() argument
107 if (ptrace(PTRACE_SETREGSET, pid, NT_ARM_HW_WATCH, &iov) == 0) in set_watchpoint()
125 pid_t pid = fork(); in run_test() local
128 if (pid < 0) { in run_test()
133 if (pid == 0) in run_test()
136 wpid = waitpid(pid, &status, __WALL); in run_test()
137 if (wpid != pid) { in run_test()
152 if (!set_watchpoint(pid, wp_size, wp)) in run_test()
155 if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) { in run_test()
163 wpid = waitpid(pid, &status, __WALL); in run_test()
164 if (wpid != pid) { in run_test()
182 if (ptrace(PTRACE_GETSIGINFO, pid, NULL, &siginfo) != 0) { in run_test()
194 kill(pid, SIGKILL); in run_test()
195 wpid = waitpid(pid, &status, 0); in run_test()
196 if (wpid != pid) { in run_test()