Lines Matching refs:pid
136 Addr2linePipe(int in_fd, int out_fd, const std::string& file_name, pid_t pid) in Addr2linePipe()
137 : in(in_fd), out(out_fd), file(file_name), child_pid(pid), odd(true) {} in Addr2linePipe()
165 pid_t pid = fork(); in Connect() local
166 if (pid == -1) { in Connect()
174 if (pid == 0) { in Connect()
191 pid); in Connect()
334 std::set<pid_t> PtraceSiblings(pid_t pid) { in PtraceSiblings() argument
336 std::string task_path = android::base::StringPrintf("/proc/%d/task", pid); in PtraceSiblings()
359 if (tid == pid) { in PtraceSiblings()
487 bool WaitForSigStopped(pid_t pid, uint32_t max_wait_micros) { in WaitForSigStopped() argument
490 pid_t rc = TEMP_FAILURE_RETRY(waitpid(pid, &status, WNOHANG)); in WaitForSigStopped()
492 PLOG(ERROR) << "Failed to waitpid for " << pid; in WaitForSigStopped()
496 if (rc == pid) { in WaitForSigStopped()
498 LOG(ERROR) << "Did not get expected stopped signal for " << pid; in WaitForSigStopped()
516 void DumpThread(pid_t pid, in DumpThread() argument
522 std::cerr << std::endl << "=== pid: " << pid << " tid: " << tid << " ===" << std::endl; in DumpThread()
525 if (pid != tid && !WaitForSigStopped(tid, kMaxWaitMicros)) { in DumpThread()
529 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map)); in DumpThread()
689 pid_t pid = fork(); in main() local
690 if (pid == 0) { in main()
705 art::SetupAndWait(pid); in main()