Home
last modified time | relevance | path

Searched refs:elf_ (Results 1 – 9 of 9) sorted by relevance

/system/unwinding/libunwindstack/tests/
DRegsTest.cpp41 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 …]
DMapInfoGetLoadBiasTest.cpp51 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()
DRegsStepIfSignalHandlerTest.cpp43 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 …]
DMapInfoGetElfTest.cpp69 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 …]
DMapInfoGetBuildIDTest.cpp49 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
DMapInfoCreateMemoryTest.cpp65 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/
DMapInfo.h60 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/
Dread_elf.cpp318 : 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
DETMDecoder.cpp790 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