Searched refs:waitpid (Results 1 - 25 of 152) sorted by relevance

1234567

/linux-master/tools/testing/selftests/proc/
H A Dproc-loadavg-001.c61 if (waitpid(pid, NULL, 0) == -1)
77 if (waitpid(pid, &wstatus, 0) == -1)
/linux-master/tools/testing/selftests/ptrace/
H A Dvmaccess.c62 k = waitpid(-1, &s, WNOHANG);
71 k = waitpid(-1, &s, 0);
77 k = waitpid(-1, &s, 0);
81 k = waitpid(-1, NULL, 0);
/linux-master/tools/testing/selftests/powerpc/math/
H A Dvmx_syscall.c38 waitpid(fork_pid, &child_ret, 0);
72 waitpid(pid2, &child_ret, 0);
80 waitpid(pid, &child_ret, 0);
H A Dfpu_syscall.c39 waitpid(fork_pid, &child_ret, 0);
68 waitpid(pid2, &child_ret, 0);
76 waitpid(pid, &child_ret, 0);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dexhandler.c38 waitpid(cpid, &status, 0);
H A Dns_current_pid_tgid.c74 if (CHECK(waitpid(cpid, &wstatus, 0) == -1, "waitpid", "%s\n", strerror(errno)))
/linux-master/tools/testing/selftests/mm/
H A Dmrelease_test.c133 waitpid(pid, NULL, 0);
140 waitpid(pid, NULL, 0);
162 waitpid(pid, NULL, 0);
168 if (waitpid(pid, NULL, 0) < 0)
169 ksft_exit_fail_msg("waitpid: %s\n", strerror(errno));
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-perf-hwbreak.c204 FAIL_IF_MSG(waitpid(*pid, &status, 0) == -1, "Failed to wait for child");
233 int status; /* Stop status of child after waitpid */
262 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
277 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
295 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
305 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
320 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
338 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
353 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
387 int status; /* Stop status of child after waitpid */
[all...]
/linux-master/tools/perf/arch/x86/tests/
H A Dbp-modify.c67 waitpid(child, &status, 0);
106 waitpid(child, &status, 0);
144 waitpid(child, &status, 0);
182 waitpid(child, &status, 0);
/linux-master/tools/testing/selftests/timers/
H A Dskew_consistency.c57 while (pid != waitpid(pid, &ret, WNOHANG)) {
/linux-master/tools/testing/selftests/powerpc/dscr/
H A Ddscr_inherit_test.c49 if (waitpid(pid, &status, 0) == -1) {
50 perror("waitpid() failed");
H A Ddscr_inherit_exec_test.c69 if (waitpid(pid, &status, 0) == -1) {
70 perror("waitpid() failed");
/linux-master/tools/testing/selftests/arm64/fp/
H A Dza-fork.c50 waiting = waitpid(newpid, &child_status, 0);
55 ksft_print_msg("waitpid() failed: %d\n", errno);
59 ksft_print_msg("waitpid() returned wrong PID\n");
/linux-master/tools/testing/selftests/powerpc/signal/
H A Dsigreturn_kernel.c50 waitpid(pid, &child_ret, 0);
121 waitpid(pid, &child_ret, 0);
H A Dsignal.c75 waitpid(pid, NULL, 0);
/linux-master/tools/testing/selftests/perf_events/
H A Dremove_on_exec.c113 EXPECT_EQ(waitpid(pid, &status, 0), pid);
148 ASSERT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Child is running. */
157 EXPECT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Should still be running. */
164 EXPECT_EQ(waitpid(pid_only_fork, &tmp, 0), pid_only_fork);
190 EXPECT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Should still be running. */
219 EXPECT_EQ(waitpid(pids[i], &tmp, WNOHANG), 0);
/linux-master/tools/testing/selftests/x86/
H A Dfsgsbase_restore.c185 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status))
186 err(1, "waitpid");
214 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status))
215 err(1, "waitpid");
224 if (waitpid(chld, &status, 0) != chld)
225 err(1, "waitpid");
H A Dtest_mremap_vdso.c94 if (waitpid(child, &status, 0) != child ||
/linux-master/tools/testing/selftests/breakpoints/
H A Dbreakpoint_test_arm64.c127 wpid = waitpid(pid, &status, __WALL);
130 "waitpid() failed: %s\n", strerror(errno));
154 wpid = waitpid(pid, &status, __WALL);
157 "waitpid() failed: %s\n", strerror(errno));
186 wpid = waitpid(pid, &status, 0);
189 "waitpid() failed: %s\n", strerror(errno));
H A Dstep_after_suspend_test.c63 wpid = waitpid(pid, &status, __WALL);
65 ksft_print_msg("waitpid() failed: %s\n", strerror(errno));
90 wpid = waitpid(pid, &status, __WALL);
92 ksft_print_msg("waitpid() failed: %s\n", strerror(errno));
116 wpid = waitpid(pid, &status, __WALL);
118 ksft_print_msg("waitpid() failed: %s\n", strerror(errno));
/linux-master/arch/um/os-Linux/
H A Dhelper.c100 CATCH_EINTR(waitpid(pid, NULL, __WALL));
137 CATCH_EINTR(pid = waitpid(pid, &status, __WALL));
158 CATCH_EINTR(ret = waitpid(pid, &status, wflags));
160 printk(UM_KERN_ERR "helper_wait : waitpid process %d failed, "
/linux-master/tools/perf/bench/
H A Dsyscall.c48 if (waitpid(pid, NULL, 0) < 0) {
49 fprintf(stderr, "waitpid failed\n");
69 if (waitpid(pid, NULL, 0) < 0) {
70 fprintf(stderr, "waitpid failed\n");
/linux-master/tools/testing/selftests/powerpc/mm/
H A Dlarge_vm_fork_separation.c75 FAIL_IF(waitpid(pid, &status, 0) == -1);
/linux-master/tools/testing/selftests/sync/
H A Dsync_test.c50 waitpid(childpid, &result, 0);
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_poll_test.c108 if (waitpid(child_pid, NULL, 0) < 0)
109 ksft_exit_fail_msg("%s - waitpid failed\n",

Completed in 663 milliseconds

1234567