Lines Matching refs:forked_pid
370 void DumpABI(pid_t forked_pid) { in DumpABI() argument
389 if (0 != ::ptrace(PTRACE_GETREGSET, forked_pid, /* NT_PRSTATUS */ 1, &io_vec)) { in DumpABI()
574 void DumpProcess(pid_t forked_pid, const std::atomic<bool>& saw_wif_stopped_for_main) { in DumpProcess() argument
575 LOG(ERROR) << "Timeout for process " << forked_pid; in DumpProcess()
577 CHECK_EQ(0, ::ptrace(PTRACE_ATTACH, forked_pid, 0, 0)); in DumpProcess()
578 std::set<pid_t> tids = ptrace::PtraceSiblings(forked_pid); in DumpProcess()
579 tids.insert(forked_pid); in DumpProcess()
581 ptrace::DumpABI(forked_pid); in DumpProcess()
593 LOG(ERROR) << "Did not receive SIGSTOP for pid " << forked_pid; in DumpProcess()
596 std::unique_ptr<BacktraceMap> backtrace_map(BacktraceMap::Create(forked_pid)); in DumpProcess()
603 DumpThread(forked_pid, tid, addr2line_path.get(), " ", backtrace_map.get()); in DumpProcess()
608 void WaitMainLoop(pid_t forked_pid, std::atomic<bool>* saw_wif_stopped_for_main) { in WaitMainLoop() argument
612 pid_t res = TEMP_FAILURE_RETRY(waitpid(forked_pid, &status, 0)); in WaitMainLoop()
639 void SetupAndWait(pid_t forked_pid, int signal, int timeout_exit_code) { in SetupAndWait() argument
651 DumpProcess(forked_pid, saw_wif_stopped_for_main); in SetupAndWait()
654 kill(forked_pid, SIGKILL); in SetupAndWait()
658 WaitMainLoop(forked_pid, &saw_wif_stopped_for_main); in SetupAndWait()