/external/linux-kselftest/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 22 static long sys_kcmp(int pid1, int pid2, int type, int fd1, int fd2) in sys_kcmp() argument 24 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in sys_kcmp() 30 int pid1, pid2; in main() local 42 pid2 = fork(); in main() 43 if (pid2 < 0) { in main() 48 if (!pid2) { in main() 49 int pid2 = getpid(); in main() local 62 pid1, pid2, in main() 63 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main() 64 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main() [all …]
|
/external/valgrind/none/tests/x86-solaris/ |
D | syscalls.c | 21 static void check_pid(int pid, int pid2, const char *instr) in check_pid() argument 23 if (pid == pid2) in check_pid() 31 int pid, pid2, dummy; in main() local 37 SYSCALL("syscall", SYS_getpid, pid2); in main() 38 check_pid(pid, pid2, "syscall"); in main() 41 SYSCALL("sysenter", SYS_getpid, pid2); in main() 42 check_pid(pid, pid2, "sysenter"); in main() 45 SYSCALL("int $0x80", SYS_getpid, pid2); in main() 46 check_pid(pid, pid2, "int $0x80"); in main() 48 SYSCALL("int $0x81", SYS_getpid, pid2); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/kcmp/ |
D | kcmp01.c | 42 static int pid2; variable 48 int *pid2; member 55 {&pid2, &pid2, KCMP_FILE, &fd1, &fd2, 0}, 56 {&pid1, &pid2, KCMP_FILE, &fd1, &fd1, 0}, 57 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0}, 58 {&pid1, &pid2, KCMP_FILE, &fd1, &fd3, 1}, 80 pid2 = tst_fork(); in main() 82 if (pid2 == -1) in main() 85 if (!pid2) in main() 88 tst_record_childstatus(cleanup, pid2); in main() [all …]
|
D | kcmp.h | 47 int kcmp(int pid1, int pid2, int type, int fd1, int fd2) in kcmp() argument 49 return ltp_syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in kcmp()
|
D | kcmp02.c | 53 int *pid2; member 95 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in kcmp_verify()
|
/external/curl/tests/ |
D | runtests.pl | 422 my $pid2 = 0; 462 $pid2 = 0 + <PID>; 464 if(($pid2 > 0) && pidexists($pid2)) { 471 $pid2 = 0; 489 return ($child, $pid2); 1233 my ($http2pid, $pid2) = startnew($cmd, $pidfile, 15, 0); 1238 stopserver($server, "$pid2"); 1247 return ($http2pid, $pid2); 1318 my ($httppid, $pid2) = startnew($cmd, $pidfile, 15, 0); 1323 stopserver($server, "$pid2"); [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/util/ |
D | process_statistic_timeline_data_unittest.py | 14 pid2 = 2 17 b = process_statistic_timeline_data.ProcessStatisticTimelineData(pid2, 1) 23 self.assertEquals(1, addition_result[pid2]) 29 self.assertEquals(1, subtraction_result[pid2]) 42 pid2 = 2 45 b = process_statistic_timeline_data.ProcessStatisticTimelineData(pid2, 99)
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_test.sh | 192 pid2=$! 195 /bin/kill -SIGUSR1 $pid1 $pid2 197 wait $pid2 318 pid2=$! 322 /bin/kill -SIGTERM $pid2 324 wait $pid2 473 pid2=$! 476 /bin/kill -SIGUSR1 $pid1 $pid2 478 wait $pid2 500 pid2=$! [all …]
|
/external/linux-kselftest/tools/testing/selftests/powerpc/math/ |
D | fpu_syscall.c | 54 pid_t pid2; in test_syscall_fpu() local 60 pid2 = fork(); in test_syscall_fpu() 62 if (pid2 == -1) { in test_syscall_fpu() 69 if (pid2) in test_syscall_fpu() 70 waitpid(pid2, &child_ret, 0); in test_syscall_fpu()
|
D | vmx_syscall.c | 55 pid_t pid2; in test_vmx_syscall() local 61 pid2 = fork(); in test_vmx_syscall() 64 if (pid2 == -1) { in test_vmx_syscall() 70 if (pid2) in test_vmx_syscall() 71 waitpid(pid2, &child_ret, 0); in test_vmx_syscall()
|
/external/ltp/testcases/kernel/controllers/memcg/regression/ |
D | memcg_regression_test.sh | 141 pid2=$! 148 wait $pid2 152 kill -9 $pid1 $pid2 > /dev/null 2>&1 153 wait $pid1 $pid2 167 kill -9 $pid1 $pid2 > /dev/null 2>&1 168 wait $pid1 $pid2 > /dev/null 2>&1
|
/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/elfutils/tests/ |
D | backtrace.c | 258 prepare_thread (pid_t pid2 __attribute__ ((unused)), in prepare_thread() argument 267 l = ptrace (PTRACE_GETREGS, pid2, 0, (intptr_t) &user_regs); in prepare_thread() 271 l = ptrace (PTRACE_SETREGS, pid2, 0, (intptr_t) &user_regs); in prepare_thread() 274 l = ptrace (PTRACE_CONT, pid2, NULL, (void *) (intptr_t) SIGUSR2); in prepare_thread() 276 pid_t got = waitpid (pid2, &status, __WALL); in prepare_thread() 278 assert (got == pid2); in prepare_thread() 354 pid_t pid2 = waitpid (-1, &status, __WALL); in exec_dump() local 356 assert (pid2 > 0); in exec_dump() 357 assert (pid2 != pid); in exec_dump() 414 prepare_thread (pid2, jmp); in exec_dump() [all …]
|
/external/ltp/testcases/kernel/syscalls/times/ |
D | times03.c | 72 int pid2, status; in main() local 130 pid2 = FORK_OR_VFORK(); in main() 131 if (pid2 < 0) { in main() 133 } else if (pid2 == 0) { in main() 167 waitpid(pid2, &status, 0); in main()
|
/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/ltp/testcases/kernel/fs/fs_inod/ |
D | fs_inod | 188 pid2=$! 192 wait $pid2 194 pid2=$! 198 wait $pid2
|
/external/autotest/client/site_tests/hardware_ch7036/ |
D | hardware_ch7036.py | 95 pid2 = check_server(_SERVER) 96 logging.debug("pids %s %s" % (pid1, pid2)) 97 if pid1 != pid2: 99 (_SERVER, pid1, pid2))
|
/external/strace/tests/ |
D | kcmp.c | 44 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument 50 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp() 53 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
|
/external/strace/tests-m32/ |
D | kcmp.c | 44 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument 50 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp() 53 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
|
/external/strace/tests-mx32/ |
D | kcmp.c | 44 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument 50 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp() 53 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
|
/external/strace/ |
D | kcmp.c | 34 pid_t pid2 = tcp->u_arg[1]; in SYS_FUNC() local 39 tprintf("%d, %d, ", pid1, pid2); in SYS_FUNC()
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
D | nfs03 | 84 pid2=$! 93 wait $pid2
|