Lines Matching refs:forked_pid
373 void DumpABI(pid_t forked_pid) { in DumpABI() argument
396 if (0 != ::ptrace(PTRACE_GETREGSET, forked_pid, /* NT_PRSTATUS */ 1, &io_vec)) { in DumpABI()
596 void DumpProcess(pid_t forked_pid, const std::atomic<bool>& saw_wif_stopped_for_main) { in DumpProcess() argument
597 LOG(ERROR) << "Timeout for process " << forked_pid; in DumpProcess()
599 CHECK_EQ(0, ::ptrace(PTRACE_ATTACH, forked_pid, 0, 0)); in DumpProcess()
600 std::set<pid_t> tids = ptrace::PtraceSiblings(forked_pid); in DumpProcess()
601 tids.insert(forked_pid); in DumpProcess()
603 ptrace::DumpABI(forked_pid); in DumpProcess()
615 LOG(ERROR) << "Did not receive SIGSTOP for pid " << forked_pid; in DumpProcess()
618 std::unique_ptr<BacktraceMap> backtrace_map(BacktraceMap::Create(forked_pid)); in DumpProcess()
625 DumpThread(forked_pid, tid, addr2line_path.get(), " ", backtrace_map.get()); in DumpProcess()
630 void WaitMainLoop(pid_t forked_pid, std::atomic<bool>* saw_wif_stopped_for_main) { in WaitMainLoop() argument
634 pid_t res = TEMP_FAILURE_RETRY(waitpid(forked_pid, &status, 0)); in WaitMainLoop()
661 void SetupAndWait(pid_t forked_pid) { in SetupAndWait() argument
673 DumpProcess(forked_pid, saw_wif_stopped_for_main); in SetupAndWait()
676 kill(forked_pid, SIGKILL); in SetupAndWait()
680 WaitMainLoop(forked_pid, &saw_wif_stopped_for_main); in SetupAndWait()