Home
last modified time | relevance | path

Searched refs:map_info (Results 1 – 4 of 4) sorted by relevance

/system/extras/procmem/
Dprocmem.c26 struct map_info { struct
53 struct map_info **mis = NULL; in main() argument
54 struct map_info *mi; in main()
135 mis = (struct map_info **)calloc(num_maps, sizeof(struct map_info *)); in main()
159 mi = (struct map_info *)calloc(1, sizeof(struct map_info)); in main()
315 struct map_info *ma, *mb; in comp_pss()
317 ma = *((struct map_info **)a); in comp_pss()
318 mb = *((struct map_info **)b); in comp_pss()
/system/core/libunwindstack/tests/
DRegsTest.cpp133 MapInfo map_info{.start = 0x1000, .end = 0x2000}; in regs_rel_pc() local
135 ASSERT_EQ(0x101U, regs.GetRelPc(elf_.get(), &map_info)); in regs_rel_pc()
137 ASSERT_EQ(0x3101U, regs.GetRelPc(elf_.get(), &map_info)); in regs_rel_pc()
249 MapInfo map_info{.start = 0x1000, .end = 0x2000}; in TEST_F() local
252 ASSERT_EQ(0x500U, regs_arm.GetRelPc(&invalid_elf, &map_info)); in TEST_F()
256 ASSERT_EQ(0x600U, regs_arm64.GetRelPc(&invalid_elf, &map_info)); in TEST_F()
260 ASSERT_EQ(0x700U, regs_x86.GetRelPc(&invalid_elf, &map_info)); in TEST_F()
264 ASSERT_EQ(0x800U, regs_x86_64.GetRelPc(&invalid_elf, &map_info)); in TEST_F()
/system/core/libunwindstack/
DRegs.h53 virtual uint64_t GetRelPc(Elf* elf, const MapInfo* map_info) = 0;
75 uint64_t GetRelPc(Elf* elf, const MapInfo* map_info) override;
DRegs.cpp33 uint64_t RegsTmpl<AddressType>::GetRelPc(Elf* elf, const MapInfo* map_info) { in GetRelPc() argument
39 return pc_ - map_info->start + load_bias + map_info->elf_offset; in GetRelPc()