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()
442 int pid, pidfd = 0; in test_pidfd_poll_exec() local
448 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec()
449 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_exec_test); in test_pidfd_poll_exec()
450 if (pid < 0) in test_pidfd_poll_exec()
452 test_name, pid, errno); in test_pidfd_poll_exec()
454 ksft_print_msg("Parent: Waiting for Child (%d) to complete.\n", pid); in test_pidfd_poll_exec()
457 ret = waitpid(pid, &status, 0); in test_pidfd_poll_exec()
461 if (ret == pid) in test_pidfd_poll_exec()
481 ksft_print_msg("Child Thread: starting. pid %d tid %d ; and sleeping\n", in test_pidfd_poll_leader_exit_thread()
484 ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
493 ksft_print_msg("Child: starting. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test()
507 int pid, pidfd = 0; in test_pidfd_poll_leader_exit() local
520 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
521 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_leader_exit_test); in test_pidfd_poll_leader_exit()
522 if (pid < 0) in test_pidfd_poll_leader_exit()
524 test_name, pid, errno); in test_pidfd_poll_leader_exit()
526 ksft_print_msg("Parent: Waiting for Child (%d) to complete.\n", pid); in test_pidfd_poll_leader_exit()
529 ret = waitpid(pid, &status, 0); in test_pidfd_poll_leader_exit()
542 if (ret == pid) in test_pidfd_poll_leader_exit()