Lines Matching defs:tid

65 std::string VirtualRuntime::ReadThreadName(pid_t tid)
67 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str();
73 VirtualThread &VirtualRuntime::UpdateThread(pid_t pid, pid_t tid, const std::string name)
79 VirtualThread &thread = GetThread(pid, tid);
89 VirtualThread &VirtualRuntime::CreateThread(pid_t pid, pid_t tid)
92 userSpaceThreadMap_.emplace(std::piecewise_construct, std::forward_as_tuple(tid),
93 std::forward_as_tuple(pid, tid, symbolsFiles_, this));
94 VirtualThread& thr = userSpaceThreadMap_.at(tid);
98 VirtualThread &VirtualRuntime::GetThread(pid_t pid, pid_t tid)
100 HLOGV("find thread %u:%u", pid, tid);
101 auto it = userSpaceThreadMap_.find(tid);
104 VirtualThread& thr = CreateThread(pid, tid);
129 bool VirtualRuntime::GetSymbolName(pid_t pid, pid_t tid, std::vector<CallFrame>& callFrames, int offset, bool first,
150 auto symbol = GetSymbol(callFrame, pid, tid,
196 void VirtualRuntime::UpdateMaps(pid_t pid, pid_t tid)
198 auto &thread = UpdateThread(pid, tid);
210 pid_t tid,
219 auto &thread = UpdateThread(pid, tid);
240 GetSymbolName(pid, tid, callFrames, offset, true, true);
244 if (!GetSymbolName(pid, tid, callFrames, offset, true)) {
248 GetSymbolName(pid, tid, callFrames, offset, false);
260 if (!GetSymbolName(pid, tid, callFrames, offset, false)) {
448 const DfxSymbol VirtualRuntime::GetSymbol(CallFrame& callFrame, pid_t pid, pid_t tid,
451 HLOGM("try find tid %u ip 0x%" PRIx64 " in %zu symbolsFiles ", tid, callFrame.ip_, symbolsFiles_.size());
469 } else if (GetSymbolCache(callFrame.ip_, symbol, GetThread(pid, tid))) {
474 symbol = GetUserSymbol(callFrame.ip_, GetThread(pid, tid));
476 HLOGM("GetUserSymbol valid tid = %d ip = 0x%" PRIx64 "", tid, callFrame.ip_);
549 void VirtualRuntime::HandleMapInfo(std::vector<uint64_t> info, const std::string& filePath, pid_t pid, pid_t tid)
569 auto &thread = UpdateThread(pid, tid);