Lines Matching refs:pid
64 static size_t UnwindRemote(pid_t pid, unw_addr_space_t as)
71 void *context = _UPT_create(pid);
104 pid_t pid = fork();
105 if (pid == 0) {
108 } else if (pid < 0) {
111 if (!DfxPtrace::Attach(pid)) {
112 DFXLOGE("Failed to attach pid: %{public}d", pid);
113 TestScopedPidReaper::Kill(pid);
117 DFXLOGU("pid: %{public}d", pid);
118 TestScopedPidReaper reap(pid);
122 auto unwSize = UnwindRemote(pid, as);
129 DFXLOGU("Detach pid: %{public}d", pid);
130 DfxPtrace::Detach(pid);
133 static void GetCacheUnwind(pid_t pid, unw_addr_space_t& as)
136 auto iter = ass_.find(pid);
141 ass_[pid] = as;
147 pid_t pid = fork();
148 if (pid == 0) {
151 } else if (pid < 0) {
154 if (!DfxPtrace::Attach(pid)) {
155 DFXLOGE("Failed to attach pid: %{public}d", pid);
156 TestScopedPidReaper::Kill(pid);
159 DFXLOGU("pid: %{public}d", pid);
160 TestScopedPidReaper reap(pid);
163 GetCacheUnwind(pid, as);
166 auto unwSize = UnwindRemote(pid, as);
173 DFXLOGU("Detach pid: %{public}d", pid);
174 DfxPtrace::Detach(pid);