Home
last modified time | relevance | path

Searched refs:pid2 (Results 1 – 25 of 32) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/kcmp/
Dkcmp_test.c23 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/
Dkcmp01.c40 static int pid2; variable
44 int *pid2; member
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(); in do_child()
81 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in do_child()
108 pid2 = SAFE_FORK(); in verify_kcmp()
109 if (!pid2) in verify_kcmp()
Dkcmp03.c42 static int pid2; variable
67 pid2 = getpid(); in do_child()
69 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0)); in do_child()
Dkcmp.h47 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()
Dkcmp02.c51 int *pid2; member
87 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in verify_kcmp()
/external/curl/tests/
Druntests.pl432 my $pid2 = 0;
472 $pid2 = 0 + <PID>;
474 if(($pid2 > 0) && pidexists($pid2)) {
481 $pid2 = 0;
499 return ($child, $pid2);
1394 my ($http2pid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1399 stopserver($server, "$pid2");
1408 return ($http2pid, $pid2);
1473 my ($httppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
1478 stopserver($server, "$pid2");
[all …]
/external/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_test.sh188 pid2=$!
191 kill -USR1 $pid1 $pid2
193 wait $pid2 2>/dev/null
331 local pid2=$!
336 kill -TERM $pid2
338 wait $pid2 2>/dev/null
480 local pid2=$!
483 kill -USR1 $pid1 $pid2
485 wait $pid2 2>/dev/null
503 local pid2=$!
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/math/
Dfpu_syscall.c54 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()
Dvmx_syscall.c55 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/elfutils/tests/
Dbacktrace.c274 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/ltp/testcases/kernel/controllers/memcg/regression/
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/
Dkcmp.c97 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/
Dkcmp.c97 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-mx32/
Dkcmp.c97 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/fork/
Dfork03.c57 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()
Dfork02.c57 int pid1, pid2, status; in main() local
77 pid2 = wait(&status); in main()
80 if (pid1 == pid2) in main()
/external/ltp/testcases/kernel/syscalls/kill/
Dkill08.c77 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()
Dkill06.c77 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()
Dkill02.c161 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/
Dkcmp.c58 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/
Dfs_inod188 pid2=$!
192 wait $pid2
194 pid2=$!
198 wait $pid2
/external/ltp/testcases/network/nfs/nfs_stress/
Dnfs0365 pid2=$!
74 wait $pid2
/external/perfetto/src/profiling/memory/
Dheapprofd_end_to_end_test.cc347 pid_t pid2 = ForkContinuousMalloc(kAllocSize2); in TwoProcesses() local
361 *heapprofd_config->add_pid() = static_cast<uint64_t>(pid2); in TwoProcesses()
368 ValidateHasSamples(helper.get(), static_cast<uint64_t>(pid2)); in TwoProcesses()
369 ValidateSampleSizes(helper.get(), static_cast<uint64_t>(pid2), kAllocSize2); in TwoProcesses()
373 PERFETTO_CHECK(kill(pid2, SIGKILL) == 0); in TwoProcesses()
374 PERFETTO_CHECK(PERFETTO_EINTR(waitpid(pid2, nullptr, 0)) == pid2); in TwoProcesses()
/external/linux-kselftest/tools/testing/selftests/net/
Dtls.c623 int pid2; in TEST_F() local
633 pid2 = wait(&status); in TEST_F()
635 EXPECT_EQ(res, pid2); in TEST_F()
677 int pid2; in TEST_F() local
693 pid2 = wait(&status); in TEST_F()
696 EXPECT_EQ(res, pid2); in TEST_F()
/external/linux-kselftest/android/patches/
D0004-Remove-useless-open-mode.patch13 int pid2 = getpid();

12