Lines Matching defs:map
43 bool DfxHap::ParseHapInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map,
47 if (jsFunction == nullptr || map == nullptr) {
57 if (DfxMaps::IsArkHapMapItem(map->name)) {
58 if (!ParseHapFileInfo(pc, methodid, map, jsFunction)) {
63 if (!ParseHapMemInfo(pid, pc, methodid, map, jsFunction)) {
74 bool DfxHap::ParseHapFileInfo(uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, JsFunction *jsFunction)
77 if (jsFunction == nullptr || map == nullptr || map->name.empty()) {
81 if (DfxArk::ParseArkFileInfo(static_cast<uintptr_t>(pc), methodid, static_cast<uintptr_t>(map->begin),
82 map->name.c_str(), arkSymbolExtractorPtr_, jsFunction) < 0) {
84 reinterpret_cast<void *>(pc), reinterpret_cast<void *>(map->begin));
92 bool DfxHap::ParseHapMemInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map,
96 if (pid < 0 || jsFunction == nullptr || map == nullptr) {
100 if (!ParseHapMemData(pid, map)) {
104 if (DfxArk::ParseArkFrameInfo(static_cast<uintptr_t>(pc), methodid, static_cast<uintptr_t>(map->begin),
107 reinterpret_cast<void *>(pc), reinterpret_cast<void *>(map->begin));
135 DFXLOGU("Failed to get hap source map info: %{public}s", name.c_str());
142 bool DfxHap::ParseHapMemData(const pid_t pid, std::shared_ptr<DfxMap> map)
146 if (pid < 0 || map == nullptr) {
153 abcLoadOffset_ = map->offset;
154 abcDataSize_ = map->end - map->begin;
156 auto size = DfxMemory::ReadProcMemByPid(pid, map->begin, abcDataPtr_.get(), abcDataSize_);