Home
last modified time | relevance | path

Searched refs:MapInfo (Results 1 – 25 of 41) sorted by relevance

12

/system/core/libunwindstack/include/unwindstack/
DMapInfo.h33 struct MapInfo { struct
34 MapInfo(MapInfo* prev_map, MapInfo* prev_real_map, uint64_t start, uint64_t end, uint64_t offset, in MapInfo() argument
45 MapInfo(MapInfo* prev_map, MapInfo* prev_real_map, uint64_t start, uint64_t end, uint64_t offset, in MapInfo() function
56 ~MapInfo();
75 MapInfo* prev_map = nullptr; argument
83 MapInfo* prev_real_map = nullptr; argument
113 MapInfo(const MapInfo&) = delete; argument
114 void operator=(const MapInfo&) = delete; argument
DMaps.h52 MapInfo* Find(uint64_t pc);
63 typedef std::vector<std::unique_ptr<MapInfo>>::iterator iterator;
67 typedef std::vector<std::unique_ptr<MapInfo>>::const_iterator const_iterator;
73 MapInfo* Get(size_t index) { in Get()
79 std::vector<std::unique_ptr<MapInfo>> maps_;
109 std::vector<std::unique_ptr<MapInfo>> saved_maps_;
DLocalUnwinder.h36 struct MapInfo;
39 LocalFrameData(MapInfo* map_info, uint64_t pc, uint64_t rel_pc, const std::string& function_name, in LocalFrameData()
47 MapInfo* map_info;
71 MapInfo* GetMapInfo(uint64_t pc);
DElf.h38 struct MapInfo;
68 uint64_t GetRelPc(uint64_t pc, const MapInfo* map_info);
113 static void CacheAdd(MapInfo* info);
114 static bool CacheGet(MapInfo* info);
115 static bool CacheAfterCreateMemory(MapInfo* info);
DDexFiles.h36 struct MapInfo;
45 DexFile* GetDexFile(uint64_t dex_file_offset, MapInfo* info);
47 void GetMethodInformation(Maps* maps, MapInfo* info, uint64_t dex_pc, std::string* method_name,
/system/core/libunwindstack/
DMaps.cpp42 MapInfo* Maps::Find(uint64_t pc) { in Find()
63 MapInfo* prev_map = nullptr; in Parse()
64 MapInfo* prev_real_map = nullptr; in Parse()
72 maps_.emplace_back(new MapInfo(prev_map, prev_real_map, start, end, pgoff, flags, name)); in Parse()
82 MapInfo* prev_map = maps_.empty() ? nullptr : maps_.back().get(); in Add()
83 MapInfo* prev_real_map = prev_map; in Add()
89 std::make_unique<MapInfo>(prev_map, prev_real_map, start, end, offset, flags, name); in Add()
96 [](const std::unique_ptr<MapInfo>& a, const std::unique_ptr<MapInfo>& b) { in Sort()
100 MapInfo* prev_map = nullptr; in Sort()
101 MapInfo* prev_real_map = nullptr; in Sort()
[all …]
DMapInfo.cpp37 bool MapInfo::InitFileMemoryFromPreviousReadOnlyMap(MemoryFileAtOffset* memory) { in InitFileMemoryFromPreviousReadOnlyMap()
63 Memory* MapInfo::GetFileMemory() { in GetFileMemory()
136 Memory* MapInfo::CreateMemory(const std::shared_ptr<Memory>& process_memory) { in CreateMemory()
195 Elf* MapInfo::GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch) { in GetElf()
253 bool MapInfo::GetFunctionName(uint64_t addr, std::string* name, uint64_t* func_offset) { in GetFunctionName()
266 uint64_t MapInfo::GetLoadBias(const std::shared_ptr<Memory>& process_memory) { in GetLoadBias()
295 MapInfo::~MapInfo() { in ~MapInfo()
302 std::string MapInfo::GetBuildID() { in GetBuildID()
339 std::string MapInfo::GetPrintableBuildID() { in GetPrintableBuildID()
DDexFiles.cpp143 DexFile* DexFiles::GetDexFile(uint64_t dex_file_offset, MapInfo* info) { in GetDexFile()
157 DexFile* DexFiles::GetDexFile(uint64_t, MapInfo*) { in GetDexFile() argument
175 void DexFiles::GetMethodInformation(Maps* maps, MapInfo* info, uint64_t dex_pc, in GetMethodInformation()
197 void DexFiles::GetMethodInformation(Maps*, MapInfo*, uint64_t, std::string*, uint64_t*) {} in GetMethodInformation() argument
DLocalUnwinder.cpp70 MapInfo* LocalUnwinder::GetMapInfo(uint64_t pc) { in GetMapInfo()
72 MapInfo* map_info = maps_->Find(pc); in GetMapInfo()
99 MapInfo* map_info = GetMapInfo(cur_pc); in Unwind()
DUnwinder.cpp61 MapInfo* info = maps_->Find(dex_pc); in FillInDexFrame()
95 FrameData* Unwinder::FillInFrame(MapInfo* map_info, Elf* elf, uint64_t rel_pc, in FillInFrame()
157 MapInfo* map_info = maps_->Find(regs_->pc()); in Unwind()
237 MapInfo* sp_info = maps_->Find(regs_->sp()); in Unwind()
346 MapInfo* map_info = maps_->Find(frame.map_start); in FormatFrame()
402 MapInfo* map_info = maps->Find(pc); in BuildFrameFromPcOnly()
DElf.cpp104 uint64_t Elf::GetRelPc(uint64_t pc, const MapInfo* map_info) { in GetRelPc()
349 void Elf::CacheAdd(MapInfo* info) { in CacheAdd()
369 bool Elf::CacheAfterCreateMemory(MapInfo* info) { in CacheAfterCreateMemory()
387 bool Elf::CacheGet(MapInfo* info) { in CacheGet()
/system/core/libunwindstack/tests/
DElfCacheTest.cpp81 MapInfo info1(nullptr, nullptr, start, end, 0, 0x5, tf.path); in VerifySameMap()
82 MapInfo info2(nullptr, nullptr, start, end, 0, 0x5, tf.path); in VerifySameMap()
122 MapInfo info0_1(nullptr, nullptr, start, end, 0, 0x5, tf.path); in VerifyWithinSameMap()
123 MapInfo info0_2(nullptr, nullptr, start, end, 0, 0x5, tf.path); in VerifyWithinSameMap()
125 MapInfo info100_1(nullptr, nullptr, start, end, 0x100, 0x5, tf.path); in VerifyWithinSameMap()
126 MapInfo info100_2(nullptr, nullptr, start, end, 0x100, 0x5, tf.path); in VerifyWithinSameMap()
128 MapInfo info200_1(nullptr, nullptr, start, end, 0x200, 0x5, tf.path); in VerifyWithinSameMap()
129 MapInfo info200_2(nullptr, nullptr, start, end, 0x200, 0x5, tf.path); in VerifyWithinSameMap()
131 MapInfo info300_1(nullptr, nullptr, start, end, 0x300, 0x5, tf.path); in VerifyWithinSameMap()
132 MapInfo info300_2(nullptr, nullptr, start, end, 0x300, 0x5, tf.path); in VerifyWithinSameMap()
[all …]
DMapInfoTest.cpp29 MapInfo prev_map(nullptr, nullptr, 0, 0, 0, 0, ""); in TEST()
30 MapInfo map_info(&prev_map, &prev_map, 1, 2, 3, 4, "map"); in TEST()
45 MapInfo prev_map(nullptr, nullptr, 0, 0, 0, 0, ""); in TEST()
46 MapInfo map_info(&prev_map, &prev_map, 1, 2, 3, 4, name); in TEST()
65 MapInfo map_info(nullptr, nullptr, 1, 2, 3, 4, ""); in TEST()
DMapInfoGetElfTest.cpp71 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
80 MapInfo info(nullptr, nullptr, 0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F()
100 MapInfo info(nullptr, nullptr, 0x8000, 0x9000, 0, PROT_READ, ""); in TEST_F()
114 MapInfo info(nullptr, nullptr, 0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F()
126 MapInfo info(nullptr, nullptr, 0x2000, 0x3000, 0, PROT_READ, ""); in TEST_F()
142 MapInfo info(nullptr, nullptr, 0x5000, 0x8000, 0, PROT_READ, ""); in TEST_F()
158 MapInfo info(nullptr, nullptr, 0x1000, 0x1000, 0, PROT_READ, elf_.path); in TEST_F()
185 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0x100, PROT_READ, elf_.path); in TEST_F()
214 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0x2000, PROT_READ, elf_.path); in TEST_F()
244 MapInfo info(nullptr, nullptr, 0x5000, 0x6000, 0x1000, PROT_READ, elf_.path); in TEST_F()
[all …]
DDexFilesTest.cpp39 void CreateFakeElf(MapInfo* map_info, uint64_t global_offset, uint64_t data_offset, in CreateFakeElf()
75 MapInfo* map_info = maps_->Get(kMapGlobalNonReadable); in Init()
162 MapInfo* info = maps_->Get(kMapDexFileEntries); in TEST_F()
172 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
188 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
202 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
219 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
234 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
254 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
270 MapInfo* map_info = maps_->Get(kMapGlobal); in TEST_F()
[all …]
DDexFileTest.cpp154 MapInfo info(nullptr, nullptr, 0, 0x10000, 0, 0x5, tf.path); in TEST()
167 MapInfo info(nullptr, nullptr, 0x100, 0x10000, 0, 0x5, tf.path); in TEST()
180 MapInfo info(nullptr, nullptr, 0x100, 0x10000, 0x200, 0x5, tf.path); in TEST()
187 MapInfo info(nullptr, nullptr, 0x100, 0x10000, 0x200, 0x5, ""); in TEST()
194 MapInfo info(nullptr, nullptr, 0x100, 0x10000, 0x200, 0x5, "/does/not/exist"); in TEST()
207 MapInfo info(nullptr, nullptr, 0x4000, 0x10000, 0x200, 0x5, "/does/not/exist"); in TEST()
220 MapInfo info(nullptr, nullptr, 0x100, sizeof(kDexData) - 2, 0x200, 0x5, "/does/not/exist"); in TEST()
240 MapInfo info(nullptr, nullptr, start, start + 0x1000, 0x200, 0x5, "/does/not/exist"); in TEST()
249 MapInfo info(nullptr, nullptr, start, start + sizeof(kDexData) - 2, 0x200, 0x5, in TEST()
257 MapInfo info(nullptr, nullptr, 0x100, 0x10000, 0x200, 0x5, ""); in TEST()
[all …]
DMapsTest.cpp28 static void VerifyLine(std::string line, MapInfo* info) { in VerifyLine()
35 MapInfo* element = maps.Get(0); in VerifyLine()
54 MapInfo* info = maps.Get(0); in TEST()
74 MapInfo* info = maps2.Get(0); in TEST()
85 MapInfo info(nullptr, nullptr, 0, 0, 0, 0, ""); in TEST()
158 MapInfo info(nullptr, nullptr, 0, 0, 0, 0, ""); in TEST()
185 MapInfo* info = maps.Get(0); in TEST()
237 MapInfo* info = maps.Get(0); in TEST()
272 MapInfo* info = maps.Get(0); in TEST()
337 MapInfo* info = maps.Get(0); in TEST()
[all …]
DMapInfoCreateMemoryTest.cpp92 MapInfo info(nullptr, nullptr, 0x100, 0x100, 0, 0, elf_.path); in TEST_F()
111 MapInfo info(nullptr, nullptr, 0x100, 0x200, 0x100, 0, elf_.path); in TEST_F()
132 MapInfo prev_info(nullptr, nullptr, 0, 0x100, 0x10, 0, ""); in TEST_F()
181 MapInfo info(nullptr, nullptr, 0x100, 0x200, 0x1000, 0, elf_at_1000_.path); in TEST_F()
206 MapInfo info(nullptr, nullptr, 0x5000, 0x6000, 0x1000, 0, elf32_at_map_.path); in TEST_F()
224 MapInfo info(nullptr, nullptr, 0x7000, 0x8000, 0x2000, 0, elf64_at_map_.path); in TEST_F()
247 MapInfo info(nullptr, nullptr, start, start + buffer.size(), 0, 0x8000, "/dev/something"); in TEST_F()
254 MapInfo info(nullptr, nullptr, 0x2000, 0x3000, 0, PROT_READ, ""); in TEST_F()
297 MapInfo* map_info = maps.Find(0x3000); in TEST_F()
344 MapInfo* map_info = maps.Find(0x4000); in TEST_F()
[all …]
DLocalUpdatableMapsTest.cpp39 const std::vector<std::unique_ptr<MapInfo>>& TestGetSavedMaps() { return saved_maps_; } in TestGetSavedMaps()
59 MapInfo* map_info = maps_.Get(0); in SetUp()
88 MapInfo* map_info = maps_.Get(0); in TEST_F()
116 MapInfo* map_info = maps_.Get(0); in TEST_F()
154 MapInfo* map_info = maps_.Get(0); in TEST_F()
195 MapInfo* map_info = maps_.Get(0); in TEST_F()
239 MapInfo* map_info = maps_.Get(0); in TEST_F()
286 MapInfo* map_info = maps_.Get(2); in TEST_F()
309 MapInfo* map_info = maps_.Get(2); in TEST_F()
DMapInfoGetBuildIDTest.cpp54 new MapInfo(nullptr, nullptr, 0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, tf_->path)); in SetUp()
63 std::unique_ptr<MapInfo> map_info_;
68 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
198 MapInfo map_info(nullptr, nullptr, 0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, in TEST_F()
DMapInfoGetLoadBiasTest.cpp53 map_info_.reset(new MapInfo(nullptr, nullptr, 0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, "")); in SetUp()
62 std::unique_ptr<MapInfo> map_info_;
66 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
/system/core/libunwindstack/benchmarks/
DElfBenchmark.cpp82 unwindstack::MapInfo** build_id_map_info) { in InitializeBuildId()
104 unwindstack::MapInfo* build_id_map_info; in BM_elf_get_build_id_from_object()
128 unwindstack::MapInfo* build_id_map_info; in BM_elf_get_build_id_from_file()
/system/core/libbacktrace/
DUnwindStackMap.cpp81 unwindstack::MapInfo* map_info = stack_maps_->Find(addr); in FillIn()
93 unwindstack::MapInfo* map_info = stack_maps_->Get(index); in GetLoadBias()
105 unwindstack::MapInfo* map_info = maps->Find(pc); in GetFunctionName()
/system/core/libprocinfo/include/procinfo/
Dprocess_map.h160 struct MapInfo { struct
168 MapInfo(uint64_t start, uint64_t end, uint16_t flags, uint64_t pgoff, ino_t inode, in MapInfo() argument
173 inline bool ReadProcessMaps(pid_t pid, std::vector<MapInfo>* maps) { in ReadProcessMaps()
/system/extras/simpleperf/
DOfflineUnwinder_test.cpp31 unwindstack::MapInfo* prev_real_map = nullptr; in CheckUnwindMaps()
33 unwindstack::MapInfo* info = maps.Get(i); in CheckUnwindMaps()

12