/aosp12/system/unwinding/libunwindstack/tests/ |
H A D | DwarfCfaLogTest.cpp | 80 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{i}); in TYPED_TEST_P() 92 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0x00}); in TYPED_TEST_P() 167 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0xc2}); in TYPED_TEST_P() 229 this->memory_.SetMemory(0x50, buffer, sizeof(buffer)); in TYPED_TEST_P() 254 this->memory_.SetMemory(0x200, std::vector<uint8_t>{0x44}); in TYPED_TEST_P() 370 this->memory_.SetMemory(0x300, std::vector<uint8_t>{0x0a}); in TYPED_TEST_P() 381 this->memory_.SetMemory(0x4300, std::vector<uint8_t>{0x0b}); in TYPED_TEST_P() 577 this->memory_.SetMemory(0x200, ops); in TYPED_TEST_P() 615 this->memory_.SetMemory(0x200, ops); in TYPED_TEST_P() 699 this->memory_.SetMemory(0xa00, ops); in TYPED_TEST_P() [all …]
|
H A D | SymbolsTest.cpp | 66 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 93 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 107 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 115 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 129 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 135 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 141 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 189 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 196 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 203 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() [all …]
|
H A D | ElfInterfaceTest.cpp | 188 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in SinglePtLoad() 226 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in MultipleExecutablePtLoads() 293 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr() 362 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in NonExecutablePtLoads() 419 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in ManyPhdrs() 489 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F() 526 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in SonameInit() 673 memory_.SetMemory(0x10000, in InitHeadersEhFrameTest() 732 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitProgramHeadersMalformed() 755 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersMalformed() [all …]
|
H A D | MemoryFake.h | 37 void SetMemory(uint64_t addr, const void* memory, size_t length); 42 SetMemory(addr, &value, sizeof(value)); in SetData8() 46 SetMemory(addr, &value, sizeof(value)); in SetData16() 50 SetMemory(addr, &value, sizeof(value)); in SetData32() 54 SetMemory(addr, &value, sizeof(value)); in SetData64() 57 void SetMemory(uint64_t addr, std::vector<uint8_t> values) { in SetMemory() function 58 SetMemory(addr, values.data(), values.size()); in SetMemory() 61 void SetMemory(uint64_t addr, std::string string) { in SetMemory() function 62 SetMemory(addr, string.c_str(), string.size() + 1); in SetMemory()
|
H A D | DwarfCfaTest.cpp | 79 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{i}); in TYPED_TEST_P() 92 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0x00}); in TYPED_TEST_P() 199 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0xc2}); in TYPED_TEST_P() 274 this->memory_.SetMemory(0x50, buffer, sizeof(buffer)); in TYPED_TEST_P() 431 this->memory_.SetMemory(0x300, std::vector<uint8_t>{0x0a}); in TYPED_TEST_P() 442 this->memory_.SetMemory(0x4300, std::vector<uint8_t>{0x0b}); in TYPED_TEST_P() 469 this->memory_.SetMemory( in TYPED_TEST_P() 737 this->memory_.SetMemory(0x200, ops); in TYPED_TEST_P() 771 this->memory_.SetMemory(0x200, ops); in TYPED_TEST_P() 871 this->memory_.SetMemory(0xa00, ops); in TYPED_TEST_P() [all …]
|
H A D | DwarfOpTest.cpp | 86 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P() 112 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P() 152 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P() 173 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P() 194 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P() 223 this->op_memory_.SetMemory( in TYPED_TEST_P() 262 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P() 329 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P() 392 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P() 458 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P() [all …]
|
H A D | MemoryTest.cpp | 59 memory.SetMemory(100, name.c_str(), name.size() + 1); in TEST() 81 memory.SetMemory(0, name.c_str(), name.size()); in TEST() 113 memory.SetMemory(100, kLongString, sizeof(kLongString)); in TEST() 120 memory.SetMemory(100, expected_str.data(), expected_str.length() + 1); in TEST() 126 memory.SetMemory(100, expected_str.data(), expected_str.length() + 1); in TEST() 132 memory.SetMemory(100, expected_str.data(), expected_str.length() + 1); in TEST()
|
H A D | DexFileTest.cpp | 72 memory.SetMemory(0x1000, kDexData, sizeof(kDexData)); in TEST() 123 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST() 130 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST() 143 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST() 157 memory.SetMemory(0x4000, kDexData, size); in TEST() 164 memory.SetMemory(0x4000, kDexData, size); in TEST() 170 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST() 188 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST()
|
H A D | DwarfEhFrameWithHdrTest.cpp | 75 this->memory_.SetMemory( in TYPED_TEST_P() 111 this->memory_.SetMemory(0x1000, std::vector<uint8_t>{0x1, DW_EH_PE_udata2, DW_EH_PE_udata4, in TYPED_TEST_P() 121 this->memory_.SetMemory(0x1308, std::vector<uint8_t>{1, 'z', 'R', '\0', 0, 0, 0, 0, 0x1b}); in TYPED_TEST_P() 146 this->memory_.SetMemory(0x1000, std::vector<uint8_t>{0x1, DW_EH_PE_udata2, DW_EH_PE_udata4, in TYPED_TEST_P() 156 this->memory_.SetMemory(0x1308, std::vector<uint8_t>{1, 'z', 'R', '\0', 0, 0, 0, 0, 0x1b}); in TYPED_TEST_P() 181 this->memory_.SetMemory(0x1000, std::vector<uint8_t>{0x1, DW_EH_PE_udata2, DW_EH_PE_udata4, in TYPED_TEST_P() 191 this->memory_.SetMemory(0x1308, std::vector<uint8_t>{1, 'z', 'R', '\0', 0, 0, 0, 0, 0x1b}); in TYPED_TEST_P() 255 this->memory_.SetMemory( in TYPED_TEST_P() 273 this->memory_.SetMemory(0x1308, std::vector<uint8_t>{1, '\0', 0, 0, 0}); in TYPED_TEST_P() 463 this->memory_.SetMemory(0xf008, std::vector<uint8_t>{1, '\0', 4, 8, 0x20}); in TYPED_TEST_P() [all …]
|
H A D | DwarfSectionImplTest.cpp | 123 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x96, 0x96, 0x96}); in TYPED_TEST_P() 139 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x0c, 0x00, 0x00, 0x00, 0x80}); in TYPED_TEST_P() 141 this->memory_.SetMemory(0x80000000, &cfa_value, sizeof(cfa_value)); in TYPED_TEST_P() 157 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x0c, 0x00, 0x00, 0x00, 0x80}); in TYPED_TEST_P() 175 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x50, 0x96, 0x96}); in TYPED_TEST_P() 467 this->memory_.SetMemory(0x80000000, &cfa_value, sizeof(cfa_value)); in TYPED_TEST_P() 539 this->memory_.SetMemory(0x3000, std::vector<uint8_t>{0x09, 0x02, 0x01}); in TYPED_TEST_P() 540 this->memory_.SetMemory(0x6000, std::vector<uint8_t>{0x09, 0x04, 0x03}); in TYPED_TEST_P() 570 this->memory_.SetMemory(0x6000, std::vector<uint8_t>{0x09, 0x04, 0x03}); in TYPED_TEST_P() 596 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x00}); in TYPED_TEST_P() [all …]
|
H A D | MapInfoGetElfTest.cpp | 86 memory_->SetMemory(0x3000, &ehdr, sizeof(ehdr)); in TEST_F() 106 memory_->SetMemory(0x8000, &ehdr, sizeof(ehdr)); in TEST_F() 120 memory_->SetMemory(0x3000, &ehdr, sizeof(ehdr)); in TEST_F() 132 memory_->SetMemory(0x2000 + offset, ptr, size); in TEST_F() 148 memory_->SetMemory(0x5000 + offset, ptr, size); in TEST_F() 312 memory_->SetMemory(0x7000, &ehdr, sizeof(ehdr)); in TEST_F() 339 memory_->SetMemory(0x7000, &ehdr, sizeof(ehdr)); in TEST_F() 383 memory_->SetMemory(0x2000, &ehdr, sizeof(ehdr)); in TEST_F() 400 memory_->SetMemory(0x1000, &ehdr, sizeof(ehdr)); in InitMapInfo() 481 memory_->SetMemory(0x1000, &ehdr, sizeof(ehdr)); in TEST_F()
|
H A D | JitDebugTest.cpp | 104 memory_->SetMemory(offset, &ehdr, sizeof(ehdr)); in CreateElf() 109 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf() 117 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf() 118 memory_->SetMemory(offset + 0x500, ".debug_frame"); in CreateElf() 119 memory_->SetMemory(offset + 0x550, ".text"); in CreateElf() 128 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf() 137 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf()
|
H A D | MapInfoGetLoadBiasTest.cpp | 137 memory->SetMemory(offset, &ehdr, sizeof(ehdr)); in InitElfData() 142 memory->SetMemory(offset + 0x5000, &phdr, sizeof(phdr)); in InitElfData() 147 memory->SetMemory(offset + 0x5000 + sizeof(phdr), &phdr, sizeof(phdr)); in InitElfData()
|
H A D | ElfTest.cpp | 61 memory_->SetMemory(0, &ehdr, sizeof(ehdr)); in InitElf32() 70 memory_->SetMemory(0x100, &phdr, sizeof(phdr)); in InitElf32() 82 memory_->SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in InitElf32() 96 memory_->SetMemory(0, &ehdr, sizeof(ehdr)); in InitElf64() 105 memory_->SetMemory(0x100, &phdr, sizeof(phdr)); in InitElf64() 267 memory_->SetMemory(offset, ptr, size); in TEST_F() 281 memory_->SetMemory(offset, ptr, size); in TEST_F()
|
H A D | MapInfoCreateMemoryTest.cpp | 266 memory_->SetMemory(info.start(), buffer.data(), buffer.size()); in TEST_F() 291 memory_->SetMemory(0x1000, &ehdr, sizeof(ehdr)); in TEST_F() 335 memory_->SetMemory(0x1000, &ehdr, sizeof(ehdr)); in TEST_F() 340 memory_->SetMemory(0x3000, &ehdr, sizeof(ehdr)); in TEST_F() 378 memory_->SetMemory(0x3000, &ehdr, sizeof(ehdr)); in TEST_F() 453 memory_->SetMemory(0x1000, &ehdr, sizeof(ehdr)); in TEST_F()
|
H A D | DwarfEhFrameTest.cpp | 57 this->memory_.SetMemory(0x5008, std::vector<uint8_t>{1, '\0', 16, 32, 1}); in TYPED_TEST_P() 95 this->memory_.SetMemory(0x5014, std::vector<uint8_t>{1, '\0', 16, 32, 1}); in TYPED_TEST_P()
|
H A D | DwarfMemoryTest.cpp | 65 memory_.SetMemory(0, std::vector<uint8_t>{0x10, 0x18, 0xff, 0xfe}); in TEST_F() 124 memory_.SetMemory(0, std::vector<uint8_t>{0x01, 0x80, 0x24, 0xff, 0xc3, 0xff, 0x7f}); in TEST_F() 141 memory_.SetMemory(0, std::vector<uint8_t>{0x06, 0x40, 0x82, 0x34, 0x89, 0x64, 0xf9, 0xc3, 0x8f, in TEST_F() 302 memory_.SetMemory(0, std::vector<uint8_t>{0x80, 0x42}); in ReadEncodedValue_leb128()
|
H A D | DwarfOpLogTest.cpp | 58 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P()
|
H A D | DwarfDebugFrameTest.cpp | 58 memory->SetMemory(offset, data); in SetCie32() 70 memory->SetMemory(offset, data); in SetCie64() 85 memory->SetMemory(offset, *data); in SetFde32() 103 memory->SetMemory(offset, *data); in SetFde64() 483 this->memory_.SetMemory(0x5000, zero); in TYPED_TEST_P() 498 this->memory_.SetMemory(0x5000, zero); in TYPED_TEST_P()
|
H A D | MemoryFake.cpp | 37 void MemoryFake::SetMemory(uint64_t addr, const void* memory, size_t length) { in SetMemory() function in unwindstack::MemoryFake
|
H A D | UnwinderTest.cpp | 1693 memory_->SetMemory(0xf7000, &ehdr, sizeof(ehdr)); in TEST_F() 1701 memory_->SetMemory(0xf7050, &phdr, sizeof(phdr)); in TEST_F() 1705 memory_->SetMemory(0xf7100, &shdr, sizeof(shdr)); in TEST_F() 1713 memory_->SetMemory(0xf7100 + sizeof(shdr), &shdr, sizeof(shdr)); in TEST_F() 1720 memory_->SetMemory(0xf7100 + 2 * sizeof(shdr), &shdr, sizeof(shdr)); in TEST_F() 1728 memory_->SetMemory(0xf7300, &sym, sizeof(sym)); in TEST_F() 1729 memory_->SetMemory(0xf7401, "FakeJitFunction"); in TEST_F()
|
H A D | DexFilesTest.cpp | 175 memory_->SetMemory(dex_file, kDexData, sizeof(kDexData)); in WriteDex()
|
/aosp12/system/unwinding/libunwindstack/tests/fuzz/ |
H A D | UnwinderComponentCreator.cpp | 263 memory->SetMemory(offset, &ehdr, sizeof(ehdr)); in PutElfInMemory() 268 memory->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in PutElfInMemory() 276 memory->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in PutElfInMemory() 277 memory->SetMemory(offset + 0x500, ".debug_frame"); in PutElfInMemory() 286 memory->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in PutElfInMemory()
|