• Home
  • Raw
  • Download

Lines Matching refs:memory_

52     memory_.Clear();  in SetUp()
56 memory_.SetMemory(offset, string, strlen(string) + 1); in SetStringMemory()
163 MemoryFake memory_; member in unwindstack::ElfInterfaceTest
176 memory_.SetMemory(offset, &sym, sizeof(sym)); in InitSym()
177 memory_.SetMemory(sym_offset + name_offset, name, strlen(name) + 1); in InitSym()
182 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in SinglePtLoad()
188 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in SinglePtLoad()
196 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SinglePtLoad()
220 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in MultipleExecutablePtLoads()
226 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in MultipleExecutablePtLoads()
234 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
243 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
252 memory_.SetMemory(0x100 + 2 * sizeof(phdr), &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
287 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
293 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
301 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
310 memory_.SetMemory(0x100 + sizeof(phdr) + 100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
319 memory_.SetMemory(0x100 + 2 * (sizeof(phdr) + 100), &phdr, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
356 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in NonExecutablePtLoads()
362 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in NonExecutablePtLoads()
370 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in NonExecutablePtLoads()
379 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in NonExecutablePtLoads()
388 memory_.SetMemory(0x100 + 2 * sizeof(phdr), &phdr, sizeof(phdr)); in NonExecutablePtLoads()
413 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in ManyPhdrs()
419 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in ManyPhdrs()
429 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
434 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
439 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
444 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
449 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
454 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
459 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
483 ElfInterfaceArm elf_arm(&memory_); in TEST_F()
489 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
495 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in TEST_F()
498 memory_.SetData32(0x2000, 0x1000); in TEST_F()
499 memory_.SetData32(0x2008, 0x1000); in TEST_F()
526 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in SonameInit()
536 memory_.SetMemory(0x200 + sizeof(shdr), &shdr, sizeof(shdr)); in SonameInit()
542 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SonameInit()
549 memory_.SetMemory(offset, &dyn, sizeof(dyn)); in SonameInit()
558 memory_.SetMemory(offset, &dyn, sizeof(dyn)); in SonameInit()
563 memory_.SetMemory(offset, &dyn, sizeof(dyn)); in SonameInit()
569 memory_.SetMemory(offset, &dyn, sizeof(dyn)); in SonameInit()
573 memory_.SetMemory(offset, &dyn, sizeof(dyn)); in SonameInit()
580 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in Soname()
601 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in SonameAfterDtNull()
622 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in SonameSize()
645 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in SonameMissingMap()
666 ElfType elf(&memory_); in InitHeadersEhFrameTest()
673 memory_.SetMemory(0x10000, in InitHeadersEhFrameTest()
675 memory_.SetData32(0x10004, 0x500); in InitHeadersEhFrameTest()
676 memory_.SetData32(0x10008, 250); in InitHeadersEhFrameTest()
694 ElfType elf(&memory_); in InitHeadersDebugFrame()
701 memory_.SetData32(0x5000, 0xfc); in InitHeadersDebugFrame()
702 memory_.SetData32(0x5004, 0xffffffff); in InitHeadersDebugFrame()
703 memory_.SetMemory(0x5008, std::vector<uint8_t>{1, '\0', 4, 8, 2}); in InitHeadersDebugFrame()
705 memory_.SetData32(0x5100, 0xfc); in InitHeadersDebugFrame()
706 memory_.SetData32(0x5104, 0); in InitHeadersDebugFrame()
707 memory_.SetData32(0x5108, 0x1500); in InitHeadersDebugFrame()
708 memory_.SetData32(0x510c, 0x200); in InitHeadersDebugFrame()
726 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in InitProgramHeadersMalformed()
732 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitProgramHeadersMalformed()
749 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in InitSectionHeadersMalformed()
755 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersMalformed()
772 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in InitSectionHeadersMalformedSymData()
780 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersMalformedSymData()
791 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
801 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
811 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
820 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
845 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in InitSectionHeaders()
853 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeaders()
864 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeaders()
874 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeaders()
880 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeaders()
889 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeaders()
931 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in InitSectionHeadersOffsets()
940 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersOffsets()
952 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
961 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
972 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
983 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
994 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
1003 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
1005 memory_.SetMemory(0xf100, ".debug_frame", sizeof(".debug_frame")); in InitSectionHeadersOffsets()
1006 memory_.SetMemory(0xf200, ".gnu_debugdata", sizeof(".gnu_debugdata")); in InitSectionHeadersOffsets()
1007 memory_.SetMemory(0xf300, ".eh_frame", sizeof(".eh_frame")); in InitSectionHeadersOffsets()
1008 memory_.SetMemory(0xf400, ".eh_frame_hdr", sizeof(".eh_frame_hdr")); in InitSectionHeadersOffsets()
1009 memory_.SetMemory(0xf500, ".note.gnu.build-id", sizeof(".note.gnu.build-id")); in InitSectionHeadersOffsets()
1044 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in InitSectionHeadersOffsetsEhFrameSectionBias()
1053 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersOffsetsEhFrameSectionBias()
1065 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsEhFrameSectionBias()
1074 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsEhFrameSectionBias()
1085 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsEhFrameSectionBias()
1087 memory_.SetMemory(0xf100, ".eh_frame", sizeof(".eh_frame")); in InitSectionHeadersOffsetsEhFrameSectionBias()
1088 memory_.SetMemory(0xf200, ".eh_frame_hdr", sizeof(".eh_frame_hdr")); in InitSectionHeadersOffsetsEhFrameSectionBias()
1136 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1145 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1157 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1166 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1177 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1179 memory_.SetMemory(0xf100, ".eh_frame", sizeof(".eh_frame")); in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1180 memory_.SetMemory(0xf200, ".eh_frame_hdr", sizeof(".eh_frame_hdr")); in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1227 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in InitSectionHeadersOffsetsDebugFrameSectionBias()
1236 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersOffsetsDebugFrameSectionBias()
1248 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsDebugFrameSectionBias()
1257 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsDebugFrameSectionBias()
1259 memory_.SetMemory(0xf100, ".debug_frame", sizeof(".debug_frame")); in InitSectionHeadersOffsetsDebugFrameSectionBias()
1301 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(&memory_)); in CheckGnuEhFrame()
1307 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in CheckGnuEhFrame()
1316 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in CheckGnuEhFrame()
1323 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in CheckGnuEhFrame()
1358 std::unique_ptr<ElfInterface> elf(new ElfInterface32(&memory_)); in TEST_F()
1364 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
1372 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in TEST_F()
1384 std::unique_ptr<ElfInterface> elf(new ElfInterface32(&memory_)); in TEST_F()
1390 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
1398 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in TEST_F()
1413 std::unique_ptr<ElfInterface> elf(new ElfInterface32(&memory_)); in TEST_F()
1422 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
1426 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1434 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1435 memory_.SetMemory(0x500, ".debug_frame"); in TEST_F()
1444 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1447 memory_.SetData32(0x600, 0xfc); in TEST_F()
1448 memory_.SetData32(0x604, 0xffffffff); in TEST_F()
1449 memory_.SetMemory(0x608, std::vector<uint8_t>{1, '\0', 4, 4, 1}); in TEST_F()
1452 memory_.SetData32(0x700, 0xfc); in TEST_F()
1453 memory_.SetData32(0x704, 0); in TEST_F()
1454 memory_.SetData32(0x708, 0x2100); in TEST_F()
1455 memory_.SetData32(0x70c, 0x200); in TEST_F()
1470 std::unique_ptr<ElfInterface> elf(new ElfInterface32(&memory_)); in TEST_F()
1479 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
1483 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1491 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1492 memory_.SetMemory(0x500, ".eh_frame"); in TEST_F()
1501 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1504 memory_.SetData32(0x600, 0xfc); in TEST_F()
1505 memory_.SetData32(0x604, 0); in TEST_F()
1506 memory_.SetMemory(0x608, std::vector<uint8_t>{1, '\0', 4, 4, 1}); in TEST_F()
1509 memory_.SetData32(0x700, 0xfc); in TEST_F()
1510 memory_.SetData32(0x704, 0x104); in TEST_F()
1511 memory_.SetData32(0x708, 0x20f8); in TEST_F()
1512 memory_.SetData32(0x70c, 0x200); in TEST_F()
1528 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in BuildID()
1537 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildID()
1559 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildID()
1568 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildID()
1570 memory_.SetMemory(0xf500, ".note.gnu.build-id", sizeof(".note.gnu.build-id")); in BuildID()
1571 memory_.SetMemory(0xb000, note_section, sizeof(note_section)); in BuildID()
1588 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in BuildIDTwoNotes()
1597 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildIDTwoNotes()
1630 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDTwoNotes()
1639 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDTwoNotes()
1641 memory_.SetMemory(0xf500, ".note.gnu.build-id", sizeof(".note.gnu.build-id")); in BuildIDTwoNotes()
1642 memory_.SetMemory(0xb000, note_section, sizeof(note_section)); in BuildIDTwoNotes()
1659 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in BuildIDSectionTooSmallForName()
1668 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildIDSectionTooSmallForName()
1690 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForName()
1699 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForName()
1701 memory_.SetMemory(0xf500, ".note.gnu.build-id", sizeof(".note.gnu.build-id")); in BuildIDSectionTooSmallForName()
1702 memory_.SetMemory(0xb000, note_section, sizeof(note_section)); in BuildIDSectionTooSmallForName()
1719 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in BuildIDSectionTooSmallForDesc()
1728 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildIDSectionTooSmallForDesc()
1750 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForDesc()
1759 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForDesc()
1761 memory_.SetMemory(0xf500, ".note.gnu.build-id", sizeof(".note.gnu.build-id")); in BuildIDSectionTooSmallForDesc()
1762 memory_.SetMemory(0xb000, note_section, sizeof(note_section)); in BuildIDSectionTooSmallForDesc()
1779 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in BuildIDSectionTooSmallForHeader()
1788 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildIDSectionTooSmallForHeader()
1810 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForHeader()
1819 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForHeader()
1821 memory_.SetMemory(0xf500, ".note.gnu.build-id", sizeof(".note.gnu.build-id")); in BuildIDSectionTooSmallForHeader()
1822 memory_.SetMemory(0xb000, note_section, sizeof(note_section)); in BuildIDSectionTooSmallForHeader()
1843 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in CheckLoadBiasInFirstPhdr()
1852 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in CheckLoadBiasInFirstPhdr()
1860 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in CheckLoadBiasInFirstPhdr()
1862 int64_t static_load_bias = ElfInterface::GetLoadBias<Ehdr, Phdr>(&memory_); in CheckLoadBiasInFirstPhdr()
1865 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in CheckLoadBiasInFirstPhdr()
1894 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in CheckLoadBiasInFirstExecPhdr()
1901 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in CheckLoadBiasInFirstExecPhdr()
1910 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in CheckLoadBiasInFirstExecPhdr()
1920 memory_.SetMemory(0x200 + sizeof(phdr), &phdr, sizeof(phdr)); in CheckLoadBiasInFirstExecPhdr()
1922 int64_t static_load_bias = ElfInterface::GetLoadBias<Ehdr, Phdr>(&memory_); in CheckLoadBiasInFirstExecPhdr()
1925 std::unique_ptr<ElfInterfaceType> elf(new ElfInterfaceType(&memory_)); in CheckLoadBiasInFirstExecPhdr()