Lines Matching refs:map
62 DFXLOGU("Create maps(%{public}s) with not crash, will only parse exec map", path.c_str());
115 auto map = std::make_shared<DfxMap>();
116 if (!map->Parse(mapBuf, sizeof(mapBuf))) {
117 DFXLOGU("Failed to parse map: %{public}s", mapBuf);
121 DfxMap::FormatMapName(pid, map->name);
122 if (IsArkHapMapItem(map->name) || IsArkCodeMapItem(map->name)) {
123 AddMap(map, enableMapIndex_);
126 if (map->name == "[stack]") {
127 stackBottom_ = static_cast<uintptr_t>(map->begin);
128 stackTop_ = static_cast<uintptr_t>(map->end);
130 if (onlyExec_ && !map->IsMapExec()) {
133 if ((!enableMapIndex_) || IsLegalMapItem(map->name, false)) {
134 AddMap(map, enableMapIndex_);
143 DFXLOGI("parse maps(%{public}s) completed, map size: (%{public}zu), count: (%{public}d)",
189 void DfxMaps::AddMap(std::shared_ptr<DfxMap> map, bool enableMapIndex)
191 maps_.emplace_back(std::move(map));
197 bool DfxMaps::FindMapByAddr(uintptr_t addr, std::shared_ptr<DfxMap>& map) const
212 map = cur;
214 map->prevMap = maps_[index - 1];
226 bool DfxMaps::FindMapByFileInfo(std::string name, uint64_t offset, std::shared_ptr<DfxMap>& map) const
234 DFXLOGI("Found name: %{public}s, offset 0x%{public}" PRIx64 " in map " \
237 map = iter;
297 std::shared_ptr<DfxMap> map = nullptr;
298 if (!FindMapByAddr(addr, map)) {
299 DFXLOGU("Not mapped map for current addr.");
302 return map->IsArkExecutable();