/external/valgrind/none/tests/x86-solaris/ |
syscalls.c | 21 static void check_pid(int pid, int pid2, const char *instr) 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/ltp/testcases/kernel/syscalls/kcmp/ |
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 = SAFE_FORK() [all...] |
kcmp.h | 47 int kcmp(int pid1, int pid2, int type, int fd1, int fd2) 49 return tst_syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2);
|
kcmp03.c | 42 static int pid2; variable 67 pid2 = getpid(); 69 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0));
|
kcmp02.c | 51 int *pid2; member in struct:test_case 87 TEST(kcmp(*(test->pid1), *(test->pid2), test->type,
|
/external/linux-kselftest/tools/testing/selftests/kcmp/ |
kcmp_test.c | 23 static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2) 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_FILE, fd1, fd2) [all...] |
/external/linux-kselftest/tools/testing/selftests/powerpc/math/ |
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);
|
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/ |
fork02.c | 57 int pid1, pid2, status; local 77 pid2 = wait(&status); 80 if (pid1 == pid2)
|
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/kill/ |
kill06.c | 77 pid_t pid1, pid2; local 104 pid2 = FORK_OR_VFORK(); 105 if (pid2 < 0) { 107 } else if (pid2 == 0) {
|
kill08.c | 77 pid_t pid1, pid2; local 104 pid2 = FORK_OR_VFORK(); 105 if (pid2 < 0) { 107 } else if (pid2 == 0) {
|
/external/strace/ |
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);
|
/packages/experimental/procstatlog/ |
diskload.sh | 24 dd if=/dev/zero bs=65536 of=$1.2 & pid2=$!; echo start $pid2; sleep 2 35 kill $pid2; echo kill $pid2; sleep 2
|
/external/ltp/testcases/kernel/fs/fs_inod/ |
fs_inod | 188 pid2=$! 192 wait $pid2 194 pid2=$! 198 wait $pid2
|
/external/curl/tests/ |
runtests.pl | 431 my $pid2 = 0; 471 $pid2 = 0 + <PID>; 473 if(($pid2 > 0) && pidexists($pid2)) { 474 # if $pid2 is valid, then make sure this pid is alive, as 479 # invalidate $pid2 if not actually alive 480 $pid2 = 0; 498 return ($child, $pid2); [all...] |
/external/ltp/testcases/kernel/controllers/memcg/regression/ |
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/strace/tests/ |
kcmp.c | 96 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, 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/ |
kcmp.c | 96 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, 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/ |
kcmp.c | 96 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, 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/ltp/testcases/kernel/controllers/cgroup/ |
cgroup_regression_test.sh | 195 pid2=$! 198 /bin/kill -SIGUSR1 $pid1 $pid2 200 wait $pid2 321 pid2=$! 325 /bin/kill -SIGTERM $pid2 327 wait $pid2 476 pid2=$! 479 /bin/kill -SIGUSR1 $pid1 $pid2 481 wait $pid2 503 pid2=$ [all...] |
/external/ltp/testcases/network/nfs/nfs_stress/ |
nfs03 | 82 pid2=$! 91 wait $pid2
|
/system/extras/tests/kernel.config/ |
sysvipc_test.cpp | 30 int kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2) { 31 return syscall(SYS_kcmp, pid1, pid2, type, 0, idx1, idx2);
|
/external/elfutils/tests/ |
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, jmp) [all...] |
/system/extras/ioshark/ |
collect-straces.sh | 72 pid2=`grep -w zygote64 zygote_pids | awk '{print $2}' ` 79 adb shell "date +%s > /data/local/tmp/trace.begin ; strace -p $pid1,$pid2 -o /data/local/tmp/trace -q -qq -f -ff -y -ttt -e trace=mmap2,read,write,pread64,pwrite64,fsync,fdatasync,openat,close,lseek,_llseek"
|