/external/valgrind/none/tests/x86-solaris/ |
H A D | syscalls.c | 21 static void check_pid(int pid, int pid2, const char *instr) argument 23 if (pid == pid2) 31 int pid, pid2, dummy; local 37 SYSCALL("syscall", SYS_getpid, pid2); 38 check_pid(pid, pid2, "syscall"); 41 SYSCALL("sysenter", SYS_getpid, pid2); 42 check_pid(pid, pid2, "sysenter"); 45 SYSCALL("int $0x80", SYS_getpid, pid2); 46 check_pid(pid, pid2, "int $0x80"); 48 SYSCALL("int $0x81", SYS_getpid, pid2); [all...] |
/external/linux-kselftest/tools/testing/selftests/powerpc/math/ |
H A D | fpu_syscall.c | 54 pid_t pid2; local 60 pid2 = fork(); 61 /* Can't FAIL_IF(pid2 == -1); because already forked once */ 62 if (pid2 == -1) { 69 if (pid2) 70 waitpid(pid2, &child_ret, 0);
|
H A D | vmx_syscall.c | 55 pid_t pid2; local 61 pid2 = fork(); 63 /* Can't FAIL_IF(pid2 == -1); because we've already forked */ 64 if (pid2 == -1) { 70 if (pid2) 71 waitpid(pid2, &child_ret, 0);
|
/external/ltp/testcases/kernel/syscalls/fork/ |
H A D | fork02.c | 57 int pid1, pid2, status; local 77 pid2 = wait(&status); 80 if (pid1 == pid2)
|
H A D | fork03.c | 57 int pid1, pid2, status; local 90 pid2 = wait(&status); /* wait for child */ 92 if (pid1 != pid2) { 94 pid1, pid2);
|
/external/ltp/testcases/kernel/syscalls/kcmp/ |
H A D | kcmp.h | 47 int kcmp(int pid1, int pid2, int type, int fd1, int fd2) argument 49 return tst_syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2);
|
H A D | kcmp01.c | 40 static int pid2; variable 44 int *pid2; member in struct:test_case 51 {&pid2, &pid2, KCMP_FILE, &fd1, &fd2, 0}, 52 {&pid1, &pid2, KCMP_FILE, &fd1, &fd1, 0}, 53 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0}, 54 {&pid1, &pid2, KCMP_FILE, &fd1, &fd3, 1}, 70 pid2 = getpid(); 81 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, 108 pid2 [all...] |
H A D | kcmp02.c | 51 int *pid2; member in struct:test_case 87 TEST(kcmp(*(test->pid1), *(test->pid2), test->type,
|
H A D | kcmp03.c | 42 static int pid2; variable 67 pid2 = getpid(); 69 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0));
|
/external/ltp/testcases/kernel/syscalls/kill/ |
H A D | kill06.c | 77 pid_t pid1, pid2; local 104 pid2 = FORK_OR_VFORK(); 105 if (pid2 < 0) { 107 } else if (pid2 == 0) {
|
H A D | kill08.c | 77 pid_t pid1, pid2; local 104 pid2 = FORK_OR_VFORK(); 105 if (pid2 < 0) { 107 } else if (pid2 == 0) {
|
H A 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) { 237 } else if (pid2 == 0) { 826 if (kill(pid2, SIGKILL) == -1 && errno != ESRCH)
|
/external/strace/ |
H A D | kcmp.c | 58 pid_t pid2 = tcp->u_arg[1]; local 63 tprintf("%d, %d, ", pid1, pid2); 85 PRINT_FIELD_PIDFD("{", slot, efd, tcp, pid2); 86 PRINT_FIELD_PIDFD(", ", slot, tfd, tcp, pid2);
|
/external/linux-kselftest/tools/testing/selftests/kcmp/ |
H A D | kcmp_test.c | 23 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 98 printf("pid1: %6d pid2: %6d FD: %2ld FILES: %2ld VM: %2ld " 101 pid1, pid2, 102 sys_kcmp(pid1, pid2, KCMP_FIL [all...] |
/external/strace/tests/ |
H A D | kcmp.c | 96 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, argument 102 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); 105 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); 114 printpidfd(", ", pid2, idx2); 130 printpidfd("{efd=", pid2, slot->efd); 131 printpidfd(", tfd=", pid2, slot->tfd);
|
/external/strace/tests-m32/ |
H A D | kcmp.c | 96 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, argument 102 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); 105 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); 114 printpidfd(", ", pid2, idx2); 130 printpidfd("{efd=", pid2, slot->efd); 131 printpidfd(", tfd=", pid2, slot->tfd);
|
/external/strace/tests-mx32/ |
H A D | kcmp.c | 96 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, argument 102 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); 105 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); 114 printpidfd(", ", pid2, idx2); 130 printpidfd("{efd=", pid2, slot->efd); 131 printpidfd(", tfd=", pid2, slot->tfd);
|
/external/elfutils/tests/ |
H A D | backtrace.c | 258 prepare_thread (pid_t pid2 __attribute__ ((unused)), 267 l = ptrace (PTRACE_GETREGS, pid2, 0, (intptr_t) &user_regs); 271 l = ptrace (PTRACE_SETREGS, pid2, 0, (intptr_t) &user_regs); 274 l = ptrace (PTRACE_CONT, pid2, NULL, (void *) (intptr_t) SIGUSR2); 276 pid_t got = waitpid (pid2, &status, __WALL); 278 assert (got == pid2); 354 pid_t pid2 = waitpid (-1, &status, __WALL); local 356 assert (pid2 > 0); 357 assert (pid2 != pid); 414 prepare_thread (pid2, jm [all...] |
/external/tensorflow/tensorflow/core/profiler/internal/ |
H A D | tfprof_timeline.cc | 272 int64 pid2 = AllocatePID(); local 274 pid2);
|