/linux-6.3-rc2/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-6.3-rc2/tools/testing/selftests/powerpc/math/ |
A D | fpu_syscall.c | 50 pid_t pid2; in test_syscall_fpu() local 56 pid2 = fork(); in test_syscall_fpu() 58 if (pid2 == -1) { in test_syscall_fpu() 65 if (pid2) in test_syscall_fpu() 66 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-6.3-rc2/tools/testing/selftests/pidfd/ |
A D | pidfd_test.c | 199 pid_t pid2; in test_pidfd_send_signal_recycled_pid_fail() local 209 pid2 = fork(); in test_pidfd_send_signal_recycled_pid_fail() 210 if (pid2 < 0) in test_pidfd_send_signal_recycled_pid_fail() 213 if (pid2 == 0) in test_pidfd_send_signal_recycled_pid_fail() 216 if (pid2 == PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail() 217 snprintf(buf, sizeof(buf), "/proc/%d", pid2); in test_pidfd_send_signal_recycled_pid_fail() 218 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail() 222 if (wait_for_pid(pid2)) in test_pidfd_send_signal_recycled_pid_fail() 225 if (pid2 >= PID_RECYCLE) in test_pidfd_send_signal_recycled_pid_fail() 233 if (pid2 != PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail()
|
A D | pidfd_getfd_test.c | 30 static int sys_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, in sys_kcmp() argument 33 return syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in sys_kcmp()
|
A D | pidfd_setns_test.c | 314 static int in_same_namespace(int ns_fd1, pid_t pid2, const char *ns) in in_same_namespace() argument 324 ns_fd2 = preserve_ns(pid2, ns); in in_same_namespace()
|
/linux-6.3-rc2/tools/testing/selftests/net/ |
A D | fib_nexthops.sh | 1067 local pid2 1089 pid2=$! 1098 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1115 local pid2 1143 pid2=$! 1154 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1839 local pid2 1861 pid2=$! 1870 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1887 local pid2 [all …]
|
A D | tls.c | 1170 int pid2; in TEST_F() local 1180 pid2 = wait(&status); in TEST_F() 1182 EXPECT_EQ(res, pid2); in TEST_F() 1224 int pid2; in TEST_F() local 1240 pid2 = wait(&status); in TEST_F() 1243 EXPECT_EQ(res, pid2); in TEST_F()
|
/linux-6.3-rc2/kernel/ |
A D | kcmp.c | 135 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument 147 task2 = find_task_by_vpid(pid2); in SYSCALL_DEFINE5()
|
A D | pid.c | 371 struct pid *pid2 = right->thread_pid; in exchange_tids() local 373 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID]; in exchange_tids() 379 rcu_assign_pointer(left->thread_pid, pid2); in exchange_tids() 383 WRITE_ONCE(left->pid, pid_nr(pid2)); in exchange_tids()
|
/linux-6.3-rc2/arch/parisc/include/asm/ |
A D | kgdb.h | 52 unsigned long pid2; member
|
/linux-6.3-rc2/tools/testing/selftests/seccomp/ |
A D | seccomp_bpf.c | 3691 pid_t pid, pid2; in TEST() local 3710 pid2 = fork(); in TEST() 3713 if (pid2 == 0) in TEST() 3716 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST() 3729 pid2 = fork(); in TEST() 3732 if (pid2 == 0) { in TEST() 3754 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST() 3989 pid2 = fork(); in TEST() 3990 if (pid2 < 0) in TEST() 3993 if (pid2 == 0) in TEST() [all …]
|
/linux-6.3-rc2/tools/perf/util/ |
A D | jitdump.c | 739 pid_t pid2; in jit_detect() local 767 pid2 = (int)strtol(p, &end, 10); in jit_detect() 775 if (pid && pid2 != nsinfo__nstgid(nsi)) in jit_detect()
|
/linux-6.3-rc2/arch/powerpc/include/uapi/asm/ |
A D | kvm.h | 202 __u32 pid1, pid2; member
|
/linux-6.3-rc2/tools/arch/powerpc/include/uapi/asm/ |
A D | kvm.h | 202 __u32 pid1, pid2; member
|
/linux-6.3-rc2/drivers/scsi/qla2xxx/ |
A D | qla_init.c | 9179 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local 9202 pid2 = vha->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9205 else if (pid1 == pid2) in qla24xx_get_fcp_prio() 9212 pid2 = fcport->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9215 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
|
/linux-6.3-rc2/include/linux/ |
A D | syscalls.h | 994 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,
|