Home
last modified time | relevance | path

Searched refs:pid2 (Results 1 – 8 of 8) sorted by relevance

/tools/testing/selftests/kcmp/
Dkcmp_test.c23 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/
Dfpu_syscall.c50 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()
Dvmx_syscall.c51 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/
Dpidfd_test.c164 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/
Dtls.c834 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/
Djitdump.c702 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/
Dseccomp_bpf.c3390 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/
Dkvm.h202 __u32 pid1, pid2; member