chld 41 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c static void wait_trap(pid_t chld) chld 45 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (waitid(P_PID, chld, &si, WEXITED|WSTOPPED) != 0) chld 47 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (si.si_pid != chld) chld 57 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c pid_t chld; chld 61 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c chld = fork(); chld 62 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (chld < 0) chld 73 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (chld == 0) { chld 88 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) chld 92 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) chld 94 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c wait_trap(chld); chld 96 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) chld 127 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0) chld 130 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) chld 132 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c wait_trap(chld); chld 134 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) chld 170 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0) chld 173 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) chld 175 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c wait_trap(chld); chld 177 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) chld 203 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (ptrace(PTRACE_CONT, chld, 0, 0) != 0) chld 206 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c if (waitpid(chld, &status, 0) != chld) chld 84 tools/testing/selftests/x86/ptrace_syscall.c static siginfo_t wait_trap(pid_t chld) chld 87 tools/testing/selftests/x86/ptrace_syscall.c if (waitid(P_PID, chld, &si, WEXITED|WSTOPPED) != 0) chld 89 tools/testing/selftests/x86/ptrace_syscall.c if (si.si_pid != chld) chld 178 tools/testing/selftests/x86/ptrace_syscall.c pid_t chld = fork(); chld 179 tools/testing/selftests/x86/ptrace_syscall.c if (chld < 0) chld 182 tools/testing/selftests/x86/ptrace_syscall.c if (chld == 0) { chld 198 tools/testing/selftests/x86/ptrace_syscall.c if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) chld 204 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) chld 206 tools/testing/selftests/x86/ptrace_syscall.c wait_trap(chld); chld 208 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) chld 232 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0) chld 235 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) chld 237 tools/testing/selftests/x86/ptrace_syscall.c wait_trap(chld); chld 239 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) chld 264 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0) chld 267 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) chld 269 tools/testing/selftests/x86/ptrace_syscall.c wait_trap(chld); chld 271 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) chld 283 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_CONT, chld, 0, 0) != 0) chld 285 tools/testing/selftests/x86/ptrace_syscall.c if (waitpid(chld, &status, 0) != chld) chld 298 tools/testing/selftests/x86/ptrace_syscall.c pid_t chld = fork(); chld 299 tools/testing/selftests/x86/ptrace_syscall.c if (chld < 0) chld 302 tools/testing/selftests/x86/ptrace_syscall.c if (chld == 0) { chld 319 tools/testing/selftests/x86/ptrace_syscall.c if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) chld 325 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_SYSCALL, chld, 0, 0) != 0) chld 327 tools/testing/selftests/x86/ptrace_syscall.c wait_trap(chld); chld 331 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) chld 345 tools/testing/selftests/x86/ptrace_syscall.c kill(chld, SIGUSR1); chld 349 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_SYSCALL, chld, 0, 0) != 0) chld 351 tools/testing/selftests/x86/ptrace_syscall.c wait_trap(chld); chld 353 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) chld 368 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0) chld 372 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_CONT, chld, 0, 0) != 0) chld 374 tools/testing/selftests/x86/ptrace_syscall.c if (waitpid(chld, &status, 0) != chld) chld 385 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_SYSCALL, chld, 0, 0) != 0) chld 387 tools/testing/selftests/x86/ptrace_syscall.c wait_trap(chld); chld 391 tools/testing/selftests/x86/ptrace_syscall.c if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) chld 405 tools/testing/selftests/x86/ptrace_syscall.c kill(chld, SIGKILL); chld 406 tools/testing/selftests/x86/ptrace_syscall.c if (waitpid(chld, &status, 0) != chld)