/third_party/libunwind/libunwind/src/ptrace/ |
H A D | _UPT_access_mem.c | 41 pid_t pid = ui->pid; in _UPT_access_mem() 69 ptrace (PTRACE_POKEDATA, pid, tmp_addr, tmp_val); in _UPT_access_mem() 79 tmp_val = (unsigned long) ptrace (PTRACE_PEEKDATA, pid, tmp_addr, 0); in _UPT_access_mem() 106 pid_t pid = ui->pid; in _UPT_access_mem() 115 if (ptrace(PT_IO, pid, (caddr_t)&iod, 0) == -1) in _UPT_access_mem()
|
/third_party/ltp/testcases/kernel/fs/doio/ |
H A D | forker.c | 79 * be updated to contain the pid of each new process. The 162 int pid; in forker() local 171 if ((pid = fork()) == -1) { in forker() 181 switch (pid) { in forker() 191 Forker_pids[Forker_npids - 1] = pid; in forker() 198 if ((pid = fork()) == -1) { in forker() 208 switch (pid) { in forker() 217 Forker_pids[Forker_npids - 1] = pid; in forker() 264 printf("After background() ret:%d, pid = %d\n", ret, getpid()); 268 printf("forker(%d, %d, %s) ret:%d, pid [all...] |
/third_party/ltp/testcases/kernel/ipc/semaphore/ |
H A D | sem02.c | 29 * Waiter, pid = <pid#> 30 * Poster, pid = <pid#>, posting 33 * Waiter waiting, pid = <pid#> 125 int pid; in waiter() local 126 pid = getpid(); in waiter() 128 tst_resm(TINFO, "Waiter, pid = %d", pid); in waiter() 144 int pid; poster() local [all...] |
/third_party/ltp/testcases/kernel/mem/swapping/ |
H A D | swapping01.c | 60 static pid_t pid; variable 84 switch (pid = SAFE_FORK()) { in test_swapping() 132 SAFE_WAITPID(pid, &status, WUNTRACED); in check_swapping() 147 swapped = SAFE_READ_PROC_STATUS(pid, "VmSwap:"); in check_swapping() 149 kill(pid, SIGCONT); in check_swapping() 156 kill(pid, SIGCONT); in check_swapping() 158 SAFE_WAITPID(pid, &status, 0); in check_swapping()
|
/third_party/ltp/testcases/kernel/syscalls/inotify/ |
H A D | inotify11.c | 42 static pid_t pid; variable 67 pid = SAFE_FORK(); in verify_inotify() 68 if (pid == 0) { in verify_inotify() 107 SAFE_KILL(pid, SIGKILL); in verify_inotify() 108 pid = 0; in verify_inotify() 114 if (pid) { in cleanup() 115 SAFE_KILL(pid, SIGKILL); in cleanup()
|
H A D | inotify06.c | 44 static pid_t pid; variable 65 pid = SAFE_FORK(); in verify_inotify() 66 if (pid == 0) { in verify_inotify() 100 SAFE_KILL(pid, SIGKILL); in verify_inotify() 101 pid = 0; in verify_inotify() 107 if (pid) { in cleanup() 108 SAFE_KILL(pid, SIGKILL); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/semop/ |
H A D | semop05.c | 29 * Waiter, pid = <pid#> 30 * Poster, pid = <pid#>, posting 33 * Waiter waiting, pid = <pid#> 125 int pid; in waiter() local 126 pid = getpid(); in waiter() 128 tst_resm(TINFO, "Waiter, pid = %d", pid); in waiter() 144 int pid; poster() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/fork/ |
H A D | fork10.c | 61 int status, pid, fildes; in main() local 82 pid = fork(); in main() 83 if (pid == -1) in main() 86 if (pid == 0) { /* child */ in main() 97 pid = fork(); in main() 98 if (pid == -1) in main() 101 if (pid == 0) { /* child */ in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
H A D | 11-1.c | 45 pid_t pid; in main() local 54 if ((pid = fork()) < 0) { in main() 57 } else if (pid == 0) { in main() 80 kill(pid, SIGSTOP); in main() 92 kill(pid, SIGCONT); in main() 102 kill(pid, SIGKILL); in main() 103 waitpid(pid, &s, 0); in main()
|
H A D | 10-1.c | 60 pid_t pid; in main() local 69 if ((pid = fork()) < 0) { in main() 72 } else if (pid == 0) { in main() 90 kill(pid, SIGSTOP); in main() 101 kill(pid, SIGCONT); in main() 109 kill(pid, SIGKILL); in main() 110 waitpid(pid, &s, 0); in main()
|
/third_party/python/Lib/multiprocessing/ |
H A D | popen_fork.py | 27 pid, sts = os.waitpid(self.pid, flag) 32 if pid == self.pid: 49 os.kill(self.pid, sig) 66 self.pid = os.fork() 67 if self.pid == 0:
|
/third_party/python/Lib/test/ |
H A D | test_fork1.py | 39 pid = os.fork() 44 if not pid: 55 # exitcode (but a hang, which manifests as 'got pid 0') 57 self.wait_impl(pid, exitcode=exitcode) 60 os.kill(pid, signal.SIGKILL) 77 pid = os.fork() 78 in_child = not pid 90 self.wait_impl(pid, exitcode=exitcode)
|
/kernel/linux/common_modules/tzdriver/core/ |
H A D | cmdmonitor.c | 19 #include <linux/pid.h> 110 static int get_pid_name(pid_t pid, char *comm, size_t size) in get_pid_name() argument 121 task = find_task_by_vpid(pid); in get_pid_name() 123 task = pid_task(find_vpid(pid), PIDTYPE_PID); in get_pid_name() 276 pid_t pid = current->tgid; in cmd_monitor_reset_context() local 277 pid_t tid = current->pid; in cmd_monitor_reset_context() 281 if (monitor->pid == pid && monitor->tid == tid) { in cmd_monitor_reset_context() 347 tloge("[cmd_monitor_tick] pid=%d,pname=%s,tid=%d, " in show_timeout_cmd_info() 350 monitor->pid, monito in show_timeout_cmd_info() 493 pid_t pid; cmd_monitor_log() local [all...] |
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | compaction-times.py | 14 usage = "usage: perf script report compaction-times.py -- [-h] [-u] [-p|-pv] [-t | [-m] [-fs] [-ms]] [pid|pid-range|comm-regex]\n" 32 def filter(self, pid, comm): 41 def filter(self, pid, comm): 42 return not (pid >= self.low and (self.high == 0 or pid <= self.high)) 118 def create_pending(cls, pid, comm, start_secs, start_nsecs): 121 head = cls.heads[pid] 125 filtered = cls.fobj.filter(pid, comm) 126 head = cls.heads[pid] [all...] |
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | compaction-times.py | 14 usage = "usage: perf script report compaction-times.py -- [-h] [-u] [-p|-pv] [-t | [-m] [-fs] [-ms]] [pid|pid-range|comm-regex]\n" 32 def filter(self, pid, comm): 41 def filter(self, pid, comm): 42 return not (pid >= self.low and (self.high == 0 or pid <= self.high)) 118 def create_pending(cls, pid, comm, start_secs, start_nsecs): 121 head = cls.heads[pid] 125 filtered = cls.fobj.filter(pid, comm) 126 head = cls.heads[pid] [all...] |
/test/xts/acts/kernel_lite/futex_posix/src/ |
H A D | PthreadMutexTest.cpp | 314 pid_t pid = fork(); in HWTEST_F() local 315 ASSERT_TRUE(pid >= 0) << "> fork errno = " << errno; in HWTEST_F() 316 if (pid == 0) { in HWTEST_F() 336 WaitProcExitedOK(pid); in HWTEST_F() 348 pid_t pid = fork(); in HWTEST_F() local 349 ASSERT_TRUE(pid >= 0) << "> fork errno = " << errno; in HWTEST_F() 350 if (pid == 0) { in HWTEST_F() 370 AssertProcExitedOK(pid); in HWTEST_F() 391 pid_t pid = fork(); in HWTEST_F() local 392 ASSERT_TRUE(pid > in HWTEST_F() 425 pid_t pid = fork(); HWTEST_F() local 459 pid_t pid = fork(); HWTEST_F() local [all...] |
/test/xts/acts/kernel_lite/io_posix/src/ |
H A D | IoTestWchar.cpp | 410 pid_t pid = fork(); in HWTEST_F() local 411 ASSERT_TRUE(pid >= 0) << "======== Fork Error! ========="; in HWTEST_F() 412 if (pid == 0) { // child in HWTEST_F() 429 WaitProcExitedOK(pid); in HWTEST_F() 450 pid_t pid = fork(); in HWTEST_F() local 451 ASSERT_TRUE(pid >= 0) << "======== Fork Error! ========="; in HWTEST_F() 452 if (pid == 0) { // child in HWTEST_F() 473 WaitProcExitedOK(pid); in HWTEST_F() 493 pid_t pid = fork(); in HWTEST_F() local 494 ASSERT_TRUE(pid > in HWTEST_F() 542 pid_t pid = fork(); HWTEST_F() local 578 pid_t pid = fork(); HWTEST_F() local [all...] |
/third_party/toybox/toys/pending/ |
H A D | lsof.c | 18 -t terse (pid only) output 34 int pid, uid; member 65 if (fi->pi.pid != TT.last_shown_pid) in print_info() 66 printf("%d\n", TT.last_shown_pid = fi->pi.pid); in print_info() 76 fi->pi.cmd, fi->pi.pid, getusername(fi->pi.uid), in print_info() 94 snprintf(toybuf, sizeof(toybuf), "/proc/%d/fdinfo/%s", fi->pi.pid, fi->fd); in fill_flags() 310 if (name) { // "/proc/pid/[cwd]". in visit_symlink() 312 snprintf(toybuf, sizeof(toybuf), "/proc/%d/%s", pi->pid, path); in visit_symlink() 313 } else { // "/proc/pid/fd/[3]" in visit_symlink() 316 snprintf(toybuf, sizeof(toybuf), "/proc/%d/fd/%s", pi->pid, pat in visit_symlink() 382 lsof_pid(int pid, struct stat *st) lsof_pid() argument 414 int pid; scan_proc() local 425 int i, pid; lsof_main() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/process/ |
H A D | vfork.c | 33 pid_t pid; in vfork_0100() local 34 pid = vfork(); in vfork_0100() 36 if (pid < 0) { in vfork_0100() 38 } else if (pid == 0) { in vfork_0100() 44 } else if (pid > 0) { in vfork_0100()
|
/test/xts/hats/powermgr/power/hdi_power_additional/common/ |
H A D | hdi_power_test.cpp | 111 .pid = 0,
in HWTEST_F() 131 .pid = 0,
in HWTEST_F() 151 .pid = 0,
in HWTEST_F() 171 .pid = 0,
in HWTEST_F() 191 .pid = 0,
in HWTEST_F() 211 .pid = 0,
in HWTEST_F() 231 .pid = 0,
in HWTEST_F() 254 .pid = 0,
in HWTEST_F() 277 .pid = 0,
in HWTEST_F() 300 .pid in HWTEST_F() [all...] |
/kernel/linux/build/test/moduletest/runtest/bin/purgeable_t/testcases/bin/ |
H A D | purgeable_mem03.sh | 40 local pid= $(pidof purgeable_cpp_test) 41 while [ "$pid" -eq '0' ] 43 pid=$(pidof purgeable_cpp_test) 45 while [ "$pid" -ne '0' ] 47 cat /proc/${pid}/status | grep -i purg | grep -v grep | grep -v Name >>mem.log 48 pid=$(pidof purgeable_cpp_test)
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/math/ |
H A D | vmx_syscall.c | 23 extern int test_vmx(vector int *varray, pid_t *pid); 52 pid_t pid; in test_vmx_syscall() local 59 pid = fork(); in test_vmx_syscall() 60 FAIL_IF(pid == -1); in test_vmx_syscall() 79 if (pid) in test_vmx_syscall() 80 waitpid(pid, &child_ret, 0); in test_vmx_syscall()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | task_event_pinned_vs_ebb_test.c | 42 pid_t pid; in task_event_pinned_vs_ebb() local 50 pid = fork(); in task_event_pinned_vs_ebb() 51 if (pid == 0) { in task_event_pinned_vs_ebb() 57 rc = setup_child_event(&event, pid); in task_event_pinned_vs_ebb() 59 kill_child_and_wait(pid); in task_event_pinned_vs_ebb() 73 FAIL_IF(wait_for_child(pid) != 2); in task_event_pinned_vs_ebb()
|
H A D | task_event_vs_ebb_test.c | 40 pid_t pid; in task_event_vs_ebb() local 48 pid = fork(); in task_event_vs_ebb() 49 if (pid == 0) { in task_event_vs_ebb() 55 rc = setup_child_event(&event, pid); in task_event_vs_ebb() 57 kill_child_and_wait(pid); in task_event_vs_ebb() 71 FAIL_IF(wait_for_child(pid)); in task_event_vs_ebb()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | task_event_pinned_vs_ebb_test.c | 42 pid_t pid; in task_event_pinned_vs_ebb() local 50 pid = fork(); in task_event_pinned_vs_ebb() 51 if (pid == 0) { in task_event_pinned_vs_ebb() 57 rc = setup_child_event(&event, pid); in task_event_pinned_vs_ebb() 59 kill_child_and_wait(pid); in task_event_pinned_vs_ebb() 73 FAIL_IF(wait_for_child(pid) != 2); in task_event_pinned_vs_ebb()
|