Lines Matching refs:pid

37 static bool WaitForRemote(pid_t pid, volatile bool* ready_ptr) {  in WaitForRemote()  argument
38 return unwindstack::WaitForPidState(pid, [pid, ready_ptr]() { in WaitForRemote()
39 unwindstack::MemoryRemote memory(pid); in WaitForRemote()
78 pid_t pid; in StartRemoteRun() local
79 if ((pid = fork()) == 0) { in StartRemoteRun()
83 if (pid == -1) { in StartRemoteRun()
87 if (!WaitForRemote(pid, &ready)) { in StartRemoteRun()
88 kill(pid, SIGKILL); in StartRemoteRun()
89 waitpid(pid, nullptr, 0); in StartRemoteRun()
93 return pid; in StartRemoteRun()
97 pid_t pid = StartRemoteRun(); in RemoteUnwind() local
98 if (pid == -1) { in RemoteUnwind()
101 unwindstack::TestScopedPidReaper reap(pid); in RemoteUnwind()
105 process_memory = unwindstack::Memory::CreateProcessMemoryCached(pid); in RemoteUnwind()
107 process_memory = unwindstack::Memory::CreateProcessMemory(pid); in RemoteUnwind()
109 unwindstack::RemoteMaps maps(pid); in RemoteUnwind()
115 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::RemoteGet(pid)); in RemoteUnwind()
123 ptrace(PTRACE_DETACH, pid, 0, 0); in RemoteUnwind()
137 pid_t pid = StartRemoteRun(); in RemoteAndroidUnwind() local
138 if (pid == -1) { in RemoteAndroidUnwind()
141 unwindstack::TestScopedPidReaper reap(pid); in RemoteAndroidUnwind()
145 process_memory = unwindstack::Memory::CreateProcessMemoryCached(pid); in RemoteAndroidUnwind()
147 process_memory = unwindstack::Memory::CreateProcessMemory(pid); in RemoteAndroidUnwind()
149 unwindstack::AndroidRemoteUnwinder unwinder(pid, process_memory); in RemoteAndroidUnwind()
162 ptrace(PTRACE_DETACH, pid, 0, 0); in RemoteAndroidUnwind()