Searched refs:pid2 (Results 1 - 22 of 22) sorted by relevance

/linux-master/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) argument
25 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2);
35 int pid1, pid2; local
81 pid2 = fork();
82 if (pid2 < 0) {
87 if (!pid2) {
88 int pid2 = getpid(); local
101 printf("pid1: %6d pid2: %6d FD: %2ld FILES: %2ld VM: %2ld "
104 pid1, pid2,
105 sys_kcmp(pid1, pid2, KCMP_FIL
[all...]
/linux-master/tools/testing/selftests/powerpc/math/
H A Dvmx_syscall.c51 pid_t pid2; local
62 pid2 = fork();
64 /* Can't FAIL_IF(pid2 == -1); because we've already forked */
65 if (pid2 == -1) {
71 if (pid2)
72 waitpid(pid2, &child_ret, 0);
H A Dfpu_syscall.c52 pid_t pid2; local
58 pid2 = fork();
59 /* Can't FAIL_IF(pid2 == -1); because already forked once */
60 if (pid2 == -1) {
67 if (pid2)
68 waitpid(pid2, &child_ret, 0);
/linux-master/arch/parisc/include/asm/
H A Dkgdb.h54 unsigned long pid2; member in struct:parisc_gdb_regs
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_test.c200 pid_t pid2; local
210 pid2 = fork();
211 if (pid2 < 0)
214 if (pid2 == 0)
217 if (pid2 == PID_RECYCLE) {
218 snprintf(buf, sizeof(buf), "/proc/%d", pid2);
219 ksft_print_msg("pid to recycle is %d\n", pid2);
223 if (wait_for_pid(pid2))
226 if (pid2 >= PID_RECYCLE)
234 if (pid2 !
[all...]
H A Dpidfd_getfd_test.c31 static int sys_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, argument
34 return syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2);
H A Dpidfd_setns_test.c314 static int in_same_namespace(int ns_fd1, pid_t pid2, const char *ns) argument
324 ns_fd2 = preserve_ns(pid2, ns);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtc_links.c19 __u32 pid1, pid2, lid1, lid2; local
29 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2));
31 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2");
96 ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]");
118 __u32 pid1, pid2, pid3, pid4; local
142 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2));
146 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2");
148 ASSERT_NEQ(pid2, pid3, "prog_ids_2_3");
187 ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]");
244 ASSERT_EQ(optq.prog_ids[3], pid2, "prog_id
272 __u32 pid1, pid2, pid3, pid4; local
426 __u32 pid1, pid2, lid1, lid2; local
527 __u32 pid1, pid2, pid3; local
631 __u32 pid1, pid2, pid3, lid1, lid2; local
857 __u32 pid1, pid2, lid1; local
1170 __u32 pid1, pid2, pid3, pid4; local
1326 __u32 pid1, pid2, pid3, pid4; local
1481 __u32 pid1, pid2, pid3, pid4; local
1582 __u32 pid1, pid2, pid3; local
1693 __u32 pid1, pid2, pid3; local
1795 __u32 pid1, pid2, pid3, pid4; local
[all...]
H A Dtc_netkit.c148 __u32 pid1, pid2, lid1, lid2; local
172 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2));
174 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2");
239 ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]");
262 __u32 pid1, pid2, lid1, lid2; local
286 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2));
288 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2");
357 ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]");
390 __u32 pid1, pid2, fd1, fd2; local
408 pid2
504 __u32 pid1, pid2, lid1; local
[all...]
H A Dtc_opts.c1402 __u32 pid1, pid2, pid3, pid4, lid2, lid4; local
1427 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2));
1431 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2");
1433 ASSERT_NEQ(pid2, pid3, "prog_ids_2_3");
1541 ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]");
1579 __u32 pid1, pid2; local
1596 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2));
1597 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2");
/linux-master/tools/testing/selftests/net/
H A Dfib_nexthops.sh1192 local pid2
1214 pid2=$!
1223 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1224 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1240 local pid2
1268 pid2=$!
1279 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1280 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1964 local pid2
1986 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 Dtls.c1255 int pid2; local
1265 pid2 = wait(&status);
1267 EXPECT_EQ(res, pid2);
1309 int pid2; local
1325 pid2 = wait(&status);
1328 EXPECT_EQ(res, pid2);
1935 int status, pid2; local
1947 pid2 = wait(&status);
1948 EXPECT_EQ(pid2, ret);
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-master/kernel/
H A Dkcmp.c137 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type,
149 task2 = find_task_by_vpid(pid2);
H A Dpid.c385 struct pid *pid2 = right->thread_pid; local
387 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID];
393 rcu_assign_pointer(left->thread_pid, pid2);
397 WRITE_ONCE(left->pid, pid_nr(pid2));
/linux-master/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c302 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) argument
306 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2);
314 #define filecmp(pid1, pid2, fd1, fd2) ({ \
317 _ret = __filecmp(pid1, pid2, fd1, fd2); \
3694 pid_t pid, pid2; local
3718 pid2 = fork();
3719 ASSERT_GE(pid2, 0);
3721 if (pid2 == 0)
3724 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); local
3764 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); local
3985 pid_t pid1, pid2; local
[all...]
/linux-master/tools/perf/util/
H A Djitdump.c744 pid_t pid2; local
772 pid2 = (int)strtol(p, &end, 10);
780 if (pid && pid2 != nsinfo__nstgid(nsi))
/linux-master/tools/arch/powerpc/include/uapi/asm/
H A Dkvm.h202 __u32 pid1, pid2; member in struct:kvm_sregs::__anon1893::__anon1898::__anon1899::__anon1900
/linux-master/arch/powerpc/include/uapi/asm/
H A Dkvm.h201 __u32 pid1, pid2; member in struct:kvm_sregs::__anon29::__anon34::__anon35::__anon36
/linux-master/drivers/scsi/qla2xxx/
H A Dqla_init.c9461 uint32_t pid1, pid2; local
9484 pid2 = vha->d_id.b24 & INVALID_PORT_ID;
9487 else if (pid1 == pid2)
9494 pid2 = fcport->d_id.b24 & INVALID_PORT_ID;
9497 else if (pid1 == pid2)
/linux-master/include/linux/
H A Dsyscalls.h891 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,

Completed in 597 milliseconds