Home
last modified time | relevance | path

Searched refs:pid1 (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
43 pid1 = getpid(); in main()
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()
107 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), in main()
108 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0), in main()
109 sys_kcmp(pid1, pid2, KCMP_SIGHAND, 0, 0), in main()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_links.c21 __u32 pid1, pid2, lid1, lid2; in serial_test_tc_links_basic() local
30 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in serial_test_tc_links_basic()
33 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_links_basic()
65 ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]"); in serial_test_tc_links_basic()
120 __u32 pid1, pid2, pid3, pid4; in test_tc_links_before_target() local
143 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_before_target()
148 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_links_before_target()
187 ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]"); in test_tc_links_before_target()
242 ASSERT_EQ(optq.prog_ids[1], pid1, "prog_ids[1]"); in test_tc_links_before_target()
274 __u32 pid1, pid in 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 Dtc_opts.c1402 __u32 pid1, pid2, pid3, pid4, lid2, lid4; in test_tc_opts_mixed_target() local
1426 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_opts_mixed_target()
1431 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_opts_mixed_target()
1579 __u32 pid1, pid2; in test_tc_opts_demixed_target() local
1595 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); 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/net/
H A Dfib_nexthops.sh1294 local pid1
1315 pid1=$!
1326 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1327 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1342 local pid1
1369 pid1=$!
1382 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1383 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
2073 local pid1
2094 pid1=$!
[all …]
H A Dtest_bridge_backup_port.sh678 local pid1
701 pid1=$!
706 kill -9 $pid1 $pid2
707 wait $pid1 $pid2 2>/dev/null
H A Dtest_vxlan_mdb.sh2369 local pid1
2388 pid1=$!
2397 kill -9 $pid1 $pid2 $pid3 $pid4
2398 wait $pid1 $pid2 $pid3 $pid4 2>/dev/null
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_test.c207 pid_t pid1; in test_pidfd_send_signal_recycled_pid_fail() local
245 pid1 = fork(); in test_pidfd_send_signal_recycled_pid_fail()
246 if (pid1 < 0) in test_pidfd_send_signal_recycled_pid_fail()
250 if (pid1 == 0) { in test_pidfd_send_signal_recycled_pid_fail()
376 ret = wait_for_pid(pid1); in test_pidfd_send_signal_recycled_pid_fail()
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()
/linux/tools/testing/selftests/namespaces/
H A Dlistns_permissions_test.c239 pid_t pid1, pid2; in TEST() local
248 pid1 = fork(); in TEST()
249 ASSERT_GE(pid1, 0); in TEST()
251 if (pid1 == 0) { in TEST()
361 waitpid(pid1, &status, 0); in TEST()
H A Dns_active_ref_test.c175 pid_t pid1, pid2; in TEST() local
184 pid1 = fork(); in TEST()
185 ASSERT_GE(pid1, 0); in TEST()
187 if (pid1 == 0) { in TEST()
274 waitpid(pid1, &status, 0); in TEST()
/linux/tools/perf/tests/shell/
H A Drecord_lbr.sh139 pid1=$!
163 for pid in $pid1 $pid2 $pid3 $pid4 $pid5 $pid6 $pid7 $pid8 $pid9
/linux/arch/parisc/include/asm/
H A Dkgdb.h53 unsigned long pid1; member
/linux/kernel/
H A Dpid.c386 struct pid *pid1 = left->thread_pid; in exchange_tids() local
388 struct hlist_head *head1 = &pid1->tasks[PIDTYPE_PID]; in exchange_tids()
398 rcu_assign_pointer(right->thread_pid, pid1); in exchange_tids()
402 WRITE_ONCE(right->pid, pid_nr(pid1)); in exchange_tids()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c324 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument
328 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp()
336 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument
339 _ret = __filecmp(pid1, pid2, fd1, fd2); \
4062 pid_t pid1, pid2; in TEST() local
4075 pid1 = fork(); in TEST()
4076 if (pid1 < 0) in TEST()
4079 if (pid1 == 0) in TEST()
4097 if (waitpid(pid1, &status, 0) != pid1 || !WIFEXITED(status) || in TEST()
/linux/arch/powerpc/include/uapi/asm/
H A Dkvm.h188 __u32 pid1, pid2; member
/linux/tools/arch/powerpc/include/uapi/asm/
H A Dkvm.h188 __u32 pid1, pid2; member
/linux/drivers/scsi/qla2xxx/
H A Dqla_init.c9516 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local
9538 pid1 = pri_entry->src_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9540 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio()
9542 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
9548 pid1 = pri_entry->dst_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9550 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio()
9552 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
/linux/include/linux/
H A Dsyscalls.h922 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,