| /llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/tools/lldb-server/ |
| H A D | fork_testbase.py | 50 parent_pid, parent_tid, child_pid, child_tid = ( 55 "read packet: $D;{}#00".format(child_pid), 61 "read packet: $Hgp{}.{}#00".format(child_pid, child_tid), 71 parent_pid, parent_tid, child_pid, child_tid = ( 106 parent_pid, parent_tid, child_pid, child_tid = ( 128 parent_pid, parent_tid, child_pid, child_tid = ( 140 "read packet: $vKill;{}#00".format(child_pid), 154 parent_pid, parent_tid, child_pid, child_tid = ( 162 self.stop_regex_base.format(child_pid, child_tid), 163 "W00;process:{}#.*".format(child_pid), [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/Linux/ |
| H A D | SingleStepCheck.cpp | 69 ::pid_t child_pid = fork(); in WorkaroundNeeded() 70 if (child_pid == -1) { in WorkaroundNeeded() 74 if (child_pid == 0) in WorkaroundNeeded() 77 ChildDeleter child_deleter{child_pid}; in WorkaroundNeeded() 79 if (sched_getaffinity(child_pid, sizeof available_cpus, &available_cpus) == in WorkaroundNeeded() 88 child_pid, &status, __WALL); in WorkaroundNeeded() 89 if (wpid != child_pid || !WIFSTOPPED(status)) { in WorkaroundNeeded() 103 if (sched_setaffinity(child_pid, sizeof cpus, &cpus) == -1) { in WorkaroundNeeded() 111 NativeProcessLinux::PtraceWrapper(PTRACE_SINGLESTEP, child_pid); in WorkaroundNeeded() 118 child_pid, &status, __WALL); in WorkaroundNeeded() [all …]
|
| H A D | NativeThreadLinux.cpp | 457 void NativeThreadLinux::SetStoppedByFork(bool is_vfork, lldb::pid_t child_pid) { in SetStoppedByFork() argument 463 m_stop_info.details.fork.child_pid = child_pid; in SetStoppedByFork() 464 m_stop_info.details.fork.child_tid = child_pid; in SetStoppedByFork()
|
| H A D | NativeProcessLinux.cpp | 836 lldb::pid_t child_pid, int event) { in MonitorClone() argument 839 child_pid, event); in MonitorClone() 841 WaitForCloneNotification(child_pid); in MonitorClone() 849 auto tgid_ret = getPIDForTID(child_pid); in MonitorClone() 850 if (tgid_ret != child_pid) { in MonitorClone() 854 NativeThreadLinux &child_thread = AddThread(child_pid, /*resume*/ true); in MonitorClone() 867 static_cast<::pid_t>(child_pid), m_terminal_fd, m_delegate, m_arch, in MonitorClone() 868 m_main_loop, {static_cast<::pid_t>(child_pid)})}; in MonitorClone() 876 parent.SetStoppedByFork(is_vfork, child_pid); in MonitorClone()
|
| H A D | NativeThreadLinux.h | 93 void SetStoppedByFork(bool is_vfork, lldb::pid_t child_pid);
|
| /llvm-project-15.0.7/lldb/test/Shell/Commands/Inputs/ |
| H A D | sigchld.c | 15 pid_t child_pid = fork(); in main() local 16 assert (child_pid != -1); in main() 18 if (child_pid == 0) { in main() 25 printf("child_pid = %d\n", child_pid); in main() 28 assert(waited == child_pid); in main()
|
| /llvm-project-15.0.7/lldb/test/API/tools/lldb-server/ |
| H A D | TestGdbRemoteFork.py | 21 "read packet: $D;{}#00".format(child_pid), 147 set([parent_pid, child_pid])) 206 parent_pid, parent_tid, child_pid, child_tid = ( 241 parent_pid, parent_tid, child_pid, child_tid = ( 245 (child_pid, child_tid), 373 parent_pid, parent_tid, child_pid, child_tid = ( 377 (child_pid, child_tid), 469 parent_pid, parent_tid, child_pid, child_tid = ( 473 (child_pid, child_tid), 503 parent_pid, parent_tid, child_pid, child_tid = ( [all …]
|
| H A D | TestGdbRemoteForkNonStop.py | 64 parent_pid, _, child_pid, _ = self.start_fork_test(["fork"], 100 self.assertEqual(set([pid1, pid2]), set([parent_pid, child_pid])) 120 parent_pid, parent_tid, child_pid, child_tid = ( 130 "read packet: $Hcp{}.{}#00".format(child_pid, child_tid), 143 self.assertIn("PID: {}".format(int(child_pid, 16)).encode(),
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/FreeBSD/ |
| H A D | NativeThreadFreeBSD.cpp | 133 void NativeThreadFreeBSD::SetStoppedByFork(lldb::pid_t child_pid, in SetStoppedByFork() argument 139 m_stop_info.details.fork.child_pid = child_pid; in SetStoppedByFork() 143 void NativeThreadFreeBSD::SetStoppedByVFork(lldb::pid_t child_pid, in SetStoppedByVFork() argument 149 m_stop_info.details.fork.child_pid = child_pid; in SetStoppedByVFork()
|
| H A D | NativeThreadFreeBSD.h | 65 void SetStoppedByFork(lldb::pid_t child_pid, lldb::tid_t child_tid); 66 void SetStoppedByVFork(lldb::pid_t child_pid, lldb::tid_t child_tid);
|
| H A D | NativeProcessFreeBSD.cpp | 967 void NativeProcessFreeBSD::MonitorClone(::pid_t child_pid, bool is_vfork, in MonitorClone() argument 970 LLDB_LOG(log, "fork, child_pid={0}", child_pid); in MonitorClone() 974 llvm::sys::RetryAfterSignal(-1, ::waitpid, child_pid, &status, 0); in MonitorClone() 975 if (wait_pid != child_pid) { in MonitorClone() 979 child_pid); in MonitorClone() 986 child_pid); in MonitorClone() 991 const auto siginfo_err = PtraceWrapper(PT_LWPINFO, child_pid, &info, sizeof(info)); in MonitorClone() 1000 new NativeProcessFreeBSD(static_cast<::pid_t>(child_pid), m_terminal_fd, in MonitorClone() 1014 parent_thread.SetStoppedByVFork(child_pid, child_tid); in MonitorClone() 1016 parent_thread.SetStoppedByFork(child_pid, child_tid); in MonitorClone()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/NetBSD/ |
| H A D | NativeThreadNetBSD.cpp | 133 void NativeThreadNetBSD::SetStoppedByFork(lldb::pid_t child_pid, in SetStoppedByFork() argument 139 m_stop_info.details.fork.child_pid = child_pid; in SetStoppedByFork() 143 void NativeThreadNetBSD::SetStoppedByVFork(lldb::pid_t child_pid, in SetStoppedByVFork() argument 149 m_stop_info.details.fork.child_pid = child_pid; in SetStoppedByVFork()
|
| H A D | NativeThreadNetBSD.h | 62 void SetStoppedByFork(lldb::pid_t child_pid, lldb::tid_t child_tid); 63 void SetStoppedByVFork(lldb::pid_t child_pid, lldb::tid_t child_tid);
|
| H A D | NativeProcessNetBSD.cpp | 1014 void NativeProcessNetBSD::MonitorClone(::pid_t child_pid, bool is_vfork, in MonitorClone() argument 1017 LLDB_LOG(log, "clone, child_pid={0}", child_pid); in MonitorClone() 1021 llvm::sys::RetryAfterSignal(-1, ::waitpid, child_pid, &status, 0); in MonitorClone() 1022 if (wait_pid != child_pid) { in MonitorClone() 1026 child_pid); in MonitorClone() 1033 child_pid); in MonitorClone() 1039 PtraceWrapper(PT_GET_SIGINFO, child_pid, &info, sizeof(info)); in MonitorClone() 1048 new NativeProcessNetBSD(static_cast<::pid_t>(child_pid), m_terminal_fd, in MonitorClone() 1062 parent_thread.SetStoppedByVFork(child_pid, child_tid); in MonitorClone() 1064 parent_thread.SetStoppedByFork(child_pid, child_tid); in MonitorClone()
|
| H A D | NativeProcessNetBSD.h | 114 void MonitorClone(::pid_t child_pid, bool is_vfork,
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/ |
| H A D | coverage-fork.cpp | 28 pid_t child_pid = fork(); in main() local 29 if (child_pid == 0) { in main()
|
| /llvm-project-15.0.7/lldb/unittests/debugserver/ |
| H A D | RNBSocketTest.cpp | 27 auto child_pid = fork(); in ServerCallbackv4() local 28 if (child_pid == 0) { in ServerCallbackv4() 110 auto child_pid = fork(); in TestSocketConnect() local 111 if (child_pid != 0) { in TestSocketConnect()
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/src/ |
| H A D | gtest-death-test.cc | 1081 void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; } in set_child_pid() argument 1139 const pid_t child_pid = fork(); in AssumeRole() local 1140 GTEST_DEATH_TEST_CHECK_(child_pid != -1); in AssumeRole() 1141 set_child_pid(child_pid); in AssumeRole() 1142 if (child_pid == 0) { in AssumeRole() 1315 pid_t child_pid = -1; in ExecDeathTestSpawnChild() local 1342 child_pid = in ExecDeathTestSpawnChild() 1395 if (use_fork && (child_pid = fork()) == 0) { in ExecDeathTestSpawnChild() 1405 GTEST_DEATH_TEST_CHECK_(child_pid != -1); in ExecDeathTestSpawnChild() 1406 return child_pid; in ExecDeathTestSpawnChild() [all …]
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | DNB.cpp | 171 child_pid, signal); in kqueue_thread() 176 child_pid, exit_status); in kqueue_thread() 179 if (child_pid == abs(pid)) { in kqueue_thread() 182 child_pid, signal); in kqueue_thread() 202 DNBProcessSetExitInfo(child_pid, in kqueue_thread() 208 child_pid, exit_status); in kqueue_thread() 209 DNBProcessSetExitStatus(child_pid, status); in kqueue_thread() 269 pid_t child_pid = waitpid(pid, &status, 0); in waitpid_thread() local 274 if (child_pid < 0) { in waitpid_thread() 286 child_pid, status); in waitpid_thread() [all …]
|
| /llvm-project-15.0.7/lldb/source/Target/ |
| H A D | StopInfo.cpp | 1173 StopInfoFork(Thread &thread, lldb::pid_t child_pid, lldb::tid_t child_tid) in StopInfoFork() argument 1174 : StopInfo(thread, child_pid), m_child_pid(child_pid), in StopInfoFork() 1207 StopInfoVFork(Thread &thread, lldb::pid_t child_pid, lldb::tid_t child_tid) in StopInfoVFork() argument 1208 : StopInfo(thread, child_pid), m_child_pid(child_pid), in StopInfoVFork() 1316 lldb::pid_t child_pid, in CreateStopReasonFork() argument 1318 return StopInfoSP(new StopInfoFork(thread, child_pid, child_tid)); in CreateStopReasonFork() 1323 lldb::pid_t child_pid, in CreateStopReasonVFork() argument 1325 return StopInfoSP(new StopInfoVFork(thread, child_pid, child_tid)); in CreateStopReasonVFork()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | check_assertion.h | 141 pid_t child_pid = fork(); in Run() local 142 assert(child_pid != -1 && in Run() 144 child_pid_ = child_pid; in Run()
|
| /llvm-project-15.0.7/lldb/include/lldb/Target/ |
| H A D | StopInfo.h | 136 lldb::pid_t child_pid, 140 lldb::pid_t child_pid,
|
| /llvm-project-15.0.7/lldb/test/Shell/Commands/ |
| H A D | command-thread-siginfo.test | 10 # CHECK: child_pid = [[PID:[0-9]+]]
|
| /llvm-project-15.0.7/openmp/runtime/test/affinity/ |
| H A D | redetect.c | 86 pid_t child_pid = pid; in main() local
|
| /llvm-project-15.0.7/lldb/include/lldb/Host/ |
| H A D | Debug.h | 144 lldb::pid_t child_pid; member
|