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 (void)wait_for_pid(pid); in test_pidfd_send_signal_exited_fail()
155 const char *test_name = "pidfd_send_signal signal recycled pid"; in test_pidfd_send_signal_recycled_pid_fail()
167 ksft_test_result_skip("%s test: Unsharing pid namespace not permitted\n", in test_pidfd_send_signal_recycled_pid_fail()
171 ksft_exit_fail_msg("%s test: Failed to unshare pid namespace\n", in test_pidfd_send_signal_recycled_pid_fail()
191 /* pid 1 in new pid namespace */ in test_pidfd_send_signal_recycled_pid_fail()
207 /* grab pid PID_RECYCLE */ in test_pidfd_send_signal_recycled_pid_fail()
218 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail()
231 * able to grab pid PID_RECYCLE skip the test. in test_pidfd_send_signal_recycled_pid_fail()
266 * recycled pid PID_RECYCLE. in test_pidfd_send_signal_recycled_pid_fail()
277 * We have recycled the pid. Try to signal it. This in test_pidfd_send_signal_recycled_pid_fail()
319 /* failed to recycle pid */ in test_pidfd_send_signal_recycled_pid_fail()
327 "%s test: Managed to signal recycled pid %d\n", in test_pidfd_send_signal_recycled_pid_fail()
330 ksft_exit_fail_msg("%s test: Failed to recycle pid %d\n", in test_pidfd_send_signal_recycled_pid_fail()
338 "%s test: Failed to signal recycled pid as expected\n", in test_pidfd_send_signal_recycled_pid_fail()
383 ksft_print_msg("Child Thread: starting. pid %d tid %d ; and sleeping\n", in test_pidfd_poll_exec_thread()
389 ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", in test_pidfd_poll_exec_thread()
429 ksft_print_msg("Child (pidfd): starting. pid %d tid %d\n", getpid(), in child_poll_exec_test()
444 int pid, pidfd = 0; in test_pidfd_poll_exec() local
449 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec()
450 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_exec_test); in test_pidfd_poll_exec()
451 if (pid < 0) in test_pidfd_poll_exec()
453 test_name, pid, errno); in test_pidfd_poll_exec()
455 ksft_print_msg("Parent: Waiting for Child (%d) to complete.\n", pid); in test_pidfd_poll_exec()
458 ret = waitpid(pid, &status, 0); in test_pidfd_poll_exec()
462 if (ret == pid) in test_pidfd_poll_exec()
482 ksft_print_msg("Child Thread: starting. pid %d tid %d ; and sleeping\n", in test_pidfd_poll_leader_exit_thread()
485 ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
494 ksft_print_msg("Child: starting. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test()
510 int pid, pidfd = 0; in test_pidfd_poll_leader_exit() local
522 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
523 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_leader_exit_test); in test_pidfd_poll_leader_exit()
524 if (pid < 0) in test_pidfd_poll_leader_exit()
526 test_name, pid, errno); in test_pidfd_poll_leader_exit()
528 ksft_print_msg("Parent: Waiting for Child (%d) to complete.\n", pid); in test_pidfd_poll_leader_exit()
531 ret = waitpid(pid, &status, 0); in test_pidfd_poll_leader_exit()
544 if (ret == pid) in test_pidfd_poll_leader_exit()