Home
last modified time | relevance | path

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

12

/system/core/libunwindstack/include/unwindstack/
DMapInfo.h32 struct MapInfo { struct
33 MapInfo(MapInfo* map_info, uint64_t start, uint64_t end, uint64_t offset, uint64_t flags, in MapInfo() argument
43 MapInfo(MapInfo* map_info, uint64_t start, uint64_t end, uint64_t offset, uint64_t flags, in MapInfo() function
53 ~MapInfo();
69 MapInfo* prev_map = nullptr; argument
97 MapInfo(const MapInfo&) = delete; argument
98 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,
DGlobal.h35 struct MapInfo;
48 uint64_t GetVariableOffset(MapInfo* info, const std::string& variable);
/system/core/libunwindstack/tests/
DElfCacheTest.cpp81 MapInfo info1(nullptr, start, end, 0, 0x5, tf.path); in VerifySameMap()
82 MapInfo info2(nullptr, start, end, 0, 0x5, tf.path); in VerifySameMap()
122 MapInfo info0_1(nullptr, start, end, 0, 0x5, tf.path); in VerifyWithinSameMap()
123 MapInfo info0_2(nullptr, start, end, 0, 0x5, tf.path); in VerifyWithinSameMap()
125 MapInfo info100_1(nullptr, start, end, 0x100, 0x5, tf.path); in VerifyWithinSameMap()
126 MapInfo info100_2(nullptr, start, end, 0x100, 0x5, tf.path); in VerifyWithinSameMap()
128 MapInfo info200_1(nullptr, start, end, 0x200, 0x5, tf.path); in VerifyWithinSameMap()
129 MapInfo info200_2(nullptr, start, end, 0x200, 0x5, tf.path); in VerifyWithinSameMap()
131 MapInfo info300_1(nullptr, start, end, 0x300, 0x5, tf.path); in VerifyWithinSameMap()
132 MapInfo info300_2(nullptr, start, end, 0x300, 0x5, tf.path); in VerifyWithinSameMap()
[all …]
DMapInfoTest.cpp29 MapInfo prev_map(nullptr, 0, 0, 0, 0, ""); in TEST()
30 MapInfo map_info(&prev_map, 1, 2, 3, 4, "map"); in TEST()
45 MapInfo prev_map(nullptr, 0, 0, 0, 0, ""); in TEST()
46 MapInfo map_info(&prev_map, 1, 2, 3, 4, name); in TEST()
65 MapInfo map_info(nullptr, 1, 2, 3, 4, ""); in TEST()
DDexFilesTest.cpp39 void CreateFakeElf(MapInfo* map_info) { in CreateFakeElf()
67 MapInfo* map_info = maps_->Get(kMapGlobalNonReadable); in Init()
147 MapInfo* info = maps_->Get(kMapDexFileEntries); in TEST_F()
157 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
173 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
187 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
204 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
219 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
239 MapInfo* info = maps_->Get(kMapDexFiles); in TEST_F()
255 MapInfo* map_info = maps_->Get(kMapGlobal); in TEST_F()
[all …]
DMapInfoGetElfTest.cpp71 MapInfo info(nullptr, 0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
80 MapInfo info(nullptr, 0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F()
100 MapInfo info(nullptr, 0x8000, 0x9000, 0, PROT_READ, ""); in TEST_F()
114 MapInfo info(nullptr, 0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F()
126 MapInfo info(nullptr, 0x2000, 0x3000, 0, PROT_READ, ""); in TEST_F()
142 MapInfo info(nullptr, 0x5000, 0x8000, 0, PROT_READ, ""); in TEST_F()
158 MapInfo info(nullptr, 0x1000, 0x1000, 0, PROT_READ, elf_.path); in TEST_F()
185 MapInfo info(nullptr, 0x1000, 0x2000, 0x100, PROT_READ, elf_.path); in TEST_F()
214 MapInfo info(nullptr, 0x1000, 0x2000, 0x2000, PROT_READ, elf_.path); in TEST_F()
244 MapInfo info(nullptr, 0x5000, 0x6000, 0x1000, PROT_READ, elf_.path); in TEST_F()
[all …]
DDexFileTest.cpp108 MapInfo info(nullptr, 0, 0x10000, 0, 0x5, tf.path); in TEST()
121 MapInfo info(nullptr, 0x100, 0x10000, 0, 0x5, tf.path); in TEST()
134 MapInfo info(nullptr, 0x100, 0x10000, 0x200, 0x5, tf.path); in TEST()
141 MapInfo info(nullptr, 0x100, 0x10000, 0x200, 0x5, ""); in TEST()
148 MapInfo info(nullptr, 0x100, 0x10000, 0x200, 0x5, "/does/not/exist"); in TEST()
161 MapInfo info(nullptr, 0x4000, 0x10000, 0x200, 0x5, "/does/not/exist"); in TEST()
174 MapInfo info(nullptr, 0x100, 0x10000, 0x200, 0x5, ""); in TEST()
192 MapInfo info(nullptr, 0x100, 0x10000, 0x200, 0x5, ""); in TEST()
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, 0, 0, 0, 0, ""); in TEST()
158 MapInfo info(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.cpp98 MapInfo info(nullptr, 0x100, 0x100, 0, 0, elf_.path); in TEST_F()
117 MapInfo info(nullptr, 0x100, 0x200, 0x100, 0, elf_.path); in TEST_F()
138 MapInfo prev_info(nullptr, 0, 0x100, 0x10, 0, ""); in TEST_F()
186 MapInfo info(nullptr, 0x100, 0x200, 0x1000, 0, elf_at_1000_.path); in TEST_F()
211 MapInfo info(nullptr, 0x5000, 0x6000, 0x1000, 0, elf32_at_map_.path); in TEST_F()
229 MapInfo info(nullptr, 0x7000, 0x8000, 0x2000, 0, elf64_at_map_.path); in TEST_F()
252 MapInfo info(nullptr, start, start + buffer.size(), 0, 0x8000, "/dev/something"); in TEST_F()
259 MapInfo info(nullptr, 0x2000, 0x3000, 0, PROT_READ, ""); in TEST_F()
302 MapInfo* map_info = maps.Find(0x3000); in TEST_F()
349 MapInfo* map_info = maps.Find(0x4000); in TEST_F()
[all …]
DMapInfoGetLoadBiasTest.cpp53 map_info_.reset(new MapInfo(nullptr, 0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, "")); in SetUp()
62 std::unique_ptr<MapInfo> map_info_;
66 MapInfo info(nullptr, 0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
DMapInfoGetBuildIDTest.cpp53 map_info_.reset(new MapInfo(nullptr, 0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, tf_->path)); in SetUp()
62 std::unique_ptr<MapInfo> map_info_;
67 MapInfo info(nullptr, 0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
/system/core/libunwindstack/
DMapInfo.cpp34 bool MapInfo::InitFileMemoryFromPreviousReadOnlyMap(MemoryFileAtOffset* memory) { in InitFileMemoryFromPreviousReadOnlyMap()
60 Memory* MapInfo::GetFileMemory() { in GetFileMemory()
133 Memory* MapInfo::CreateMemory(const std::shared_ptr<Memory>& process_memory) { in CreateMemory()
192 Elf* MapInfo::GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch) { in GetElf()
248 bool MapInfo::GetFunctionName(uint64_t addr, std::string* name, uint64_t* func_offset) { in GetFunctionName()
261 uint64_t MapInfo::GetLoadBias(const std::shared_ptr<Memory>& process_memory) { in GetLoadBias()
290 MapInfo::~MapInfo() { in ~MapInfo()
297 std::string MapInfo::GetBuildID() { in GetBuildID()
334 std::string MapInfo::GetPrintableBuildID() { in GetPrintableBuildID()
DMaps.cpp42 MapInfo* Maps::Find(uint64_t pc) { in Find()
71 new MapInfo(maps_.empty() ? nullptr : maps_.back().get(), start, end, pgoff, in Parse()
79 std::make_unique<MapInfo>(maps_.empty() ? nullptr : maps_.back().get(), start, end, offset, in Add()
87 [](const std::unique_ptr<MapInfo>& a, const std::unique_ptr<MapInfo>& b) { in Sort()
91 MapInfo* prev_map = nullptr; in Sort()
108 new MapInfo(maps_.empty() ? nullptr : maps_.back().get(), start, end, pgoff, in Parse()
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()
DGlobal.cpp42 uint64_t Global::GetVariableOffset(MapInfo* info, const std::string& variable) { in GetVariableOffset()
79 MapInfo* map_start = nullptr; in FindAndReadVariable()
DUnwinder.cpp62 MapInfo* info = maps_->Find(dex_pc); in FillInDexFrame()
93 FrameData* Unwinder::FillInFrame(MapInfo* map_info, Elf* elf, uint64_t rel_pc, in FillInFrame()
155 MapInfo* map_info = maps_->Find(regs_->pc()); in Unwind()
235 MapInfo* sp_info = maps_->Find(regs_->sp()); in Unwind()
337 MapInfo* map_info = maps_->Find(frame.map_start); in FormatFrame()
DElf.cpp104 uint64_t Elf::GetRelPc(uint64_t pc, const MapInfo* map_info) { in GetRelPc()
340 void Elf::CacheAdd(MapInfo* info) { in CacheAdd()
360 bool Elf::CacheAfterCreateMemory(MapInfo* info) { in CacheAfterCreateMemory()
378 bool Elf::CacheGet(MapInfo* info) { in CacheGet()
/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/core/libunwindstack/benchmarks/
Dunwind_benchmarks.cpp87 unwindstack::MapInfo** build_id_map_info) { in Initialize()
109 unwindstack::MapInfo* build_id_map_info; in BM_get_build_id_from_elf()
131 unwindstack::MapInfo* build_id_map_info; in BM_get_build_id_from_file()
/system/core/libprocinfo/
Dprocess_map_test.cpp27 std::vector<android::procinfo::MapInfo> maps; in TEST()
56 std::vector<android::procinfo::MapInfo> maps; in TEST()
/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()

12