Lines Matching defs:map
46 bool DfxAccessors::GetMapByPcAndCtx(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg)
52 if (ctx->map != nullptr && ctx->map->Contain(static_cast<uint64_t>(pc))) {
53 map = ctx->map;
54 DFXLOGU("map had matched by ctx, map name: %{public}s", map->name.c_str());
58 if (ctx->maps == nullptr || !ctx->maps->FindMapByAddr(pc, map) || (map == nullptr)) {
59 ctx->map = nullptr;
62 ctx->map = map;
139 if (ctx->map != nullptr && ctx->map->IsVdsoMap()) {
140 auto elf = ctx->map->GetElf(getpid());
145 ret = elf->FindUnwindTableInfo(pc, ctx->map, uti);
155 int DfxAccessorsLocal::GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg)
157 if (!DfxAccessors::GetMapByPcAndCtx(pc, map, arg)) {
176 if (ctx->map != nullptr && ctx->map->elf != nullptr) {
177 uintptr_t pos = ctx->map->GetRelPc(addr);
178 if (ctx->map->elf->Read(pos, val, sizeof(uintptr_t))) {
232 if (ctx == nullptr || ctx->map == nullptr) {
241 auto elf = ctx->map->GetElf(ctx->pid);
246 int ret = elf->FindUnwindTableInfo(pc, ctx->map, uti);
253 int DfxAccessorsRemote::GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg)
255 if (!DfxAccessors::GetMapByPcAndCtx(pc, map, arg)) {
285 int DfxAccessorsCustomize::GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg)
290 return accessors_->GetMapByPc(pc, map, arg);