Home
last modified time | relevance | path

Searched refs:maps_ (Results 1 – 18 of 18) sorted by relevance

/system/unwinding/libunwindstack/tests/
DElfCacheTest.cpp47 maps_.reset( in SetUp()
74 ASSERT_TRUE(maps_->Parse()); in SetUp()
100 for (auto& map_info : *maps_) { in SetUp()
130 std::unique_ptr<Maps> maps_; member in unwindstack::ElfCacheTest
137 Elf* elf_one = maps_->Find(0x1000)->GetElf(memory_, ARCH_ARM); in TEST_F()
139 Elf* elf_two = maps_->Find(0x2000)->GetElf(memory_, ARCH_ARM); in TEST_F()
141 Elf* elf_three = maps_->Find(0x4000)->GetElf(memory_, ARCH_ARM); in TEST_F()
145 EXPECT_EQ(maps_->Find(0x5000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
146 EXPECT_EQ(0U, maps_->Find(0x5000)->elf_start_offset()); in TEST_F()
147 EXPECT_EQ(0x1000U, maps_->Find(0x5000)->elf_offset()); in TEST_F()
[all …]
DLocalUpdatableMapsTest.cpp53 maps_.TestSetMapsFile(tf.path); in SetUp()
54 ASSERT_TRUE(maps_.Parse()); in SetUp()
55 ASSERT_EQ(2U, maps_.Total()); in SetUp()
57 auto map_info = maps_.Get(0); in SetUp()
65 map_info = maps_.Get(1); in SetUp()
74 TestUpdatableMaps maps_; member in unwindstack::LocalUpdatableMapsTest
81 maps_.TestSetMapsFile(tf.path); in TEST_F()
82 ASSERT_TRUE(maps_.Reparse()); in TEST_F()
83 ASSERT_EQ(2U, maps_.Total()); in TEST_F()
85 auto map_info = maps_.Get(0); in TEST_F()
[all …]
DJitDebugTest.cpp55 maps_.reset( in Init()
66 ASSERT_TRUE(maps_->Parse()); in Init()
68 MapInfo* map_info = maps_->Get(3).get(); in Init()
72 map_info = maps_->Get(5).get(); in Init()
76 map_info = maps_->Get(7).get(); in Init()
188 std::unique_ptr<BufferMaps> maps_; member in unwindstack::JitDebugTest
257 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
262 maps_.reset(new BufferMaps("")); in TEST_F()
263 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
270 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F()
[all …]
DDexFilesTest.cpp58 maps_.reset( in Init()
72 ASSERT_TRUE(maps_->Parse()); in Init()
75 MapInfo* map_info = maps_->Get(kMapGlobalNonReadable).get(); in Init()
80 map_info = maps_->Get(kMapGlobalSetToZero).get(); in Init()
85 map_info = maps_->Get(kMapGlobal).get(); in Init()
90 map_info = maps_->Get(kMapGlobalAfterEmpty).get(); in Init()
122 std::unique_ptr<BufferMaps> maps_; member in unwindstack::DexFilesTest
182 dex_files_->GetFunctionName(maps_.get(), 0, &method_name, &method_offset); in TEST_F()
195 dex_files_->GetFunctionName(maps_.get(), 0x300100, &method_name, &method_offset); in TEST_F()
210 dex_files_->GetFunctionName(maps_.get(), 0x301102, &method_name, &method_offset); in TEST_F()
[all …]
DGlobalTest.cpp58 maps_.reset( in SetUp()
73 ASSERT_TRUE(maps_->Parse()); in SetUp()
74 ASSERT_EQ(11U, maps_->Total()); in SetUp()
88 auto map_info = maps_->Find(0x10000); in SetUp()
97 map_info = maps_->Find(0x20000); in SetUp()
106 map_info = maps_->Find(0x30000); in SetUp()
115 map_info = maps_->Find(0x40000); in SetUp()
122 std::unique_ptr<BufferMaps> maps_; member in unwindstack::GlobalTest
132 global_->TestFindAndReadVariable(maps_.get(), global_var.c_str()); in TEST_F()
143 global_->TestFindAndReadVariable(maps_.get(), global_var.c_str()); in TEST_F()
[all …]
DUnwinderTest.cpp51 maps_->Add(start, end, offset, flags, name); in AddMapInfo()
52 MapInfo* map_info = maps_->Find(start).get(); in AddMapInfo()
60 maps_.reset(new Maps); in SetUpTestSuite()
185 static std::unique_ptr<Maps> maps_; member in unwindstack::UnwinderTest
191 std::unique_ptr<Maps> UnwinderTest::maps_; member in unwindstack::UnwinderTest
207 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
277 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
344 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
376 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
408 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
[all …]
/system/unwinding/libunwindstack/
DMaps.cpp43 if (maps_.empty()) { in Find()
47 size_t last = maps_.size(); in Find()
50 const auto& cur = maps_[index]; in Find()
72 maps_.emplace_back( in Parse()
74 prev_map = maps_.back(); in Parse()
80 std::shared_ptr<MapInfo> prev_map(maps_.empty() ? nullptr : maps_.back()); in Add()
82 maps_.emplace_back(std::move(map_info)); in Add()
87 std::shared_ptr<MapInfo> prev_map(maps_.empty() ? nullptr : maps_.back()); in Add()
90 maps_.emplace_back(std::move(map_info)); in Add()
94 if (maps_.empty()) { in Sort()
[all …]
DAndroidUnwinder.cpp105 maps_.reset(new LocalUpdatableMaps); in InternalInitialize()
106 if (!maps_->Parse()) { in InternalInitialize()
119 return Unwinder::BuildFrameFromPcOnly(pc, arch_, maps_.get(), jit_debug_.get(), process_memory_, in BuildFrameFromPcOnly()
168 Unwinder unwinder(data.max_frames.value_or(max_frames_), maps_.get(), regs.get(), in Unwind()
191 ThreadUnwinder unwinder(data.max_frames.value_or(max_frames_), maps_.get(), process_memory_); in InternalUnwind()
214 maps_.reset(new RemoteMaps(pid_)); in InternalInitialize()
215 if (!maps_->Parse()) { in InternalInitialize()
DUnwinder.cpp63 frame->map_info = maps_->Find(dex_pc); in FillInDexFrame()
84 dex_files_->GetFunctionName(maps_, dex_pc, &frame->function_name, &frame->function_offset); in FillInDexFrame()
132 if (maps_->Find(regs_->pc()) == nullptr) { in Unwind()
142 std::shared_ptr<MapInfo> map_info = maps_->Find(regs_->pc()); in Unwind()
183 Elf* jit_elf = jit_debug_->Find(maps_, adjusted_jit_pc); in Unwind()
224 auto sp_info = maps_->Find(regs_->sp()); in Unwind()
269 if (frames_.size() > 2 || (frames_.size() > 0 && maps_->Find(frames_[0].pc) != nullptr)) { in Unwind()
366 if (maps_ == nullptr) { in Init()
377 maps_ = maps_ptr_.get(); in Init()
462 return BuildFrameFromPcOnly(pc, arch_, maps_, jit_debug_, process_memory_, resolve_names_); in BuildFrameFromPcOnly()
DThreadUnwinder.cpp80 maps_ = unwinder->maps_; in ThreadUnwinder()
DMemoryRange.h60 std::map<uint64_t, std::unique_ptr<MemoryRange>> maps_;
DMemory.cpp393 auto entry = maps_.try_emplace(last_addr, memory); in Insert()
402 auto entry = maps_.upper_bound(addr); in Read()
403 if (entry != maps_.end()) { in Read()
/system/unwinding/libunwindstack/include/unwindstack/
DMaps.h65 iterator begin() { return maps_.begin(); } in begin()
66 iterator end() { return maps_.end(); } in end()
69 const_iterator begin() const { return maps_.begin(); } in begin()
70 const_iterator end() const { return maps_.end(); } in end()
72 size_t Total() { return maps_.size(); } in Total()
75 if (index >= maps_.size()) return nullptr; in Get()
76 return maps_[index]; in Get()
80 std::vector<std::shared_ptr<MapInfo>> maps_;
DUnwinder.h58 maps_(maps), in Unwinder()
63 : max_frames_(max_frames), maps_(maps), process_memory_(process_memory) {} in Unwinder()
96 Maps* GetMaps() { return maps_; } in GetMaps()
123 Unwinder(size_t max_frames, Maps* maps = nullptr) : max_frames_(max_frames), maps_(maps) {} in max_frames_()
125 : max_frames_(max_frames), maps_(maps), arch_(arch) {} in max_frames_()
127 : max_frames_(max_frames), maps_(maps), process_memory_(process_memory), arch_(arch) {} in Unwinder()
140 Maps* maps_ = nullptr; variable
DAndroidUnwinder.h76 unwindstack::Maps* GetMaps() { return maps_.get(); } in GetMaps()
107 std::shared_ptr<Maps> maps_; variable
/system/memory/libmeminfo/
Dprocmeminfo.cpp173 if (maps_.empty() && !ReadMaps(get_wss_)) { in Maps()
177 return maps_; in Maps()
181 if (maps_.empty() && !ReadMaps(get_wss_, true)) { in MapsWithPageIdle()
185 return maps_; in MapsWithPageIdle()
189 if (maps_.empty() && !ReadMaps(get_wss_, false, false)) { in MapsWithoutUsageStats()
193 return maps_; in MapsWithoutUsageStats()
207 if (!maps_.empty()) { in Smaps()
208 return maps_; in Smaps()
216 return maps_; in Smaps()
223 maps_.emplace_back(vma); in Smaps()
[all …]
/system/extras/simpleperf/
DOfflineUnwinder.cpp231 maps_.emplace_back(CreateMapInfo(entry)); in UpdateMaps()
237 maps_[i++] = nullptr; in UpdateMaps()
243 maps_[i++] = nullptr; in UpdateMaps()
248 maps_.resize(std::remove(maps_.begin(), maps_.end(), std::shared_ptr<unwindstack::MapInfo>()) - in UpdateMaps()
249 maps_.begin()); in UpdateMaps()
/system/memory/libmeminfo/include/meminfo/
Dprocmeminfo.h144 std::vector<Vma> maps_; variable