Home
last modified time | relevance | path

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

12

/external/linux-kselftest/tools/testing/selftests/kcmp/
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 pid1, pid2, in main()
102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main()
103 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main()
[all …]
/external/ltp/testcases/kernel/syscalls/kcmp/
Dkcmp01.c27 static int pid2; variable
31 int *pid2; member
38 {&pid2, &pid2, KCMP_FILE, &fd1, &fd2, 0},
39 {&pid1, &pid2, KCMP_FILE, &fd1, &fd1, 0},
40 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0},
41 {&pid1, &pid2, KCMP_FILE, &fd1, &fd3, 1},
57 pid2 = getpid(); in do_child()
68 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in do_child()
95 pid2 = SAFE_FORK(); in verify_kcmp()
96 if (!pid2) in verify_kcmp()
Dkcmp03.c29 static int pid2; variable
54 pid2 = getpid(); in do_child()
56 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0)); in do_child()
Dkcmp02.c38 int *pid2; member
74 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in verify_kcmp()
/external/curl/tests/
Druntests.pl497 my $pid2 = 0;
540 $pid2 = 0 + <PID>;
542 if(($pid2 > 0) && pidexists($pid2)) {
549 $pid2 = 0;
567 return ($child, $pid2);
1540 my ($http2pid, $pid2);
1549 ($http2pid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1553 stopserver($server, "$pid2");
1555 $http2pid = $pid2 = 0;
1570 return ($http2pid, $pid2, $port, $port2);
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/math/
Dfpu_syscall.c50 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()
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()
/external/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_test.sh173 pid2=$!
176 kill -USR1 $pid1 $pid2
178 wait $pid2 2>/dev/null
232 local pid2=$!
235 kill -USR1 $pid1 $pid2
237 wait $pid2 2>/dev/null
259 local pid2=$!
262 kill -USR1 $pid1 $pid2
264 wait $pid2 2>/dev/null
/external/ltp/testcases/kernel/controllers/memcg/regression/
Dmemcg_regression_test.sh156 pid2=$!
163 wait $pid2
166 kill -9 $pid1 $pid2 > /dev/null 2>&1
167 wait $pid1 $pid2
181 kill -9 $pid1 $pid2 > /dev/null 2>&1
182 wait $pid1 $pid2 > /dev/null 2>&1
/external/elfutils/tests/
Dbacktrace.c321 prepare_thread (pid_t pid2 __attribute__ ((unused)), in prepare_thread() argument
330 l = ptrace (PTRACE_GETREGS, pid2, 0, (intptr_t) &user_regs); in prepare_thread()
333 l = ptrace (PTRACE_SETREGS, pid2, 0, (intptr_t) &user_regs); in prepare_thread()
335 l = ptrace (PTRACE_CONT, pid2, NULL, (void *) (intptr_t) SIGUSR2); in prepare_thread()
337 pid_t got = waitpid (pid2, &status, __WALL); in prepare_thread()
338 assert (got == pid2); in prepare_thread()
412 pid_t pid2 = waitpid (-1, &status, __WALL); in exec_dump() local
413 assert (pid2 > 0); in exec_dump()
414 assert (pid2 != pid); in exec_dump()
470 prepare_thread (pid2, jmp); in exec_dump()
[all …]
/external/ltp/testcases/kernel/syscalls/fork/
Dfork03.c57 int pid1, pid2, status; in main() local
90 pid2 = wait(&status); /* wait for child */ in main()
92 if (pid1 != pid2) { in main()
94 pid1, pid2); in main()
/external/strace/tests-m32/
Dkcmp.c97 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument
103 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp()
106 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
115 printpidfd(", ", pid2, idx2); in do_kcmp()
131 printpidfd("{efd=", pid2, slot->efd); in do_kcmp()
132 printpidfd(", tfd=", pid2, slot->tfd); in do_kcmp()
/external/strace/tests/
Dkcmp.c97 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument
103 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp()
106 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
115 printpidfd(", ", pid2, idx2); in do_kcmp()
131 printpidfd("{efd=", pid2, slot->efd); in do_kcmp()
132 printpidfd(", tfd=", pid2, slot->tfd); in do_kcmp()
/external/strace/tests-mx32/
Dkcmp.c97 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument
103 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp()
106 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
115 printpidfd(", ", pid2, idx2); in do_kcmp()
131 printpidfd("{efd=", pid2, slot->efd); in do_kcmp()
132 printpidfd(", tfd=", pid2, slot->tfd); in do_kcmp()
/external/linux-kselftest/tools/testing/selftests/pidfd/
Dpidfd_test.c199 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()
Dpidfd_getfd_test.c30 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()
/external/ltp/testcases/kernel/syscalls/kill/
Dkill08.c77 pid_t pid1, pid2; in main() local
104 pid2 = FORK_OR_VFORK(); in main()
105 if (pid2 < 0) { in main()
107 } else if (pid2 == 0) { in main()
Dkill02.c161 int pid2; /*Return value from 2nd fork. Global so that it can be */ variable
235 if ((pid2 = FORK_OR_VFORK()) > 0) { in main()
237 } else if (pid2 == 0) { in main()
826 if (kill(pid2, SIGKILL) == -1 && errno != ESRCH) in par_kill()
/external/strace/
Dkcmp.c58 pid_t pid2 = tcp->u_arg[1]; in SYS_FUNC() local
63 tprintf("%d, %d, ", pid1, pid2); in SYS_FUNC()
85 PRINT_FIELD_PIDFD("{", slot, efd, tcp, pid2); in SYS_FUNC()
86 PRINT_FIELD_PIDFD(", ", slot, tfd, tcp, pid2); in SYS_FUNC()
/external/ltp/testcases/kernel/fs/fs_inod/
Dfs_inod188 pid2=$!
192 wait $pid2
194 pid2=$!
198 wait $pid2
/external/ltp/include/lapi/
Dkcmp.h34 static inline int kcmp(int pid1, int pid2, int type, int fd1, int fd2) in kcmp() argument
36 return tst_syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in kcmp()
/external/linux-kselftest/tools/testing/selftests/net/
Dfib_nexthops.sh1066 local pid2
1088 pid2=$!
1097 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1098 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1114 local pid2
1142 pid2=$!
1153 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1154 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1808 local pid2
1830 pid2=$!
[all …]
/external/ltp/testcases/network/nfs/nfs_stress/
Dnfs03.sh63 pid2=$!
72 wait $pid2
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c293 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument
297 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp()
305 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument
308 _ret = __filecmp(pid1, pid2, fd1, fd2); \
3751 pid_t pid, pid2; in TEST() local
3770 pid2 = fork(); in TEST()
3771 ASSERT_GE(pid2, 0); in TEST()
3773 if (pid2 == 0) in TEST()
3776 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST()
3789 pid2 = fork(); in TEST()
[all …]
/external/linux-kselftest/android/patches/
D0004-Remove-useless-open-mode.patch26 int pid2 = getpid();

12