Searched refs:pid2 (Results 1 - 25 of 28) sorted by relevance

12

/external/valgrind/none/tests/x86-solaris/
H A Dsyscalls.c21 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/ltp/testcases/kernel/syscalls/kcmp/
H A Dkcmp01.c40 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 Dkcmp.h47 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 Dkcmp03.c42 static int pid2; variable
67 pid2 = getpid();
69 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0));
H A Dkcmp02.c51 int *pid2; member in struct:test_case
87 TEST(kcmp(*(test->pid1), *(test->pid2), test->type,
/external/linux-kselftest/tools/testing/selftests/kcmp/
H A Dkcmp_test.c23 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/linux-kselftest/tools/testing/selftests/powerpc/math/
H A Dfpu_syscall.c54 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 Dvmx_syscall.c55 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 Dfork02.c57 int pid1, pid2, status; local
77 pid2 = wait(&status);
80 if (pid1 == pid2)
H A Dfork03.c57 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/
H A Dkill06.c77 pid_t pid1, pid2; local
104 pid2 = FORK_OR_VFORK();
105 if (pid2 < 0) {
107 } else if (pid2 == 0) {
H A Dkill08.c77 pid_t pid1, pid2; local
104 pid2 = FORK_OR_VFORK();
105 if (pid2 < 0) {
107 } else if (pid2 == 0) {
H A Dkill02.c161 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 Dkcmp.c58 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/ltp/testcases/kernel/fs/fs_inod/
H A Dfs_inod188 pid2=$!
192 wait $pid2
194 pid2=$!
198 wait $pid2
/external/ltp/testcases/kernel/controllers/memcg/regression/
H A Dmemcg_regression_test.sh140 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/
H A Dkcmp.c96 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 Dkcmp.c96 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 Dkcmp.c96 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/ltp/testcases/kernel/controllers/cgroup/
H A Dcgroup_regression_test.sh195 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/
H A Dnfs0382 pid2=$!
91 wait $pid2
/external/elfutils/tests/
H A Dbacktrace.c258 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/curl/tests/
H A Druntests.pl431 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);
1395 my ($http2pid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1400 stopserver($server, "$pid2");
[all...]
/external/python/cpython2/Lib/test/
H A Dtest_socketserver.py67 pid2, status = os.waitpid(pid, 0)
68 testcase.assertEqual(pid2, pid)
/external/python/cpython3/Lib/test/
H A Dtest_socketserver.py66 pid2, status = os.waitpid(pid, 0)
67 testcase.assertEqual(pid2, pid)

Completed in 2372 milliseconds

12