| /linux/tools/testing/selftests/kcmp/ |
| A D | kcmp_test.c | 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() 106 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main() 107 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), in main() 108 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0), in main() 110 sys_kcmp(pid1, pid2, KCMP_IO, 0, 0), in main() [all …]
|
| /linux/tools/testing/selftests/powerpc/math/ |
| A D | fpu_syscall.c | 52 pid_t pid2; in test_syscall_fpu() local 58 pid2 = fork(); in test_syscall_fpu() 60 if (pid2 == -1) { in test_syscall_fpu() 67 if (pid2) in test_syscall_fpu() 68 waitpid(pid2, &child_ret, 0); in test_syscall_fpu()
|
| A 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/tools/testing/selftests/bpf/prog_tests/ |
| A D | tc_links.c | 21 __u32 pid1, pid2, lid1, lid2; in serial_test_tc_links_basic() local 120 __u32 pid1, pid2, pid3, pid4; in test_tc_links_before_target() local 274 __u32 pid1, pid2, pid3, pid4; in test_tc_links_after_target() local 428 __u32 pid1, pid2, lid1, lid2; in test_tc_links_revision_target() local 529 __u32 pid1, pid2, pid3; in test_tc_chain_classic() local 859 __u32 pid1, pid2, lid1; in test_tc_links_invalid_target() local 995 .relative_id = pid2, in test_tc_links_invalid_target() 1172 __u32 pid1, pid2, pid3, pid4; in test_tc_links_prepend_target() local 1328 __u32 pid1, pid2, pid3, pid4; in test_tc_links_append_target() local 1584 __u32 pid1, pid2, pid3; in test_tc_chain_mixed() local [all …]
|
| A D | tc_netkit.c | 168 __u32 pid1, pid2, lid1, lid2; in serial_test_tc_netkit_basic() local 194 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_netkit_basic() 259 ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]"); in serial_test_tc_netkit_basic() 282 __u32 pid1, pid2, lid1, lid2; in serial_test_tc_netkit_multi_links_target() local 308 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_netkit_multi_links_target() 377 ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]"); in serial_test_tc_netkit_multi_links_target() 410 __u32 pid1, pid2, fd1, fd2; in serial_test_tc_netkit_multi_opts_target() local 428 pid2 = id_from_prog_fd(fd2); in serial_test_tc_netkit_multi_opts_target() 430 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_netkit_multi_opts_target() 524 __u32 pid1, pid2, lid1; in serial_test_tc_netkit_device() local [all …]
|
| A 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/tools/testing/selftests/pidfd/ |
| A 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()
|
| A D | pidfd_getfd_test.c | 31 static int sys_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, in sys_kcmp() argument 34 return syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in sys_kcmp()
|
| A D | pidfd_setns_test.c | 452 static int in_same_namespace(int ns_fd1, pid_t pid2, const char *ns) in in_same_namespace() argument 462 ns_fd2 = preserve_ns(pid2, ns); in in_same_namespace()
|
| /linux/tools/testing/selftests/net/ |
| A D | fib_nexthops.sh | 1245 local pid2 1267 pid2=$! 1276 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1293 local pid2 1321 pid2=$! 1332 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 2017 local pid2 2039 pid2=$! 2048 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 2065 local pid2 [all …]
|
| A D | test_bridge_backup_port.sh | 656 local pid2 680 pid2=$! 683 kill -9 $pid1 $pid2 684 wait $pid1 $pid2 2>/dev/null
|
| A D | tls.c | 1255 int pid2; in TEST_F() local 1265 pid2 = wait(&status); in TEST_F() 1267 EXPECT_EQ(res, pid2); in TEST_F() 1309 int pid2; in TEST_F() local 1325 pid2 = wait(&status); in TEST_F() 1328 EXPECT_EQ(res, pid2); in TEST_F() 1935 int status, pid2; in TEST_F() local 1947 pid2 = wait(&status); in TEST_F() 1948 EXPECT_EQ(pid2, ret); in TEST_F()
|
| A D | test_vxlan_mdb.sh | 2370 local pid2 2390 pid2=$! 2397 kill -9 $pid1 $pid2 $pid3 $pid4 2398 wait $pid1 $pid2 $pid3 $pid4 2>/dev/null
|
| /linux/tools/perf/tests/shell/ |
| A D | record_lbr.sh | 132 pid2=$! 148 for pid in $pid1 $pid2 $pid3 $pid4 $pid5 $pid6 $pid7 $pid8 $pid9
|
| /linux/kernel/ |
| A D | kcmp.c | 137 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument 149 task2 = find_task_by_vpid(pid2); in SYSCALL_DEFINE5()
|
| A D | pid.c | 385 struct pid *pid2 = right->thread_pid; in exchange_tids() local 387 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID]; in exchange_tids() 393 rcu_assign_pointer(left->thread_pid, pid2); in exchange_tids() 397 WRITE_ONCE(left->pid, pid_nr(pid2)); in exchange_tids()
|
| /linux/arch/parisc/include/asm/ |
| A D | kgdb.h | 54 unsigned long pid2; member
|
| /linux/tools/testing/selftests/seccomp/ |
| A D | seccomp_bpf.c | 3696 pid_t pid, pid2; in TEST() local 3720 pid2 = fork(); in TEST() 3723 if (pid2 == 0) in TEST() 3726 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST() 3741 pid2 = fork(); in TEST() 3744 if (pid2 == 0) { in TEST() 3766 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST() 4061 pid2 = fork(); in TEST() 4062 if (pid2 < 0) in TEST() 4065 if (pid2 == 0) in TEST() [all …]
|
| /linux/tools/perf/util/ |
| A D | jitdump.c | 744 pid_t pid2; in jit_detect() local 772 pid2 = (int)strtol(p, &end, 10); in jit_detect() 780 if (pid && pid2 != nsinfo__nstgid(nsi)) in jit_detect()
|
| /linux/tools/arch/powerpc/include/uapi/asm/ |
| A D | kvm.h | 201 __u32 pid1, pid2; member
|
| /linux/arch/powerpc/include/uapi/asm/ |
| A D | kvm.h | 201 __u32 pid1, pid2; member
|
| /linux/drivers/scsi/qla2xxx/ |
| A D | qla_init.c | 9509 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local 9532 pid2 = vha->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9535 else if (pid1 == pid2) in qla24xx_get_fcp_prio() 9542 pid2 = fcport->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9545 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
|
| /linux/include/linux/ |
| A D | syscalls.h | 898 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,
|