Lines Matching refs:pid_
51 : pid_(pid), is_tracing_threads_(is_tracing_threads) { in ProcessTracer()
57 if (!android::procinfo::GetProcessTids(pid_, &tids_, &error_msg)) { in InitProcessTids()
64 if (tids_.erase(pid_) != 1) { in InitProcessTids()
79 if (kill(pid_, SIGSTOP) == kKillFailed) { in Stop()
80 fprintf(stderr, "Failed to send stop signal to pid %d: %s\n", pid_, strerror(errno)); in Stop()
90 if (kill(pid_, SIGCONT) == kKillFailed) { in Resume()
91 fprintf(stderr, "Failed to send continue signal to pid %d: %s\n", pid_, strerror(errno)); in Resume()
101 if (tid != pid_ && tids_.find(tid) == tids_.end()) { in Detach()
102 fprintf(stderr, "Tid %d does not belong to proc %d.\n", tid, pid_); in Detach()
122 if (tid != pid_ && tids_.find(tid) == tids_.end()) { in Attach()
123 fprintf(stderr, "Tid %d does not belong to proc %d.\n", tid, pid_); in Attach()
152 if (!Attach(pid_)) return false; in StopInDesiredElf()
153 pc_in_desired_elf = ProcIsInDesiredElf(pid_, elf_name); in StopInDesiredElf()
154 if (!Detach(pid_)) return false; in StopInDesiredElf()
174 fprintf(stderr, "\nExited while waiting for pid %d to enter %s.\n", pid_, elf_name.c_str()); in StopInDesiredElf()