/system/unwinding/libunwindstack/tests/ |
D | RegsTest.cpp | 45 elf_.reset(new ElfFake(memory)); in SetUp() 47 elf_->FakeSetInterface(elf_interface_); in SetUp() 52 std::unique_ptr<ElfFake> elf_; member in unwindstack::RegsTest 100 EXPECT_EQ(4U, GetPcAdjustment(0x10, elf_.get(), ARCH_ARM64)); in TEST_F() 101 EXPECT_EQ(4U, GetPcAdjustment(0x4, elf_.get(), ARCH_ARM64)); in TEST_F() 102 EXPECT_EQ(0U, GetPcAdjustment(0x3, elf_.get(), ARCH_ARM64)); in TEST_F() 103 EXPECT_EQ(0U, GetPcAdjustment(0x2, elf_.get(), ARCH_ARM64)); in TEST_F() 104 EXPECT_EQ(0U, GetPcAdjustment(0x1, elf_.get(), ARCH_ARM64)); in TEST_F() 105 EXPECT_EQ(0U, GetPcAdjustment(0x0, elf_.get(), ARCH_ARM64)); in TEST_F() 107 EXPECT_EQ(4U, GetPcAdjustment(0x10, elf_.get(), ARCH_RISCV64)); in TEST_F() [all …]
|
D | MapInfoGetLoadBiasTest.cpp | 52 elf_ = new ElfFake(memory); in SetUp() 53 elf_container_.reset(elf_); in SetUp() 61 ElfFake* elf_; member in unwindstack::MapInfoGetLoadBiasTest 75 elf_->FakeSetLoadBias(0); in TEST_F() 78 elf_->FakeSetLoadBias(0x1000); in TEST_F() 85 elf_->FakeSetLoadBias(0); in TEST_F() 89 elf_->FakeSetLoadBias(0x1000); in TEST_F() 127 elf_->FakeSetLoadBias(0x1000); in TEST_F()
|
D | RegsStepIfSignalHandlerTest.cpp | 44 elf_.reset(new Elf(memory)); in SetUp() 52 std::unique_ptr<Elf> elf_; member in unwindstack::RegsStepIfSignalHandlerTest 67 ASSERT_TRUE(regs.StepIfSignalHandler(0x5000, elf_.get(), &process_memory_)); in ArmStepIfSignalHandlerNonRt() 97 ASSERT_TRUE(regs.StepIfSignalHandler(0x5000, elf_.get(), &process_memory_)); in ArmStepIfSignalHandlerRt() 127 ASSERT_TRUE(regs.StepIfSignalHandler(0x8000, elf_.get(), &process_memory_)); in TEST_F() 146 ASSERT_TRUE(regs.StepIfSignalHandler(0x8000, elf_.get(), &process_memory_)); in TEST_F() 164 ASSERT_TRUE(regs.StepIfSignalHandler(0x4100, elf_.get(), &process_memory_)); in TEST_F() 192 ASSERT_TRUE(regs.StepIfSignalHandler(0x4100, elf_.get(), &process_memory_)); in TEST_F() 217 ASSERT_TRUE(regs.StepIfSignalHandler(0x7000, elf_.get(), &process_memory_)); in TEST_F()
|
D | MapInfoGetElfTest.cpp | 69 TemporaryFile elf_; member in unwindstack::MapInfoGetElfTest 157 ASSERT_TRUE(android::base::WriteFully(elf_.fd, &ehdr, sizeof(ehdr))); in TEST_F() 159 auto info = MapInfo::Create(0x1000, 0x1000, 0, PROT_READ, elf_.path); in TEST_F() 186 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); 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() 216 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 239 auto info = MapInfo::Create(0x5000, 0x6000, 0x1000, PROT_READ, elf_.path); in TEST_F() 249 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 267 auto info = MapInfo::Create(0x7000, 0x8000, 0x1000, PROT_READ, elf_.path); in TEST_F() [all …]
|
D | GlobalTest.cpp | 89 map_info->GetElfFields().elf_.reset(elf_fake); in SetUp() 98 map_info->GetElfFields().elf_.reset(elf_fake); in SetUp() 107 map_info->GetElfFields().elf_.reset(elf_fake); in SetUp() 116 map_info->GetElfFields().elf_.reset(elf_fake); in SetUp()
|
D | MapInfoGetBuildIDTest.cpp | 50 elf_ = new ElfFake(memory); in SetUp() 52 elf_->FakeSetInterface(elf_interface_); in SetUp() 53 elf_container_.reset(elf_); in SetUp() 59 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 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()
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | MapInfo.h | 78 std::shared_ptr<Elf> elf_; member 152 inline std::shared_ptr<Elf>& elf() { return GetElfFields().elf_; } in elf() 153 inline void set_elf(std::shared_ptr<Elf>& value) { GetElfFields().elf_ = value; } in set_elf() 154 inline void set_elf(Elf* value) { GetElfFields().elf_.reset(value); } in set_elf()
|
/system/extras/simpleperf/ |
D | read_elf.cpp | 354 : wrapper_(std::move(wrapper)), elf_obj_(elf_obj), elf_(GetELFFile(elf_obj_)) {} in ElfFileImpl() 356 bool Is64Bit() override { return GetELFHeader(elf_).getFileClass() == llvm::ELF::ELFCLASS64; } in Is64Bit() 361 auto program_headers = GetELFProgramHeaders(elf_); in GetProgramHeader() 379 auto section_headers_or_err = elf_->sections(); in GetSectionHeader() 387 if (auto name = GetELFSectionName(elf_, shdr); name) { in GetSectionHeader() 421 auto machine = GetELFHeader(elf_).e_machine; in ParseSymbols() 456 auto machine = GetELFHeader(elf_).e_machine; in ParseDynamicSymbols() 482 auto program_headers = GetELFProgramHeaders(elf_); in ReadMinExecutableVaddr() 502 auto program_headers = GetELFProgramHeaders(elf_); in VaddrToOff() 519 const llvm::object::ELFFile<ELFT>* elf_; member in simpleperf::__anonf3cb40160111::ElfFileImpl
|
D | ETMDecoder.cpp | 861 elf_ = ElfFile::Open(dso->GetDebugFilePath(), &status); in Init() 862 if (!elf_) { in Init() 869 for (const auto& section : elf_->GetSectionHeader()) { in Init() 881 segments_ = elf_->GetProgramHeader(); in Init() 889 buffer_ = elf_->GetMemoryBuffer(); in Init() 898 elf_->Is64Bit() ? ocsd_isa_aarch64 : (is_thumb ? ocsd_isa_thumb2 : ocsd_isa_arm); in SetAddr() 931 std::unique_ptr<ElfFile> elf_; member in simpleperf::BranchDecoder
|