/system/unwinding/libunwindstack/tests/ |
D | RegsTest.cpp | 41 elf_.reset(new ElfFake(memory_)); in SetUp() 42 elf_interface_ = new ElfInterfaceFake(elf_->memory()); in SetUp() 43 elf_->FakeSetInterface(elf_interface_); in SetUp() 48 std::unique_ptr<ElfFake> elf_; member in unwindstack::RegsTest 96 EXPECT_EQ(4U, GetPcAdjustment(0x10, elf_.get(), ARCH_ARM64)); in TEST_F() 97 EXPECT_EQ(4U, GetPcAdjustment(0x4, elf_.get(), ARCH_ARM64)); in TEST_F() 98 EXPECT_EQ(0U, GetPcAdjustment(0x3, elf_.get(), ARCH_ARM64)); in TEST_F() 99 EXPECT_EQ(0U, GetPcAdjustment(0x2, elf_.get(), ARCH_ARM64)); in TEST_F() 100 EXPECT_EQ(0U, GetPcAdjustment(0x1, elf_.get(), ARCH_ARM64)); in TEST_F() 101 EXPECT_EQ(0U, GetPcAdjustment(0x0, elf_.get(), ARCH_ARM64)); in TEST_F() [all …]
|
D | MapInfoGetLoadBiasTest.cpp | 51 elf_ = new ElfFake(new MemoryFake); in SetUp() 52 elf_container_.reset(elf_); in SetUp() 60 ElfFake* elf_; member in unwindstack::MapInfoGetLoadBiasTest 74 elf_->FakeSetLoadBias(0); in TEST_F() 77 elf_->FakeSetLoadBias(0x1000); in TEST_F() 84 elf_->FakeSetLoadBias(0); in TEST_F() 88 elf_->FakeSetLoadBias(0x1000); in TEST_F() 126 elf_->FakeSetLoadBias(0x1000); in TEST_F()
|
D | RegsStepIfSignalHandlerTest.cpp | 43 elf_.reset(new Elf(elf_memory_)); in SetUp() 51 std::unique_ptr<Elf> elf_; member in unwindstack::RegsStepIfSignalHandlerTest 66 ASSERT_TRUE(regs.StepIfSignalHandler(0x5000, elf_.get(), &process_memory_)); in ArmStepIfSignalHandlerNonRt() 96 ASSERT_TRUE(regs.StepIfSignalHandler(0x5000, elf_.get(), &process_memory_)); in ArmStepIfSignalHandlerRt() 126 ASSERT_TRUE(regs.StepIfSignalHandler(0x8000, elf_.get(), &process_memory_)); in TEST_F() 144 ASSERT_TRUE(regs.StepIfSignalHandler(0x4100, elf_.get(), &process_memory_)); in TEST_F() 172 ASSERT_TRUE(regs.StepIfSignalHandler(0x4100, elf_.get(), &process_memory_)); in TEST_F() 197 ASSERT_TRUE(regs.StepIfSignalHandler(0x7000, elf_.get(), &process_memory_)); in TEST_F() 216 ASSERT_TRUE(regs.StepIfSignalHandler(0x8000, elf_.get(), &process_memory_)); in TEST_F() 235 ASSERT_TRUE(regs.StepIfSignalHandler(0x8000, elf_.get(), &process_memory_)); in TEST_F() [all …]
|
D | MapInfoGetElfTest.cpp | 69 TemporaryFile elf_; member in unwindstack::MapInfoGetElfTest 160 MapInfo info(nullptr, nullptr, 0x1000, 0x1000, 0, PROT_READ, elf_.path); in TEST_F() 164 ASSERT_TRUE(android::base::WriteFully(elf_.fd, &ehdr, sizeof(ehdr))); in TEST_F() 187 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0x100, PROT_READ, elf_.path); in TEST_F() 194 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 216 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0x2000, PROT_READ, elf_.path); in TEST_F() 223 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 246 MapInfo info(nullptr, nullptr, 0x5000, 0x6000, 0x1000, PROT_READ, elf_.path); in TEST_F() 256 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 274 MapInfo info(nullptr, nullptr, 0x7000, 0x8000, 0x1000, PROT_READ, elf_.path); in TEST_F() [all …]
|
D | MapInfoGetBuildIDTest.cpp | 49 elf_ = new ElfFake(new MemoryFake); in SetUp() 51 elf_->FakeSetInterface(elf_interface_); in SetUp() 52 elf_container_.reset(elf_); in SetUp() 62 ElfFake* elf_; member in unwindstack::MapInfoGetBuildIDTest
|
D | MapInfoCreateMemoryTest.cpp | 65 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), 1024)); in SetUp() 83 TemporaryFile elf_; member in unwindstack::MapInfoCreateMemoryTest 92 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()
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | MapInfo.h | 60 std::shared_ptr<Elf> elf_; member 102 inline std::shared_ptr<Elf>& elf() { return GetElfFields().elf_; } in elf() 103 inline void set_elf(std::shared_ptr<Elf>& value) { GetElfFields().elf_ = value; } in set_elf() 104 inline void set_elf(Elf* value) { GetElfFields().elf_.reset(value); } in set_elf()
|
/system/extras/simpleperf/ |
D | read_elf.cpp | 318 : wrapper_(std::move(wrapper)), elf_obj_(elf_obj), elf_(elf_obj->getELFFile()) {} in ElfFileImpl() 320 bool Is64Bit() override { return elf_->getHeader()->getFileClass() == llvm::ELF::ELFCLASS64; } in Is64Bit() 325 auto program_headers = elf_->program_headers(); in GetProgramHeader() 340 auto section_headers_or_err = elf_->sections(); in GetSectionHeader() 348 if (auto name = elf_->getSectionName(&shdr); name) { in GetSectionHeader() 380 auto machine = elf_->getHeader()->e_machine; in ParseSymbols() 415 auto machine = elf_->getHeader()->e_machine; in ParseDynamicSymbols() 442 for (auto it = elf_->program_header_begin(); it != elf_->program_header_end(); ++it) { in ReadMinExecutableVaddr() 460 for (auto ph = elf_->program_header_begin(); ph != elf_->program_header_end(); ++ph) { in VaddrToOff() 473 const llvm::object::ELFFile<ELFT>* elf_; member in simpleperf::__anon418228490111::ElfFileImpl
|
D | ETMDecoder.cpp | 790 elf_ = ElfFile::Open(dso->GetDebugFilePath(), &status); in Init() 791 if (!elf_) { in Init() 798 for (const auto& section : elf_->GetSectionHeader()) { in Init() 810 segments_ = elf_->GetProgramHeader(); in Init() 818 buffer_ = elf_->GetMemoryBuffer(); in Init() 827 elf_->Is64Bit() ? ocsd_isa_aarch64 : (is_thumb ? ocsd_isa_thumb2 : ocsd_isa_arm); in SetAddr() 860 std::unique_ptr<ElfFile> elf_; member in simpleperf::BranchDecoder
|