Home
last modified time | relevance | path

Searched refs:waitpid (Results 1 – 25 of 175) sorted by relevance

1234567

/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/
Dptrace-perf-hwbreak.c204 FAIL_IF_MSG(waitpid(*pid, &status, 0) == -1, "Failed to wait for child"); in ptrace_fork_child()
262 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child"); in same_watch_addr_test()
277 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child"); in same_watch_addr_test()
295 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child"); in same_watch_addr_test()
305 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child"); in same_watch_addr_test()
320 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child"); in same_watch_addr_test()
338 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child"); in same_watch_addr_test()
353 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child"); in same_watch_addr_test()
422 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child"); in perf_then_ptrace_test()
/linux-6.12.1/tools/testing/selftests/perf_events/
Dremove_on_exec.c113 EXPECT_EQ(waitpid(pid, &status, 0), pid); in TEST_F()
148 ASSERT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Child is running. */ in TEST_F()
157 EXPECT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Should still be running. */ in TEST_F()
164 EXPECT_EQ(waitpid(pid_only_fork, &tmp, 0), pid_only_fork); in TEST_F()
190 EXPECT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Should still be running. */ in TEST_F()
219 EXPECT_EQ(waitpid(pids[i], &tmp, WNOHANG), 0); in TEST_F()
Dwatermark_signal.c75 if (waitpid(child, &child_status, WSTOPPED) != child || in TEST()
122 if (waitpid(child, &child_status, WSTOPPED) != -1 || errno != EINTR) in TEST()
140 waitpid(child, NULL, 0); in TEST()
/linux-6.12.1/tools/testing/selftests/ptrace/
Dvmaccess.c62 k = waitpid(-1, &s, WNOHANG); in TEST()
71 k = waitpid(-1, &s, 0); in TEST()
77 k = waitpid(-1, &s, 0); in TEST()
81 k = waitpid(-1, NULL, 0); in TEST()
/linux-6.12.1/tools/testing/selftests/powerpc/math/
Dfpu_syscall.c39 waitpid(fork_pid, &child_ret, 0); in syscall_fpu()
68 waitpid(pid2, &child_ret, 0); in test_syscall_fpu()
76 waitpid(pid, &child_ret, 0); in test_syscall_fpu()
Dvmx_syscall.c38 waitpid(fork_pid, &child_ret, 0); in vmx_syscall()
72 waitpid(pid2, &child_ret, 0); in test_vmx_syscall()
80 waitpid(pid, &child_ret, 0); in test_vmx_syscall()
/linux-6.12.1/tools/testing/selftests/mm/
Dmrelease_test.c133 waitpid(pid, NULL, 0); in main()
140 waitpid(pid, NULL, 0); in main()
162 waitpid(pid, NULL, 0); in main()
168 if (waitpid(pid, NULL, 0) < 0) in main()
/linux-6.12.1/tools/perf/arch/x86/tests/
Dbp-modify.c67 waitpid(child, &status, 0); in bp_modify1()
106 waitpid(child, &status, 0); in bp_modify1()
144 waitpid(child, &status, 0); in bp_modify2()
182 waitpid(child, &status, 0); in bp_modify2()
/linux-6.12.1/arch/um/os-Linux/
Dstart_up.c108 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in start_ptraced_child()
125 CATCH_EINTR(n = waitpid(pid, &status, 0)); in stop_ptraced_child()
149 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in check_sysemu()
202 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in check_ptrace()
Dhelper.c100 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in run_helper()
137 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); in run_helper_thread()
158 CATCH_EINTR(ret = waitpid(pid, &status, wflags)); in helper_wait()
/linux-6.12.1/tools/testing/selftests/landlock/
Dptrace_test.c352 ASSERT_EQ(parent, waitpid(parent, &status, 0)); in TEST_F()
398 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
425 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
432 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
Dscoped_abstract_unix_test.c155 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
264 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
434 ASSERT_EQ(grand_child, waitpid(grand_child, &status, 0)); in TEST_F()
461 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
616 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
865 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
968 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST()
1032 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST()
/linux-6.12.1/tools/testing/selftests/proc/
Dproc-loadavg-001.c61 if (waitpid(pid, NULL, 0) == -1) in main()
77 if (waitpid(pid, &wstatus, 0) == -1) in main()
/linux-6.12.1/tools/testing/selftests/sched_ext/
Dinit_enable_count.c64 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test()
101 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test()
116 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test()
/linux-6.12.1/tools/testing/selftests/x86/
Dfsgsbase_restore.c184 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in main()
213 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in main()
223 if (waitpid(chld, &status, 0) != chld) in main()
Dptrace_syscall.c198 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in test_ptrace_syscall_restart()
285 if (waitpid(chld, &status, 0) != chld) in test_ptrace_syscall_restart()
319 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in test_restart_under_ptrace()
374 if (waitpid(chld, &status, 0) != chld) in test_restart_under_ptrace()
406 if (waitpid(chld, &status, 0) != chld) in test_restart_under_ptrace()
/linux-6.12.1/tools/testing/selftests/breakpoints/
Dstep_after_suspend_test.c63 wpid = waitpid(pid, &status, __WALL); in run_test()
90 wpid = waitpid(pid, &status, __WALL); in run_test()
116 wpid = waitpid(pid, &status, __WALL); in run_test()
Dbreakpoint_test_arm64.c127 wpid = waitpid(pid, &status, __WALL); in run_test()
154 wpid = waitpid(pid, &status, __WALL); in run_test()
186 wpid = waitpid(pid, &status, 0); in run_test()
/linux-6.12.1/tools/testing/selftests/powerpc/signal/
Dsigreturn_kernel.c50 waitpid(pid, &child_ret, 0); in expect_segv()
121 waitpid(pid, &child_ret, 0); in test_sigreturn_kernel()
/linux-6.12.1/tools/perf/bench/
Dsyscall.c48 if (waitpid(pid, NULL, 0) < 0) { in test_fork()
69 if (waitpid(pid, NULL, 0) < 0) { in test_execve()
/linux-6.12.1/tools/testing/selftests/clone3/
Dclone3_cap_checkpoint_restore.c68 if (waitpid(pid, &status, 0) < 0) { in call_clone3_set_tid()
154 ASSERT_GT(waitpid(pid, &status, 0), 0) in TEST()
Dclone3_set_tid.c106 if (waitpid(pid, &status, 0) < 0) { in call_clone3_set_tid()
275 if (waitpid(pid, &status, 0) < 0) in main()
396 if (waitpid(ns_pid, &status, 0) < 0) { in main()
/linux-6.12.1/tools/testing/selftests/seccomp/
Dseccomp_bpf.c878 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
897 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
916 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
1626 ASSERT_EQ(tracer, waitpid(tracer, &status, 0)); in teardown_trace_fixture()
3098 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
3106 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
3127 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
3142 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
3148 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
3176 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
[all …]
/linux-6.12.1/tools/tracing/rtla/src/
Dtimerlat_u.c188 pid = waitpid(-1, &wstatus, WNOHANG); in timerlat_u_dispatcher()
207 pid = waitpid(-1, &wstatus, 0); in timerlat_u_dispatcher()
/linux-6.12.1/tools/testing/selftests/kvm/
Dhardware_disable_test.c135 if (pid != waitpid(pid, &status, WNOHANG)) in wait_for_child_setup()
171 r = waitpid(pid, &s, WNOHANG); in main()

1234567