Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/liteos_a/testsuites/unittest/container/full/
DIt_pid_container_018.cpp89 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()
DIt_pid_container_020.cpp52 pid_t pid2 = fork(); in Child() local
53 if (pid2 == 0) { in Child()
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
Dprocess_test_022.cpp72 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()
Dprocess_test_023.cpp75 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()
Dprocess_test_024.cpp70 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()
Dprocess_test_025.cpp75 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()
Dprocess_test_018.cpp56 pid_t pid, pid1, pid2; in ProcessTest() local
Dprocess_test_019.cpp56 pid_t pid, pid1, pid2; in ProcessTest() local
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_net_container_011.cpp79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWNET, NULL); in ItNetContainer011() local
80 ASSERT_EQ(pid2, -1); in ItNetContainer011()
DIt_ipc_container_007.cpp79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWIPC, NULL); in ItIpcContainer007() local
80 ASSERT_EQ(pid2, -1); in ItIpcContainer007()
DIt_mnt_container_009.cpp79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWNS, NULL); in ItMntContainer009() local
80 ASSERT_EQ(pid2, -1); in ItMntContainer009()
DIt_uts_container_007.cpp79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWUTS, NULL); in ItUtsContainer007() local
80 ASSERT_EQ(pid2, -1); in ItUtsContainer007()
DIt_user_container_006.cpp79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWUSER, NULL); in ItUserContainer006() local
80 ASSERT_EQ(pid2, -1); in ItUserContainer006()
DIt_pid_container_032.cpp81 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/
Dcpuisolation02.sh138 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/
Dkgdb.h52 unsigned long pid2; member
/kernel/linux/linux-5.10/kernel/
Dkcmp.c152 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()
Dpid.c371 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/
Dseccomp_bpf.c287 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/
Dfib_nexthops.sh845 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

12