/external/linux-kselftest/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 23 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/ |
D | kcmp01.c | 27 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()
|
D | kcmp03.c | 30 static int pid2; variable 55 pid2 = getpid(); in do_child() 57 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0)); in do_child()
|
D | kcmp.h | 47 int kcmp(int pid1, int pid2, int type, int fd1, int fd2) in kcmp() argument 49 return tst_syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in kcmp()
|
D | kcmp02.c | 38 int *pid2; member 74 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in verify_kcmp()
|
/external/curl/tests/ |
D | runtests.pl | 477 my $pid2 = 0; 517 $pid2 = 0 + <PID>; 519 if(($pid2 > 0) && pidexists($pid2)) { 526 $pid2 = 0; 544 return ($child, $pid2); 1469 my ($http2pid, $pid2); 1476 ($http2pid, $pid2) = startnew($cmd, $pidfile, 15, 0); 1480 stopserver($server, "$pid2"); 1482 $http2pid = $pid2 = 0; 1495 return ($http2pid, $pid2, $port); [all …]
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_test.sh | 188 pid2=$! 191 kill -USR1 $pid1 $pid2 193 wait $pid2 2>/dev/null 247 local pid2=$! 250 kill -USR1 $pid1 $pid2 252 wait $pid2 2>/dev/null 282 local pid2=$! 287 kill -TERM $pid2 289 wait $pid2 2>/dev/null 431 local pid2=$! [all …]
|
/external/linux-kselftest/tools/testing/selftests/powerpc/math/ |
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()
|
D | vmx_syscall.c | 51 pid_t pid2; in test_vmx_syscall() local 57 pid2 = fork(); in test_vmx_syscall() 60 if (pid2 == -1) { in test_vmx_syscall() 66 if (pid2) in test_vmx_syscall() 67 waitpid(pid2, &child_ret, 0); in test_vmx_syscall()
|
/external/ltp/testcases/kernel/controllers/memcg/regression/ |
D | memcg_regression_test.sh | 140 pid2=$! 147 wait $pid2 151 kill -9 $pid1 $pid2 > /dev/null 2>&1 152 wait $pid1 $pid2 166 kill -9 $pid1 $pid2 > /dev/null 2>&1 167 wait $pid1 $pid2 > /dev/null 2>&1
|
/external/elfutils/tests/ |
D | backtrace.c | 274 prepare_thread (pid_t pid2 __attribute__ ((unused)), in prepare_thread() argument 283 l = ptrace (PTRACE_GETREGS, pid2, 0, (intptr_t) &user_regs); in prepare_thread() 286 l = ptrace (PTRACE_SETREGS, pid2, 0, (intptr_t) &user_regs); in prepare_thread() 288 l = ptrace (PTRACE_CONT, pid2, NULL, (void *) (intptr_t) SIGUSR2); in prepare_thread() 290 pid_t got = waitpid (pid2, &status, __WALL); in prepare_thread() 291 assert (got == pid2); in prepare_thread() 365 pid_t pid2 = waitpid (-1, &status, __WALL); in exec_dump() local 366 assert (pid2 > 0); in exec_dump() 367 assert (pid2 != pid); in exec_dump() 423 prepare_thread (pid2, jmp); in exec_dump() [all …]
|
/external/linux-kselftest/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 164 pid_t pid2; in test_pidfd_send_signal_recycled_pid_fail() local 174 pid2 = fork(); in test_pidfd_send_signal_recycled_pid_fail() 175 if (pid2 < 0) in test_pidfd_send_signal_recycled_pid_fail() 178 if (pid2 == 0) in test_pidfd_send_signal_recycled_pid_fail() 181 if (pid2 == PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail() 182 snprintf(buf, sizeof(buf), "/proc/%d", pid2); in test_pidfd_send_signal_recycled_pid_fail() 183 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail() 187 if (wait_for_pid(pid2)) in test_pidfd_send_signal_recycled_pid_fail() 190 if (pid2 >= PID_RECYCLE) in test_pidfd_send_signal_recycled_pid_fail() 198 if (pid2 != PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail()
|
/external/ltp/testcases/kernel/syscalls/fork/ |
D | fork03.c | 57 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()
|
D | fork02.c | 57 int pid1, pid2, status; in main() local 77 pid2 = wait(&status); in main() 80 if (pid1 == pid2) in main()
|
/external/strace/tests-mx32/ |
D | kcmp.c | 97 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/ |
D | kcmp.c | 97 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-m32/ |
D | kcmp.c | 97 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/ltp/testcases/kernel/syscalls/kill/ |
D | kill08.c | 77 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()
|
D | kill06.c | 77 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()
|
D | kill02.c | 161 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/ |
D | kcmp.c | 58 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/ |
D | fs_inod | 188 pid2=$! 192 wait $pid2 194 pid2=$! 198 wait $pid2
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
D | nfs03 | 65 pid2=$! 74 wait $pid2
|
/external/linux-kselftest/android/patches/ |
D | 0004-Remove-useless-open-mode.patch | 13 int pid2 = getpid();
|
/external/toolchain-utils/heatmaps/ |
D | heatmap_generator.py | 190 pid2, remain = remain.split(')', 1) 194 return (int(pid1), int(pid2)), (int(pid3), int(pid4))
|