| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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 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()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
| D | pidfd_test.c | 199 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()
|
| D | pidfd_getfd_test.c | 30 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()
|
| /kernel/liteos_a/testsuites/unittest/container/full/ |
| D | It_pid_container_018.cpp | 89 pid_t pid2 = fork(); in ChildFun() local 90 if (pid2 == 0) { in ChildFun() 110 ret = waitpid(pid2, NULL, 0); in ChildFun() 111 if (ret != pid2) { in ChildFun()
|
| D | It_pid_container_020.cpp | 52 pid_t pid2 = fork(); in Child() local 53 if (pid2 == 0) { in Child()
|
| /kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/ |
| D | process_test_022.cpp | 72 pid_t pid, pid1, pid2; in ProcessTest() local 98 pid2 = fork(); in ProcessTest() 99 ICUNIT_GOTO_WITHIN_EQUAL(pid2, 0, 100000, pid, EXIT); // 100000, assert pid2 equal to this. in ProcessTest() 100 if (pid2 == 0) { in ProcessTest()
|
| D | process_test_023.cpp | 75 pid_t pid, pid1, pid2; in ProcessTest() local 98 pid2 = fork(); in ProcessTest() 99 ICUNIT_GOTO_WITHIN_EQUAL(pid2, 0, 100000, pid, EXIT); // 100000, assert pid2 equal to this. in ProcessTest() 100 if (pid2 == 0) { in ProcessTest()
|
| D | process_test_024.cpp | 70 pid_t pid, pid1, pid2; in ProcessTest() local 92 pid2 = fork(); in ProcessTest() 93 ICUNIT_GOTO_WITHIN_EQUAL(pid2, 0, 100000, pid, EXIT); // 100000, assert pid2 equal to this. in ProcessTest() 94 if (pid2 == 0) { in ProcessTest()
|
| D | process_test_025.cpp | 75 pid_t pid, pid1, pid2; in ProcessTest() local 99 pid2 = fork(); in ProcessTest() 100 ICUNIT_GOTO_WITHIN_EQUAL(pid2, 0, 100000, pid, EXIT); // 100000, assert pid2 equal to this. in ProcessTest() 101 if (pid2 == 0) { in ProcessTest()
|
| D | process_test_018.cpp | 56 pid_t pid, pid1, pid2; in ProcessTest() local
|
| D | process_test_019.cpp | 56 pid_t pid, pid1, pid2; in ProcessTest() local
|
| /kernel/liteos_a/testsuites/unittest/container/smoke/ |
| D | It_net_container_011.cpp | 79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWNET, NULL); in ItNetContainer011() local 80 ASSERT_EQ(pid2, -1); in ItNetContainer011()
|
| D | It_ipc_container_007.cpp | 79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWIPC, NULL); in ItIpcContainer007() local 80 ASSERT_EQ(pid2, -1); in ItIpcContainer007()
|
| D | It_mnt_container_009.cpp | 79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWNS, NULL); in ItMntContainer009() local 80 ASSERT_EQ(pid2, -1); in ItMntContainer009()
|
| D | It_uts_container_007.cpp | 79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWUTS, NULL); in ItUtsContainer007() local 80 ASSERT_EQ(pid2, -1); in ItUtsContainer007()
|
| D | It_user_container_006.cpp | 79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWUSER, NULL); in ItUserContainer006() local 80 ASSERT_EQ(pid2, -1); in ItUserContainer006()
|
| D | It_pid_container_032.cpp | 81 auto pid2 = clone(childFunc, stackTop, CLONE_NEWPID, NULL); in ItPidContainer032() local 82 ASSERT_EQ(pid2, -1); in ItPidContainer032()
|
| /kernel/linux/build/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/ |
| D | cpuisolation02.sh | 138 for pid2 in $(cat cpu3_taskpid.txt); do 140 | awk -F " " '{print $3}' | grep -w "$pid2"
|
| /kernel/linux/linux-5.10/arch/parisc/include/asm/ |
| D | kgdb.h | 52 unsigned long pid2; member
|
| /kernel/linux/linux-5.10/kernel/ |
| D | kcmp.c | 152 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument 164 task2 = find_task_by_vpid(pid2); in SYSCALL_DEFINE5()
|
| D | pid.c | 371 struct pid *pid2 = right->thread_pid; in exchange_tids() local 373 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID]; in exchange_tids() 379 rcu_assign_pointer(left->thread_pid, pid2); in exchange_tids() 383 WRITE_ONCE(left->pid, pid_nr(pid2)); in exchange_tids()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/seccomp/ |
| D | seccomp_bpf.c | 287 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument 291 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp() 299 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument 302 _ret = __filecmp(pid1, pid2, fd1, fd2); \ 3622 pid_t pid, pid2; in TEST() local 3641 pid2 = fork(); in TEST() 3642 ASSERT_GE(pid2, 0); in TEST() 3644 if (pid2 == 0) in TEST() 3647 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST() 3660 pid2 = fork(); in TEST() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/ |
| D | fib_nexthops.sh | 845 local pid2 867 pid2=$! 876 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1477 local pid2 1499 pid2=$! 1508 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
|