Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kcmp/
H A 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 printf("pid1: %6d pid2: %6d FD: %2ld FILES: %2ld VM: %2ld " in main()
104 pid1, pid2, in main()
105 sys_kcmp(pid1, pid2, KCMP_FIL in main()
[all...]
/linux/tools/testing/selftests/powerpc/math/
H A Dfpu_syscall.c52 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 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()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_links.c21 __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_ids[3]"); in test_tc_links_before_target()
[all …]
H A Dtc_opts.c1402 __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/
H A Dpidfd_test.c200 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 ! in test_pidfd_send_signal_recycled_pid_fail()
[all...]
H A Dpidfd_getfd_test.c31 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 Dpidfd_setns_test.c413 static int in_same_namespace(int ns_fd1, pid_t pid2, const char *ns) in in_same_namespace() argument
423 ns_fd2 = preserve_ns(pid2, ns); in in_same_namespace()
/linux/tools/testing/selftests/net/
H A Dfib_nexthops.sh1245 local pid2
1267 pid2=$!
1276 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1277 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1293 local pid2
1321 pid2=$!
1332 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1333 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
2017 local pid2
2039 pid2=$!
[all …]
H A Dtest_bridge_backup_port.sh656 local pid2
680 pid2=$!
683 kill -9 $pid1 $pid2
684 wait $pid1 $pid2 2>/dev/null
H A Dtest_vxlan_mdb.sh2370 local pid2
2390 pid2=$!
2397 kill -9 $pid1 $pid2 $pid3 $pid4
2398 wait $pid1 $pid2 $pid3 $pid4 2>/dev/null
/linux/arch/parisc/include/asm/
H A Dkgdb.h54 unsigned long pid2; member
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c309 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument
313 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp()
321 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument
324 _ret = __filecmp(pid1, pid2, fd1, fd2); \
3701 pid_t pid, pid2; in TEST() local
3725 pid2 = fork(); in TEST()
3726 ASSERT_GE(pid2, 0); in TEST()
3728 if (pid2 == 0) in TEST()
3731 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST()
3746 pid2 = fork(); in TEST()
[all …]
/linux/tools/perf/util/
H A Djitdump.c744 pid_t pid2; in jit_detect() local
772 pid2 = (int)strtol(p, &end, 10); in jit_detect()
785 if (pid && !(pid2 == pid || *in_pidns)) in jit_detect()
/linux/tools/arch/powerpc/include/uapi/asm/
H A Dkvm.h201 __u32 pid1, pid2; member
/linux/arch/powerpc/include/uapi/asm/
H A Dkvm.h201 __u32 pid1, pid2; member
/linux/drivers/scsi/qla2xxx/
H A Dqla_init.c9519 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local
9542 pid2 = vha->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9545 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
9552 pid2 = fcport->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9555 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
/linux/include/linux/
H A Dsyscalls.h911 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,