/linux/tools/testing/selftests/kcmp/ |
H A D | kcmp_test.c | 35 int pid1, pid2; in main() local 43 pid1 = getpid(); in main() 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() 109 sys_kcmp(pid1, pid2, KCMP_SIGHAND, 0, 0), in main() 110 sys_kcmp(pid1, pid2, KCMP_IO, 0, 0), in main() 111 sys_kcmp(pid1, pid2, KCMP_SYSVSEM, 0, 0), in main() 129 ret = sys_kcmp(pid1, pid1, KCMP_VM, 0, 0); in main() [all …]
|
/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 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 677 .relative_id = pid1, in test_tc_links_replace_target() 859 __u32 pid1, pid2, lid1; in test_tc_links_invalid_target() local 1134 .relative_id = pid1, in test_tc_links_invalid_target() 1172 __u32 pid1, pid2, pid3, pid4; in test_tc_links_prepend_target() local 1584 __u32 pid1, pid2, pid3; in test_tc_chain_mixed() local [all …]
|
H 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() 226 ASSERT_EQ(optq.prog_ids[0], pid1, "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() 410 __u32 pid1, pid2, fd1, fd2; in serial_test_tc_netkit_multi_opts_target() local 427 pid1 = id_from_prog_fd(fd1); 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 555 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_netkit_device() [all …]
|
H A D | tc_opts.c | 1402 __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/pidfd/ |
H A D | pidfd_test.c | 155 pid_t pid1; in test_pidfd_send_signal_recycled_pid_fail() local 193 pid1 = fork(); in test_pidfd_send_signal_recycled_pid_fail() 194 if (pid1 < 0) in test_pidfd_send_signal_recycled_pid_fail() 198 if (pid1 == 0) { in test_pidfd_send_signal_recycled_pid_fail() 324 ret = wait_for_pid(pid1); 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()
|
/linux/tools/testing/selftests/net/ |
H A D | fib_nexthops.sh | 1244 local pid1 1265 pid1=$! 1276 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1292 local pid1 1319 pid1=$! 1332 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 2016 local pid1 2037 pid1=$! 2048 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 2064 local pid1 [all …]
|
H A D | test_bridge_backup_port.sh | 655 local pid1 678 pid1=$! 683 kill -9 $pid1 $pid2 684 wait $pid1 $pid2 2>/dev/null
|
H A D | test_vxlan_mdb.sh | 2369 local pid1 2388 pid1=$! 2397 kill -9 $pid1 $pid2 $pid3 $pid4 2398 wait $pid1 $pid2 $pid3 $pid4 2>/dev/null
|
/linux/tools/perf/tests/shell/ |
H A D | record_lbr.sh | 130 pid1=$! 148 for pid in $pid1 $pid2 $pid3 $pid4 $pid5 $pid6 $pid7 $pid8 $pid9
|
/linux/kernel/ |
H A D | kcmp.c | 137 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument 148 task1 = find_task_by_vpid(pid1); in SYSCALL_DEFINE5()
|
H A D | pid.c | 384 struct pid *pid1 = left->thread_pid; in exchange_tids() local 386 struct hlist_head *head1 = &pid1->tasks[PIDTYPE_PID]; in exchange_tids() 394 rcu_assign_pointer(right->thread_pid, pid1); in exchange_tids() 398 WRITE_ONCE(right->pid, pid_nr(pid1)); in exchange_tids()
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_msg.c | 846 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_user_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() local 848 if (!pid1) in vmw_mksstat_remove_all() 851 if (pid1 == pid0) { in vmw_mksstat_remove_all() 876 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() local 878 if (!pid1) in vmw_mksstat_remove_all() 881 if (pid1 == pid0) { in vmw_mksstat_remove_all()
|
/linux/arch/parisc/include/asm/ |
H A D | kgdb.h | 53 unsigned long pid1; member
|
/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 304 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument 308 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp() 316 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument 319 _ret = __filecmp(pid1, pid2, fd1, fd2); \ 4041 pid_t pid1, pid2; in TEST() local 4054 pid1 = fork(); in TEST() 4055 if (pid1 < 0) in TEST() 4058 if (pid1 == 0) in TEST() 4076 if (waitpid(pid1, &status, 0) != pid1 || !WIFEXITED(status) || in TEST()
|
/linux/arch/powerpc/include/uapi/asm/ |
H A D | kvm.h | 201 __u32 pid1, pid2; member
|
/linux/tools/arch/powerpc/include/uapi/asm/ |
H A D | kvm.h | 201 __u32 pid1, pid2; member
|
/linux/drivers/scsi/qla2xxx/ |
H A D | qla_init.c | 9509 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local 9531 pid1 = pri_entry->src_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9533 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio() 9535 else if (pid1 == pid2) in qla24xx_get_fcp_prio() 9541 pid1 = pri_entry->dst_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9543 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio() 9545 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
|
/linux/include/linux/ |
H A D | syscalls.h | 898 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,
|