Lines Matching refs:pid
93 context.pid = tid;
101 static bool GetUnwinder(pid_t pid, void* data, std::shared_ptr<Unwinder>& unwinder, bool& isFp)
104 auto iter = unwinders_.find(pid);
108 unwinder = std::make_shared<Unwinder>(pid);
109 unwinders_[pid] = unwinder;
123 pid_t pid = fork();
124 if (pid == 0) {
127 } else if (pid < 0) {
130 if (!DfxPtrace::Attach(pid)) {
131 DFXLOGE("Failed to attach pid: %{public}d", pid);
132 TestScopedPidReaper::Kill(pid);
135 DFXLOGU("pid: %{public}d", pid);
136 TestScopedPidReaper reap(pid);
140 if (!GetUnwinder(pid, data, unwinder, isFp) || (unwinder == nullptr)) {
148 unwSize = UnwinderRemoteFp(unwinder, pid);
150 unwSize = UnwinderRemote(unwinder, pid);
157 DFXLOGU("Detach pid: %{public}d", pid);
158 DfxPtrace::Detach(pid);