| /linux/tools/testing/selftests/kcmp/ |
| H A 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/tools/testing/selftests/powerpc/math/ |
| H 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()
|
| H 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/ |
| H A D | tc_links.c | 21 __u32 pid1, pid2, lid1, lid2; in serial_test_tc_links_basic() local 31 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in serial_test_tc_links_basic() 33 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_links_basic() 98 ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]"); in serial_test_tc_links_basic() 120 __u32 pid1, pid2, pid3, pid4; in test_tc_links_before_target() local 144 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_before_target() 148 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_links_before_target() 150 ASSERT_NEQ(pid2, pid3, "prog_ids_2_3"); in test_tc_links_before_target() 189 ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]"); in test_tc_links_before_target() 246 ASSERT_EQ(optq.prog_ids[3], pid2, "prog_id in test_tc_links_before_target() 274 __u32 pid1, pid2, pid3, pid4; test_tc_links_after_target() local 428 __u32 pid1, pid2, lid1, lid2; test_tc_links_revision_target() local 529 __u32 pid1, pid2, pid3; test_tc_chain_classic() local 633 __u32 pid1, pid2, pid3, lid1, lid2; test_tc_links_replace_target() local 859 __u32 pid1, pid2, lid1; test_tc_links_invalid_target() local 1172 __u32 pid1, pid2, pid3, pid4; test_tc_links_prepend_target() local 1328 __u32 pid1, pid2, pid3, pid4; test_tc_links_append_target() local 1483 __u32 pid1, pid2, pid3, pid4; test_tc_links_dev_cleanup_target() local 1584 __u32 pid1, pid2, pid3; test_tc_chain_mixed() local 1695 __u32 pid1, pid2, pid3; test_tc_links_ingress() local 1856 __u32 pid1, pid2, pid3, pid4; test_tc_links_dev_mixed() local [all...] |
| H A D | tc_opts.c | 1400 __u32 pid1, pid2, pid3, pid4, lid2, lid4; in test_tc_opts_mixed_target() local 1425 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_opts_mixed_target() 1429 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_opts_mixed_target() 1431 ASSERT_NEQ(pid2, pid3, "prog_ids_2_3"); in test_tc_opts_mixed_target() 1539 ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]"); in test_tc_opts_mixed_target() 1577 __u32 pid1, pid2; in test_tc_opts_demixed_target() local 1594 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_opts_demixed_target() 1595 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_opts_demixed_target()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_test.c | 252 pid_t pid2; in test_pidfd_send_signal_recycled_pid_fail() local 262 pid2 = fork(); in test_pidfd_send_signal_recycled_pid_fail() 263 if (pid2 < 0) in test_pidfd_send_signal_recycled_pid_fail() 266 if (pid2 == 0) in test_pidfd_send_signal_recycled_pid_fail() 269 if (pid2 == PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail() 270 snprintf(buf, sizeof(buf), "/proc/%d", pid2); in test_pidfd_send_signal_recycled_pid_fail() 271 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail() 275 if (wait_for_pid(pid2)) in test_pidfd_send_signal_recycled_pid_fail() 278 if (pid2 >= PID_RECYCLE) in test_pidfd_send_signal_recycled_pid_fail() 286 if (pid2 != PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail()
|
| H 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()
|
| H A D | pidfd_setns_test.c | 368 static int in_same_namespace(int ns_fd1, pid_t pid2, const char *ns) in in_same_namespace() argument 378 ns_fd2 = preserve_ns(pid2, ns); in in_same_namespace()
|
| /linux/tools/testing/selftests/net/ |
| H A D | fib_nexthops.sh | 1444 local pid2 1466 pid2=$! 1475 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1476 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null 1492 local pid2 1520 pid2=$! 1531 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1532 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null 2234 local pid2 2256 pid2 [all...] |
| H A D | test_bridge_backup_port.sh | 649 local pid2 673 pid2=$! 676 kill -9 $pid1 $pid2 677 wait $pid1 $pid2 2>/dev/null
|
| H A D | tls.c | 1476 int pid2; in TEST_F() 1486 pid2 = wait(&status); in TEST_F() 1488 EXPECT_EQ(res, pid2); in TEST_F() 1530 int pid2; in TEST_F() 1546 pid2 = wait(&status); in test_mutliproc() 1549 EXPECT_EQ(res, pid2); in test_mutliproc() 2358 int pid2, status; in TEST_F() 2366 pid2 = wait(&status); in TEST_F() 2367 EXPECT_EQ(pid2, ret); in TEST_F() 2401 int pid2, statu 1445 int pid2; TEST_F() local 1499 int pid2; TEST_F() local 2327 int pid2, status; TEST_F() local 2370 int pid2, status; TEST_F() local 3009 int status, pid2; TEST_F() local [all...] |
| H A D | test_vxlan_mdb.sh | 2346 local pid2 2366 pid2=$! 2373 kill -9 $pid1 $pid2 $pid3 $pid4 2374 wait $pid1 $pid2 $pid3 $pid4 2>/dev/null
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | listns_permissions_test.c | 239 pid_t pid1, pid2; in TEST() local 304 pid2 = fork(); in TEST() 305 ASSERT_GE(pid2, 0); in TEST() 307 if (pid2 == 0) { in TEST() 358 waitpid(pid2, &status, 0); in TEST()
|
| H A D | ns_active_ref_test.c | 180 pid_t pid1, pid2; in TEST() local 243 pid2 = fork(); in TEST() 244 ASSERT_GE(pid2, 0); in TEST() 246 if (pid2 == 0) { in TEST() 288 waitpid(pid2, &status, 0); in TEST()
|
| /linux/tools/perf/tests/shell/ |
| H A D | record_lbr.sh | 159 pid2=$! 181 for pid in $pid1 $pid2 $pid3 $pid4 $pid5 $pid6 $pid7 $pid8 $pid9
|
| /linux/arch/parisc/include/asm/ |
| H A D | kgdb.h | 54 unsigned long pid2; member
|
| /linux/kernel/ |
| H A D | pid.c | 439 struct pid *pid2 = right->thread_pid; in exchange_tids() local 441 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID]; in exchange_tids() 449 rcu_assign_pointer(left->thread_pid, pid2); in exchange_tids() 453 WRITE_ONCE(left->pid, pid_nr(pid2)); in exchange_tids()
|
| /linux/tools/testing/selftests/seccomp/ |
| H A D | seccomp_bpf.c | 336 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() 340 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp() 348 #define filecmp(pid1, pid2, fd1, fd2) ({ \ 351 _ret = __filecmp(pid1, pid2, fd1, fd2); \ 3753 pid_t pid, pid2; in TEST() 3777 pid2 = fork(); in TEST() 3778 ASSERT_GE(pid2, 0); in TEST() 3780 if (pid2 == 0) in TEST() 3783 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST() 332 __filecmp(pid_t pid1,pid_t pid2,int fd1,int fd2) __filecmp() argument 344 filecmp(pid1,pid2,fd1,fd2) global() argument 3749 pid_t pid, pid2; TEST() local 4094 pid_t pid1, pid2; TEST() local [all...] |
| /linux/tools/perf/util/ |
| H A D | jitdump.c | 885 pid_t pid2; in jit_process() 913 pid2 = (int)strtol(p, &end, 10); in jit_process() 926 if (pid && !(pid2 == pid || *in_pidns)) 763 pid_t pid2; jit_detect() local
|
| /linux/tools/arch/powerpc/include/uapi/asm/ |
| H A D | kvm.h | 188 __u32 pid1, pid2; member
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_init.c | 10415 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local 10438 pid2 = vha->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 10441 else if (pid1 == pid2) in qla24xx_get_fcp_prio() 10448 pid2 = fcport->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 10451 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
|