Home
last modified time | relevance | path

Searched refs:pid2 (Results 1 – 11 of 11) 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
62 pid2 = fork(); in test_vmx_syscall()
65 if (pid2 == -1) { in test_vmx_syscall()
71 if (pid2) in test_vmx_syscall()
72 waitpid(pid2, &child_ret, 0); in test_vmx_syscall()
/tools/testing/selftests/pidfd/
Dpidfd_test.c199 pid_t pid2; in test_pidfd_send_signal_recycled_pid_fail() local
209 pid2 = fork(); in test_pidfd_send_signal_recycled_pid_fail()
210 if (pid2 < 0) in test_pidfd_send_signal_recycled_pid_fail()
213 if (pid2 == 0) in test_pidfd_send_signal_recycled_pid_fail()
216 if (pid2 == PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail()
217 snprintf(buf, sizeof(buf), "/proc/%d", pid2); 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()
222 if (wait_for_pid(pid2)) in test_pidfd_send_signal_recycled_pid_fail()
225 if (pid2 >= PID_RECYCLE) in test_pidfd_send_signal_recycled_pid_fail()
233 if (pid2 != PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail()
Dpidfd_getfd_test.c30 static int sys_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, in sys_kcmp() argument
33 return syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in sys_kcmp()
Dpidfd_setns_test.c314 static int in_same_namespace(int ns_fd1, pid_t pid2, const char *ns) in in_same_namespace() argument
324 ns_fd2 = preserve_ns(pid2, ns); in in_same_namespace()
/tools/testing/selftests/net/
Dfib_nexthops.sh1003 local pid2
1025 pid2=$!
1034 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1035 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1051 local pid2
1079 pid2=$!
1090 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1091 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1775 local pid2
1797 pid2=$!
[all …]
Dtls.c969 int pid2; in TEST_F() local
979 pid2 = wait(&status); in TEST_F()
981 EXPECT_EQ(res, pid2); in TEST_F()
1023 int pid2; in TEST_F() local
1039 pid2 = wait(&status); in TEST_F()
1042 EXPECT_EQ(res, pid2); in TEST_F()
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c291 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument
295 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp()
303 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument
306 _ret = __filecmp(pid1, pid2, fd1, fd2); \
3626 pid_t pid, pid2; in TEST() local
3645 pid2 = fork(); in TEST()
3646 ASSERT_GE(pid2, 0); in TEST()
3648 if (pid2 == 0) in TEST()
3651 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST()
3664 pid2 = fork(); in TEST()
[all …]
/tools/perf/util/
Djitdump.c746 pid_t pid2; in jit_detect() local
774 pid2 = (int)strtol(p, &end, 10); in jit_detect()
782 if (pid && pid2 != nsi->nstgid) in jit_detect()
/tools/arch/powerpc/include/uapi/asm/
Dkvm.h202 __u32 pid1, pid2; member