Home
last modified time | relevance | path

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

/system/core/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.cpp67 TemporaryFile elf_; member in unwindstack::MapInfoGetElfTest
158 MapInfo info(nullptr, nullptr, 0x1000, 0x1000, 0, PROT_READ, elf_.path); in TEST_F()
162 ASSERT_TRUE(android::base::WriteFully(elf_.fd, &ehdr, sizeof(ehdr))); in TEST_F()
185 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0x100, PROT_READ, elf_.path); in TEST_F()
192 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F()
214 MapInfo info(nullptr, nullptr, 0x1000, 0x2000, 0x2000, PROT_READ, elf_.path); in TEST_F()
221 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F()
244 MapInfo info(nullptr, nullptr, 0x5000, 0x6000, 0x1000, PROT_READ, elf_.path); in TEST_F()
254 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F()
272 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()
60 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/extras/simpleperf/
Dread_elf.cpp318 : wrapper_(std::move(wrapper)), elf_obj_(elf_obj), elf_(elf_obj->getELFFile()) {} in ElfFileImpl()
321 return elf_->getHeader()->getFileClass() == llvm::ELF::ELFCLASS64; in Is64Bit()
329 auto program_headers = elf_->program_headers(); in GetProgramHeader()
364 auto machine = elf_->getHeader()->e_machine; in ParseSymbols()
399 auto machine = elf_->getHeader()->e_machine; in ParseDynamicSymbols()
426 for (auto it = elf_->program_header_begin(); it != elf_->program_header_end(); ++it) { in ReadMinExecutableVaddr()
444 for (auto ph = elf_->program_header_begin(); ph != elf_->program_header_end(); ++ph) { in VaddrToOff()
457 const llvm::object::ELFFile<ELFT>* elf_; member in __anon4e7a6f020111::ElfFileImpl
DETMDecoder.cpp783 elf_ = ElfFile::Open(dso->GetDebugFilePath(), &status); in Init()
784 if (!elf_) { in Init()
787 segments_ = elf_->GetProgramHeader(); in Init()
794 buffer_ = elf_->GetMemoryBuffer(); in Init()
803 elf_->Is64Bit() ? ocsd_isa_aarch64 : (is_thumb ? ocsd_isa_thumb2 : ocsd_isa_arm); in SetAddr()
836 std::unique_ptr<ElfFile> elf_; member in simpleperf::BranchDecoder