Lines Matching refs:forked_pid
370 void DumpABI(pid_t forked_pid) { in DumpABI() argument
391 if (0 != ::ptrace(PTRACE_GETREGSET, forked_pid, /* NT_PRSTATUS */ 1, &io_vec)) { in DumpABI()
571 void DumpProcess(pid_t forked_pid, const std::atomic<bool>& saw_wif_stopped_for_main) { in DumpProcess() argument
572 LOG(ERROR) << "Timeout for process " << forked_pid; in DumpProcess()
574 CHECK_EQ(0, ::ptrace(PTRACE_ATTACH, forked_pid, 0, 0)); in DumpProcess()
575 std::set<pid_t> tids = ptrace::PtraceSiblings(forked_pid); in DumpProcess()
576 tids.insert(forked_pid); in DumpProcess()
578 ptrace::DumpABI(forked_pid); in DumpProcess()
590 LOG(ERROR) << "Did not receive SIGSTOP for pid " << forked_pid; in DumpProcess()
593 unwindstack::AndroidRemoteUnwinder unwinder(forked_pid); in DumpProcess()
595 DumpThread(unwinder, forked_pid, tid, addr2line_path.get(), " "); in DumpProcess()
600 void WaitMainLoop(pid_t forked_pid, std::atomic<bool>* saw_wif_stopped_for_main) { in WaitMainLoop() argument
604 pid_t res = TEMP_FAILURE_RETRY(waitpid(forked_pid, &status, 0)); in WaitMainLoop()
631 void SetupAndWait(pid_t forked_pid, int signal, int timeout_exit_code) { in SetupAndWait() argument
643 DumpProcess(forked_pid, saw_wif_stopped_for_main); in SetupAndWait()
646 kill(forked_pid, SIGKILL); in SetupAndWait()
650 WaitMainLoop(forked_pid, &saw_wif_stopped_for_main); in SetupAndWait()