Lines Matching full:pid
96 pid_t pid; in test_pidfd_send_signal_exited_fail() local
106 pid = fork(); in test_pidfd_send_signal_exited_fail()
107 if (pid < 0) in test_pidfd_send_signal_exited_fail()
111 if (pid == 0) in test_pidfd_send_signal_exited_fail()
114 snprintf(buf, sizeof(buf), "/proc/%d", pid); in test_pidfd_send_signal_exited_fail()
118 ret = wait_for_pid(pid); in test_pidfd_send_signal_exited_fail()
156 const char *test_name = "pidfd_send_signal signal recycled pid"; in test_pidfd_send_signal_recycled_pid_fail()
168 ksft_test_result_skip("%s test: Unsharing pid namespace not permitted\n", in test_pidfd_send_signal_recycled_pid_fail()
172 ksft_exit_fail_msg("%s test: Failed to unshare pid namespace\n", in test_pidfd_send_signal_recycled_pid_fail()
192 /* pid 1 in new pid namespace */ in test_pidfd_send_signal_recycled_pid_fail()
208 /* grab pid PID_RECYCLE */ in test_pidfd_send_signal_recycled_pid_fail()
219 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail()
232 * able to grab pid PID_RECYCLE skip the test. in test_pidfd_send_signal_recycled_pid_fail()
267 * recycled pid PID_RECYCLE. in test_pidfd_send_signal_recycled_pid_fail()
278 * We have recycled the pid. Try to signal it. This in test_pidfd_send_signal_recycled_pid_fail()
320 /* failed to recycle pid */ in test_pidfd_send_signal_recycled_pid_fail()
328 "%s test: Managed to signal recycled pid %d\n", in test_pidfd_send_signal_recycled_pid_fail()
331 ksft_exit_fail_msg("%s test: Failed to recycle pid %d\n", in test_pidfd_send_signal_recycled_pid_fail()
339 "%s test: Failed to signal recycled pid as expected\n", in test_pidfd_send_signal_recycled_pid_fail()
384 ksft_print_msg("Child Thread: starting. pid %d tid %ld ; and sleeping\n", in test_pidfd_poll_exec_thread()
390 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", in test_pidfd_poll_exec_thread()
430 ksft_print_msg("Child (pidfd): starting. pid %d tid %ld\n", getpid(), in child_poll_exec_test()
445 int pid, pidfd = 0; in test_pidfd_poll_exec() local
450 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec()
451 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_exec_test); in test_pidfd_poll_exec()
452 if (pid < 0) in test_pidfd_poll_exec()
454 test_name, pid, errno); in test_pidfd_poll_exec()
456 ksft_print_msg("Parent: Waiting for Child (%d) to complete.\n", pid); in test_pidfd_poll_exec()
459 ret = waitpid(pid, &status, 0); in test_pidfd_poll_exec()
463 if (ret == pid) in test_pidfd_poll_exec()
483 ksft_print_msg("Child Thread: starting. pid %d tid %ld ; and sleeping\n", in test_pidfd_poll_leader_exit_thread()
486 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
495 ksft_print_msg("Child: starting. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test()
511 int pid, pidfd = 0; in test_pidfd_poll_leader_exit() local
523 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
524 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_leader_exit_test); in test_pidfd_poll_leader_exit()
525 if (pid < 0) in test_pidfd_poll_leader_exit()
527 test_name, pid, errno); in test_pidfd_poll_leader_exit()
529 ksft_print_msg("Parent: Waiting for Child (%d) to complete.\n", pid); in test_pidfd_poll_leader_exit()
532 ret = waitpid(pid, &status, 0); in test_pidfd_poll_leader_exit()
545 if (ret == pid) in test_pidfd_poll_leader_exit()