/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 23 static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2) in sys_kcmp() argument 25 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in sys_kcmp() 35 int pid1, pid2; in main() local 81 pid2 = fork(); in main() 82 if (pid2 < 0) { in main() 87 if (!pid2) { in main() 88 int pid2 = getpid(); in main() local 101 pid1, pid2, in main() 102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main() 103 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main() [all …]
|
/tools/testing/selftests/powerpc/math/ |
D | fpu_syscall.c | 50 pid_t pid2; in test_syscall_fpu() local 56 pid2 = fork(); in test_syscall_fpu() 58 if (pid2 == -1) { in test_syscall_fpu() 65 if (pid2) in test_syscall_fpu() 66 waitpid(pid2, &child_ret, 0); in test_syscall_fpu()
|
D | vmx_syscall.c | 51 pid_t pid2; in test_vmx_syscall() local 57 pid2 = fork(); in test_vmx_syscall() 60 if (pid2 == -1) { in test_vmx_syscall() 66 if (pid2) in test_vmx_syscall() 67 waitpid(pid2, &child_ret, 0); in test_vmx_syscall()
|
/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 164 pid_t pid2; in test_pidfd_send_signal_recycled_pid_fail() local 174 pid2 = fork(); in test_pidfd_send_signal_recycled_pid_fail() 175 if (pid2 < 0) in test_pidfd_send_signal_recycled_pid_fail() 178 if (pid2 == 0) in test_pidfd_send_signal_recycled_pid_fail() 181 if (pid2 == PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail() 182 snprintf(buf, sizeof(buf), "/proc/%d", pid2); in test_pidfd_send_signal_recycled_pid_fail() 183 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail() 187 if (wait_for_pid(pid2)) in test_pidfd_send_signal_recycled_pid_fail() 190 if (pid2 >= PID_RECYCLE) in test_pidfd_send_signal_recycled_pid_fail() 198 if (pid2 != PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail()
|
/tools/testing/selftests/net/ |
D | tls.c | 834 int pid2; in TEST_F() local 844 pid2 = wait(&status); in TEST_F() 846 EXPECT_EQ(res, pid2); in TEST_F() 888 int pid2; in TEST_F() local 904 pid2 = wait(&status); in TEST_F() 907 EXPECT_EQ(res, pid2); in TEST_F()
|
/tools/perf/util/ |
D | jitdump.c | 702 pid_t pid2; in jit_detect() local 730 pid2 = (int)strtol(p, &end, 10); in jit_detect() 738 if (pid && pid2 != pid) in jit_detect()
|
/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 3390 pid_t pid, pid2; in TEST() local 3409 pid2 = fork(); in TEST() 3410 ASSERT_GE(pid2, 0); in TEST() 3412 if (pid2 == 0) in TEST() 3415 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST() 3425 pid2 = fork(); in TEST() 3426 ASSERT_GE(pid2, 0); in TEST() 3428 if (pid2 == 0) { in TEST() 3450 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST()
|
/tools/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 202 __u32 pid1, pid2; member
|