Home
last modified time | relevance | path

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

12

/system/unwinding/libunwindstack/include/unwindstack/
DMapInfo.h38 class MapInfo {
40 MapInfo(std::shared_ptr<MapInfo>& prev_map, uint64_t start, uint64_t end, uint64_t offset, in MapInfo() function
49 MapInfo(uint64_t start, uint64_t end, uint64_t offset, uint64_t flags, SharedString name) in MapInfo() function
57 static inline std::shared_ptr<MapInfo> Create(std::shared_ptr<MapInfo>& prev_map, in Create()
60 auto map_info = std::make_shared<MapInfo>(prev_map, start, end, offset, flags, name); in Create()
66 static inline std::shared_ptr<MapInfo> Create(uint64_t start, uint64_t end, uint64_t offset, in Create()
68 return std::make_shared<MapInfo>(start, end, offset, flags, name); in Create()
71 ~MapInfo();
118 std::shared_ptr<MapInfo> GetPrevRealMap();
125 std::shared_ptr<MapInfo> GetNextRealMap();
[all …]
DMaps.h52 virtual std::shared_ptr<MapInfo> Find(uint64_t pc);
64 typedef std::vector<std::shared_ptr<MapInfo>>::iterator iterator;
68 typedef std::vector<std::shared_ptr<MapInfo>>::const_iterator const_iterator;
74 std::shared_ptr<MapInfo> Get(size_t index) { in Get()
80 std::vector<std::shared_ptr<MapInfo>> maps_;
105 std::shared_ptr<MapInfo> Find(uint64_t pc) override;
DElf.h43 class MapInfo; variable
63 uint64_t GetRelPc(uint64_t pc, MapInfo* map_info);
118 static void CacheAdd(MapInfo* info);
119 static bool CacheGet(MapInfo* info);
DGlobal.h34 class MapInfo; variable
DUnwinder.h51 std::shared_ptr<MapInfo> map_info;
136 FrameData* FillInFrame(std::shared_ptr<MapInfo>& map_info, Elf* elf, uint64_t rel_pc,
/system/unwinding/libunwindstack/
DMaps.cpp42 std::shared_ptr<MapInfo> Maps::Find(uint64_t pc) { in Find()
63 std::shared_ptr<MapInfo> prev_map; in Parse()
65 [&](const android::procinfo::MapInfo& mapinfo) { in Parse()
73 MapInfo::Create(prev_map, mapinfo.start, mapinfo.end, mapinfo.pgoff, flags, mapinfo.name)); in Parse()
80 std::shared_ptr<MapInfo> prev_map(maps_.empty() ? nullptr : maps_.back()); in Add()
81 auto map_info = MapInfo::Create(prev_map, start, end, offset, flags, name); in Add()
87 std::shared_ptr<MapInfo> prev_map(maps_.empty() ? nullptr : maps_.back()); in Add()
88 auto map_info = MapInfo::Create(prev_map, start, end, offset, flags, name); in Add()
99 [](const std::shared_ptr<MapInfo>& a, const std::shared_ptr<MapInfo>& b) { in Sort()
104 std::shared_ptr<MapInfo> prev_map; in Sort()
[all …]
DMapInfo.cpp37 bool MapInfo::ElfFileNotReadable() { in ElfFileNotReadable()
43 std::shared_ptr<MapInfo> MapInfo::GetPrevRealMap() { in GetPrevRealMap()
59 std::shared_ptr<MapInfo> MapInfo::GetNextRealMap() { in GetNextRealMap()
75 bool MapInfo::InitFileMemoryFromPreviousReadOnlyMap(MemoryFileAtOffset* memory) { in InitFileMemoryFromPreviousReadOnlyMap()
103 Memory* MapInfo::GetFileMemory() { in GetFileMemory()
178 Memory* MapInfo::CreateMemory(const std::shared_ptr<Memory>& process_memory) { in CreateMemory()
272 Elf* MapInfo::GetElf(const std::shared_ptr<Memory>& process_memory, ArchEnum expected_arch) { in GetElf()
327 bool MapInfo::GetFunctionName(uint64_t addr, SharedString* name, uint64_t* func_offset) { in GetFunctionName()
340 uint64_t MapInfo::GetLoadBias() { in GetLoadBias()
361 uint64_t MapInfo::GetLoadBias(const std::shared_ptr<Memory>& process_memory) { in GetLoadBias()
[all …]
DDexFile.h34 class MapInfo; variable
51 MapInfo* info);
61 static std::shared_ptr<DexFile> CreateFromDisk(uint64_t addr, uint64_t size, MapInfo* map);
DDexFile.cpp48 std::shared_ptr<DexFile> DexFile::CreateFromDisk(uint64_t addr, uint64_t size, MapInfo* map) { in CreateFromDisk()
85 MapInfo* info) { in Create()
DElf.cpp109 uint64_t Elf::GetRelPc(uint64_t pc, MapInfo* map_info) { in GetRelPc()
376 void Elf::CacheAdd(MapInfo* info) { in CacheAdd()
383 bool Elf::CacheGet(MapInfo* info) { in CacheGet()
DGlobal.cpp80 MapInfo* map_zero = nullptr; in FindAndReadVariable()
DUnwinder.cpp88 FrameData* Unwinder::FillInFrame(std::shared_ptr<MapInfo>& map_info, Elf* /*elf*/, uint64_t rel_pc, in FillInFrame()
142 std::shared_ptr<MapInfo> map_info = maps_->Find(regs_->pc()); in Unwind()
422 std::shared_ptr<MapInfo> map_info = maps->Find(pc); in BuildFrameFromPcOnly()
/system/unwinding/libunwindstack/tests/
DMapInfoTest.cpp32 auto prev_map = MapInfo::Create(0, 0, 0, 0, ""); in TEST()
33 auto map_info = MapInfo::Create(prev_map, 1, 2, 3, 4, "map"); in TEST()
48 auto prev_map = MapInfo::Create(0, 0, 0, 0, ""); in TEST()
49 auto map_info = MapInfo::Create(prev_map, 1, 2, 3, 4, name); in TEST()
63 auto map1 = MapInfo::Create(0, 0x1000, 0, PROT_READ, "fake.so"); in TEST()
64 auto map2 = MapInfo::Create(map1, 0, 0, 0, 0, ""); in TEST()
65 auto map3 = MapInfo::Create(map2, 0x1000, 0x2000, 0x1000, PROT_READ | PROT_EXEC, "fake.so"); in TEST()
132 auto map_info = MapInfo::Create(1, 2, 3, 4, ""); in TEST()
143 auto map_info = MapInfo::Create(0, 0, 0, 0, ""); in TEST()
146 MapInfo::ElfFields* elf_fields[kNumConcurrentThreads]; in TEST()
[all …]
DMapInfoGetElfTest.cpp62 void InitMapInfo(std::vector<std::shared_ptr<MapInfo>>& maps, bool in_memory);
73 auto info = MapInfo::Create(0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
86 auto info = MapInfo::Create(0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F()
105 auto info = MapInfo::Create(0x8000, 0x9000, 0, PROT_READ, ""); in TEST_F()
118 auto info = MapInfo::Create(0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F()
130 auto info = MapInfo::Create(0x2000, 0x3000, 0, PROT_READ, ""); in TEST_F()
145 auto info = MapInfo::Create(0x5000, 0x8000, 0, PROT_READ, ""); in TEST_F()
159 auto info = MapInfo::Create(0x1000, 0x1000, 0, PROT_READ, elf_.path); in TEST_F()
188 auto info = MapInfo::Create(0x1000, 0x2000, 0x100, PROT_READ, elf_.path); in TEST_F()
209 auto info = MapInfo::Create(0x1000, 0x2000, 0x2000, PROT_READ, elf_.path); in TEST_F()
[all …]
DDexFileTest.cpp64 auto info = MapInfo::Create(0, 0x10000, 0, 0x5, tf.path); in TEST()
92 auto info = MapInfo::Create(0, 0x10000, 0, 0x5, tf.path); in TEST()
105 auto info = MapInfo::Create(0x100, 0x10000, 0, 0x5, tf.path); in TEST()
118 auto info = MapInfo::Create(0x100, 0x10000, 0x200, 0x5, tf.path); in TEST()
125 auto info = MapInfo::Create(0x100, 0x10000, 0x200, 0x5, ""); in TEST()
132 auto info = MapInfo::Create(0x100, 0x10000, 0x200, 0x5, "/does/not/exist"); in TEST()
145 auto info = MapInfo::Create(0x4000, 0x10000, 0x200, 0x5, "/does/not/exist"); in TEST()
173 auto info = MapInfo::Create(0x100, 0x10000, 0x200, 0x5, ""); in TEST()
191 auto info = MapInfo::Create(0x100, 0x10000, 0x200, 0x5, ""); in TEST()
210 auto info = MapInfo::Create(0x4000, 0x10000, 0, 0x5, tf.path); in TEST()
DMapInfoGetBuildIDTest.cpp54 map_info_ = MapInfo::Create(0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, tf_->path); in SetUp()
65 std::shared_ptr<MapInfo> map_info_;
70 auto info = MapInfo::Create(0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
200 auto map_info = MapInfo::Create(0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, in TEST_F()
207 MapInfo::Create(0x1000, 0x20000, 0, PROT_READ | PROT_WRITE | MAPS_FLAGS_DEVICE_MAP, in TEST_F()
DMapInfoGetLoadBiasTest.cpp53 map_info_ = MapInfo::Create(0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, ""); in SetUp()
62 std::shared_ptr<MapInfo> map_info_;
66 auto info = MapInfo::Create(0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F()
DMapInfoCreateMemoryTest.cpp92 auto info = MapInfo::Create(0x100, 0x100, 0, 0, elf_.path); in TEST_F()
111 auto info = MapInfo::Create(0x100, 0x200, 0x100, 0, elf_.path); in TEST_F()
132 auto prev_info = MapInfo::Create(0, 0x100, 0x10, 0, ""); in TEST_F()
180 auto info = MapInfo::Create(0x100, 0x200, 0x1000, 0, elf_at_1000_.path); in TEST_F()
205 auto info = MapInfo::Create(0x5000, 0x6000, 0x1000, 0, elf32_at_map_.path); in TEST_F()
223 auto info = MapInfo::Create(0x7000, 0x8000, 0x2000, 0, elf64_at_map_.path); in TEST_F()
246 auto info = MapInfo::Create(start, start + buffer.size(), 0, 0x8000, "/dev/something"); in TEST_F()
253 auto info = MapInfo::Create(0x2000, 0x3000, 0, PROT_READ, ""); in TEST_F()
/system/libprocinfo/include/procinfo/
Dprocess_map.h33 struct MapInfo { struct
42 MapInfo(uint64_t start, uint64_t end, uint16_t flags, uint64_t pgoff, ino_t inode, in MapInfo() argument
52 MapInfo(const MapInfo& params) in MapInfo() function
62 typedef std::function<void(const MapInfo&)> MapInfoCallback;
219 callback(MapInfo(start_addr, end_addr, flags, pgoff, inode, name, shared)); in ReadMapFileContent()
262 inline bool ReadProcessMaps(pid_t pid, std::vector<MapInfo>* maps) { in ReadProcessMaps()
263 return ReadProcessMaps(pid, [&](const MapInfo& mapinfo) { maps->emplace_back(mapinfo); }); in ReadProcessMaps()
/system/libprocinfo/
Dprocess_map_test.cpp32 std::vector<android::procinfo::MapInfo> maps; in TEST()
34 map_file, [&](const android::procinfo::MapInfo& mapinfo) { maps.emplace_back(mapinfo); })); in TEST()
59 std::vector<android::procinfo::MapInfo> maps; in TEST()
61 getpid(), [&](const android::procinfo::MapInfo& mapinfo) { maps.emplace_back(mapinfo); })); in TEST()
206 auto callback = [&](const android::procinfo::MapInfo&) { num_calls++; }; in TEST() argument
225 auto callback = [&](const android::procinfo::MapInfo&) { num_calls++; }; in TEST() argument
245 auto callback = [&](const android::procinfo::MapInfo&) { num_calls++; }; in TEST() argument
270 auto callback = [&](const android::procinfo::MapInfo&) { num_calls++; }; in TEST() argument
Dprocess_map_benchmark.cpp33 std::vector<android::procinfo::MapInfo> maps; in BM_ReadMapFile()
35 map_file, [&](const android::procinfo::MapInfo& mapinfo) { maps.emplace_back(mapinfo); }); in BM_ReadMapFile()
/system/unwinding/libunwindstack/benchmarks/
DElfBenchmark.cpp87 unwindstack::MapInfo** build_id_map_info) { in InitializeBuildId()
109 unwindstack::MapInfo* build_id_map_info; in BM_elf_get_build_id_from_object()
133 unwindstack::MapInfo* build_id_map_info; in BM_elf_get_build_id_from_file()
/system/unwinding/libunwindstack/tools/
Dunwind_for_offline.cpp150 bool CopyElf(unwindstack::MapInfo* map_info, std::string* name) { in CopyElf()
179 bool CreateElfFromMemory(pid_t tid, unwindstack::MapInfo* map_info, std::string* name) { in CreateElfFromMemory()
217 bool CopyMapInfo(pid_t tid, unwindstack::MapInfo* map_info, in CopyMapInfo()
244 void WriteMapEntry(FILE* fp, unwindstack::MapInfo* map_info, const std::string& name) { in WriteMapEntry()
263 void SaveMapInfo(FILE* maps_fp, pid_t tid, unwindstack::MapInfo* map_info, in SaveMapInfo()
309 std::unordered_map<uintptr_t, unwindstack::MapInfo*> map_infos; in SaveData()
333 std::vector<unwindstack::MapInfo*> sorted_map_infos(map_infos.size()); in SaveData()
/system/core/debuggerd/libdebuggerd/test/
DUnwinderMock.h36 std::shared_ptr<unwindstack::MapInfo> map_info = GetMaps()->Find(offset); in MockSetBuildID()
/system/extras/simpleperf/
DOfflineUnwinder.cpp188 static std::shared_ptr<unwindstack::MapInfo> CreateMapInfo(const MapEntry* entry) { in CreateMapInfo()
211 return unwindstack::MapInfo::Create(entry->start_addr, entry->get_end_addr(), pgoff, in CreateMapInfo()
248 maps_.resize(std::remove(maps_.begin(), maps_.end(), std::shared_ptr<unwindstack::MapInfo>()) - in UpdateMaps()

12