/linux-6.6.21/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 104 pid1, pid2, in main() 105 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main() 106 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main() [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | tc_links.c | 19 __u32 pid1, pid2, lid1, lid2; in serial_test_tc_links_basic() local 29 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in serial_test_tc_links_basic() 31 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_links_basic() 96 ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]"); in serial_test_tc_links_basic() 118 __u32 pid1, pid2, pid3, pid4; in test_tc_links_before_target() local 142 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_before_target() 146 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_links_before_target() 148 ASSERT_NEQ(pid2, pid3, "prog_ids_2_3"); in test_tc_links_before_target() 187 ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]"); in test_tc_links_before_target() 244 ASSERT_EQ(optq.prog_ids[3], pid2, "prog_ids[3]"); in test_tc_links_before_target() [all …]
|
D | tc_opts.c | 1402 __u32 pid1, pid2, pid3, pid4, lid2, lid4; in test_tc_opts_mixed_target() local 1427 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_opts_mixed_target() 1431 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_opts_mixed_target() 1433 ASSERT_NEQ(pid2, pid3, "prog_ids_2_3"); in test_tc_opts_mixed_target() 1541 ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]"); in test_tc_opts_mixed_target() 1579 __u32 pid1, pid2; in test_tc_opts_demixed_target() local 1596 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_opts_demixed_target() 1597 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_opts_demixed_target()
|
/linux-6.6.21/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 200 pid_t pid2; in test_pidfd_send_signal_recycled_pid_fail() local 210 pid2 = fork(); in test_pidfd_send_signal_recycled_pid_fail() 211 if (pid2 < 0) in test_pidfd_send_signal_recycled_pid_fail() 214 if (pid2 == 0) in test_pidfd_send_signal_recycled_pid_fail() 217 if (pid2 == PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail() 218 snprintf(buf, sizeof(buf), "/proc/%d", pid2); in test_pidfd_send_signal_recycled_pid_fail() 219 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail() 223 if (wait_for_pid(pid2)) in test_pidfd_send_signal_recycled_pid_fail() 226 if (pid2 >= PID_RECYCLE) in test_pidfd_send_signal_recycled_pid_fail() 234 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()
|
D | pidfd_setns_test.c | 314 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()
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | fib_nexthops.sh | 1196 local pid2 1218 pid2=$! 1227 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1228 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null 1244 local pid2 1272 pid2=$! 1283 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1284 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null 1968 local pid2 1990 pid2=$! [all …]
|
D | test_bridge_backup_port.sh | 656 local pid2 680 pid2=$! 683 kill -9 $pid1 $pid2 684 wait $pid1 $pid2 2>/dev/null
|
D | tls.c | 1241 int pid2; in TEST_F() local 1251 pid2 = wait(&status); in TEST_F() 1253 EXPECT_EQ(res, pid2); in TEST_F() 1295 int pid2; in TEST_F() local 1311 pid2 = wait(&status); in TEST_F() 1314 EXPECT_EQ(res, pid2); in TEST_F() 1842 int status, pid2; in TEST_F() local 1854 pid2 = wait(&status); in TEST_F() 1855 EXPECT_EQ(pid2, ret); in TEST_F()
|
D | test_vxlan_mdb.sh | 2134 local pid2 2154 pid2=$! 2161 kill -9 $pid1 $pid2 $pid3 $pid4 2162 wait $pid1 $pid2 $pid3 $pid4 2>/dev/null
|
/linux-6.6.21/kernel/ |
D | kcmp.c | 135 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument 147 task2 = find_task_by_vpid(pid2); in SYSCALL_DEFINE5()
|
D | pid.c | 374 struct pid *pid2 = right->thread_pid; in exchange_tids() local 376 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID]; in exchange_tids() 382 rcu_assign_pointer(left->thread_pid, pid2); in exchange_tids() 386 WRITE_ONCE(left->pid, pid_nr(pid2)); in exchange_tids()
|
/linux-6.6.21/arch/parisc/include/asm/ |
D | kgdb.h | 54 unsigned long pid2; member
|
/linux-6.6.21/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 302 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument 306 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp() 314 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument 317 _ret = __filecmp(pid1, pid2, fd1, fd2); \ 3695 pid_t pid, pid2; in TEST() local 3714 pid2 = fork(); in TEST() 3715 ASSERT_GE(pid2, 0); in TEST() 3717 if (pid2 == 0) in TEST() 3720 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST() 3733 pid2 = fork(); in TEST() [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | jitdump.c | 743 pid_t pid2; in jit_detect() local 771 pid2 = (int)strtol(p, &end, 10); in jit_detect() 779 if (pid && pid2 != nsinfo__nstgid(nsi)) in jit_detect()
|
/linux-6.6.21/tools/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 202 __u32 pid1, pid2; member
|
/linux-6.6.21/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 202 __u32 pid1, pid2; member
|
/linux-6.6.21/drivers/scsi/qla2xxx/ |
D | qla_init.c | 9459 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local 9482 pid2 = vha->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9485 else if (pid1 == pid2) in qla24xx_get_fcp_prio() 9492 pid2 = fcport->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9495 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
|
/linux-6.6.21/include/linux/ |
D | syscalls.h | 873 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,
|