Lines Matching refs:pid
133 Addr2linePipe(int in_fd, int out_fd, const std::string& file_name, pid_t pid) in Addr2linePipe()
134 : in(in_fd), out(out_fd), file(file_name), child_pid(pid), odd(true) {} in Addr2linePipe()
162 pid_t pid = fork(); in Connect() local
163 if (pid == -1) { in Connect()
171 if (pid == 0) { in Connect()
188 pid); in Connect()
331 std::set<pid_t> PtraceSiblings(pid_t pid) { in PtraceSiblings() argument
333 std::string task_path = android::base::StringPrintf("/proc/%d/task", pid); in PtraceSiblings()
356 if (tid == pid) { in PtraceSiblings()
466 bool WaitForSigStopped(pid_t pid, uint32_t max_wait_micros) { in WaitForSigStopped() argument
469 pid_t rc = TEMP_FAILURE_RETRY(waitpid(pid, &status, WNOHANG)); in WaitForSigStopped()
471 PLOG(ERROR) << "Failed to waitpid for " << pid; in WaitForSigStopped()
475 if (rc == pid) { in WaitForSigStopped()
477 LOG(ERROR) << "Did not get expected stopped signal for " << pid; in WaitForSigStopped()
495 void DumpThread(pid_t pid, in DumpThread() argument
500 LOG(ERROR) << std::endl << "=== pid: " << pid << " tid: " << tid << " ===" << std::endl; in DumpThread()
503 if (pid != tid && !WaitForSigStopped(tid, kMaxWaitMicros)) { in DumpThread()
507 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map)); in DumpThread()
708 pid_t pid = fork(); in main() local
709 if (pid == 0) { in main()
724 art::SetupAndWait(pid, signal, timeout_exit_code); in main()