Searched refs:chld (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/x86/ |
H A D | ptrace_syscall.c | 84 static siginfo_t wait_trap(pid_t chld) in wait_trap() argument 87 if (waitid(P_PID, chld, &si, WEXITED|WSTOPPED) != 0) in wait_trap() 89 if (si.si_pid != chld) in wait_trap() 178 pid_t chld = fork(); in test_ptrace_syscall_restart() local 179 if (chld < 0) in test_ptrace_syscall_restart() 182 if (chld == 0) { in test_ptrace_syscall_restart() 198 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in test_ptrace_syscall_restart() 204 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart() 206 wait_trap(chld); in test_ptrace_syscall_restart() 208 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) in test_ptrace_syscall_restart() [all …]
|
H A D | fsgsbase_restore.c | 154 pid_t chld = fork(); in main() local 155 if (chld < 0) in main() 158 if (chld == 0) { in main() 184 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in main() 189 if (ptrace(PTRACE_GETREGS, chld, NULL, ®s) != 0) in main() 207 if (ptrace(PTRACE_SETREGS, chld, NULL, ®s2) != 0) in main() 209 if (ptrace(PTRACE_CONT, chld, NULL, NULL) != 0) in main() 213 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in main() 217 if (ptrace(PTRACE_SETREGS, chld, NULL, ®s) != 0) in main() 219 if (ptrace(PTRACE_DETACH, chld, NULL, NULL) != 0) in main() [all …]
|
/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-syscall.c | 41 static void wait_trap(pid_t chld) in wait_trap() argument 45 if (waitid(P_PID, chld, &si, WEXITED|WSTOPPED) != 0) in wait_trap() 47 if (si.si_pid != chld) in wait_trap() 57 pid_t chld; in test_ptrace_syscall_restart() local 61 chld = fork(); in test_ptrace_syscall_restart() 62 if (chld < 0) in test_ptrace_syscall_restart() 73 if (chld == 0) { in test_ptrace_syscall_restart() 88 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in test_ptrace_syscall_restart() 92 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart() 94 wait_trap(chld); in test_ptrace_syscall_restart() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-apple-aic.c | 1028 struct device_node *chld; in aic_of_ic_init() local 1030 for_each_child_of_node(affs, chld) in aic_of_ic_init() 1031 build_fiq_affinity(irqc, chld); in aic_of_ic_init()
|