Lines Matching full:pid

148 	pid_t pid;  in test_pidfd_send_signal_exited_fail()  local
158 pid = fork(); in test_pidfd_send_signal_exited_fail()
159 if (pid < 0) in test_pidfd_send_signal_exited_fail()
163 if (pid == 0) in test_pidfd_send_signal_exited_fail()
166 snprintf(buf, sizeof(buf), "/proc/%d", pid); in test_pidfd_send_signal_exited_fail()
170 ret = wait_for_pid(pid); in test_pidfd_send_signal_exited_fail()
208 const char *test_name = "pidfd_send_signal signal recycled pid"; in test_pidfd_send_signal_recycled_pid_fail()
220 ksft_test_result_skip("%s test: Unsharing pid namespace not permitted\n", in test_pidfd_send_signal_recycled_pid_fail()
224 ksft_exit_fail_msg("%s test: Failed to unshare pid namespace\n", in test_pidfd_send_signal_recycled_pid_fail()
244 /* pid 1 in new pid namespace */ in test_pidfd_send_signal_recycled_pid_fail()
260 /* grab pid PID_RECYCLE */ in test_pidfd_send_signal_recycled_pid_fail()
271 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail()
284 * able to grab pid PID_RECYCLE skip the test. in test_pidfd_send_signal_recycled_pid_fail()
319 * recycled pid PID_RECYCLE. in test_pidfd_send_signal_recycled_pid_fail()
330 * We have recycled the pid. Try to signal it. This in test_pidfd_send_signal_recycled_pid_fail()
372 /* failed to recycle pid */ in test_pidfd_send_signal_recycled_pid_fail()
380 "%s test: Managed to signal recycled pid %d\n", in test_pidfd_send_signal_recycled_pid_fail()
383 ksft_exit_fail_msg("%s test: Failed to recycle pid %d\n", in test_pidfd_send_signal_recycled_pid_fail()
391 "%s test: Failed to signal recycled pid as expected\n", in test_pidfd_send_signal_recycled_pid_fail()
436 ksft_print_msg("Child Thread: starting. pid %d tid %ld ; and sleeping\n", in test_pidfd_poll_exec_thread()
442 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", in test_pidfd_poll_exec_thread()
482 ksft_print_msg("Child (pidfd): starting. pid %d tid %ld\n", getpid(), in child_poll_exec_test()
497 int pid, pidfd = 0; in test_pidfd_poll_exec() local
502 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_exec()
503 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_exec_test); in test_pidfd_poll_exec()
504 if (pid < 0) in test_pidfd_poll_exec()
506 test_name, pid, errno); in test_pidfd_poll_exec()
508 ksft_print_msg("Parent: Waiting for Child (%d) to complete.\n", pid); in test_pidfd_poll_exec()
511 ret = waitpid(pid, &status, 0); in test_pidfd_poll_exec()
515 if (ret == pid) in test_pidfd_poll_exec()
535 ksft_print_msg("Child Thread: starting. pid %d tid %ld ; and sleeping\n", in test_pidfd_poll_leader_exit_thread()
538 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
547 ksft_print_msg("Child: starting. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test()
563 int pid, pidfd = 0; in test_pidfd_poll_leader_exit() local
575 ksft_print_msg("Parent: pid: %d\n", getpid()); in test_pidfd_poll_leader_exit()
576 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_leader_exit_test); in test_pidfd_poll_leader_exit()
577 if (pid < 0) in test_pidfd_poll_leader_exit()
579 test_name, pid, errno); in test_pidfd_poll_leader_exit()
581 ksft_print_msg("Parent: Waiting for Child (%d) to complete.\n", pid); in test_pidfd_poll_leader_exit()
584 ret = waitpid(pid, &status, 0); in test_pidfd_poll_leader_exit()
597 if (ret == pid) in test_pidfd_poll_leader_exit()