/system/core/libunwindstack/tests/ |
D | RegsStepIfSignalHandlerTest.cpp | 50 MemoryFake process_memory_; member in unwindstack::RegsStepIfSignalHandlerTest 63 process_memory_.SetData32(addr + index * 4, index * 0x10); in ArmStepIfSignalHandlerNonRt() 66 ASSERT_TRUE(regs.StepIfSignalHandler(0x5000, elf_.get(), &process_memory_)); in ArmStepIfSignalHandlerNonRt() 93 process_memory_.SetData32(addr + index * 4, index * 0x10); in ArmStepIfSignalHandlerRt() 96 ASSERT_TRUE(regs.StepIfSignalHandler(0x5000, elf_.get(), &process_memory_)); in ArmStepIfSignalHandlerRt() 123 process_memory_.SetData64(addr + index * 8, index * 0x10); in TEST_F() 126 ASSERT_TRUE(regs.StepIfSignalHandler(0x8000, elf_.get(), &process_memory_)); in TEST_F() 141 process_memory_.SetData32(addr + index * 4, index * 0x10); in TEST_F() 144 ASSERT_TRUE(regs.StepIfSignalHandler(0x4100, elf_.get(), &process_memory_)); in TEST_F() 165 process_memory_.SetData32(addr, 0x8100); in TEST_F() [all …]
|
D | MapInfoGetLoadBiasTest.cpp | 50 process_memory_.reset(memory_); in SetUp() 58 std::shared_ptr<Memory> process_memory_; member in unwindstack::MapInfoGetLoadBiasTest 68 EXPECT_EQ(0U, info.GetLoadBias(process_memory_)); in TEST_F() 75 EXPECT_EQ(0U, map_info_->GetLoadBias(process_memory_)); in TEST_F() 78 EXPECT_EQ(0U, map_info_->GetLoadBias(process_memory_)); in TEST_F() 85 EXPECT_EQ(0U, map_info_->GetLoadBias(process_memory_)); in TEST_F() 89 EXPECT_EQ(0x1000U, map_info_->GetLoadBias(process_memory_)); in TEST_F() 106 load_bias_values[i] = map_info_->GetLoadBias(process_memory_); in MultipleThreadTest() 152 EXPECT_EQ(0xe000U, map_info_->GetLoadBias(process_memory_)); in TEST_F() 158 EXPECT_EQ(0xe000U, map_info_->GetLoadBias(process_memory_)); in TEST_F() [all …]
|
D | MemoryRangesTest.cpp | 33 process_memory_.reset(memory); in SetUp() 40 ranges_->Insert(new MemoryRange(process_memory_, 15000, 100, 4000)); in SetUp() 41 ranges_->Insert(new MemoryRange(process_memory_, 10000, 2000, 2000)); in SetUp() 42 ranges_->Insert(new MemoryRange(process_memory_, 3000, 1000, 0)); in SetUp() 43 ranges_->Insert(new MemoryRange(process_memory_, 19000, 1000, 6000)); in SetUp() 44 ranges_->Insert(new MemoryRange(process_memory_, 20000, 1000, 7000)); in SetUp() 47 std::shared_ptr<Memory> process_memory_; member in unwindstack::MemoryRangesTest
|
D | MemoryRangeTest.cpp | 33 process_memory_.reset(); in SetUp() 35 process_memory_.reset(memory_fake_); in SetUp() 38 std::shared_ptr<Memory> process_memory_; member in unwindstack::MemoryRangeTest 45 MemoryRange range(process_memory_, 9001, 1024, 0); in TEST_F() 57 MemoryRange range(process_memory_, 1000, 1024, 0); in TEST_F() 85 MemoryRange range(process_memory_, 1000, 1024, 0); in TEST_F() 97 MemoryRange range(process_memory_, 1000, 1024, 400); in TEST_F()
|
D | MapInfoGetElfTest.cpp | 48 process_memory_.reset(memory_); in SetUp() 64 std::shared_ptr<Memory> process_memory_; member in unwindstack::MapInfoGetElfTest 74 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 86 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 106 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F() 120 Elf* elf = info.GetElf(process_memory_, ARCH_X86); in TEST_F() 133 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 149 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F() 164 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() 170 elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() [all …]
|
D | ArmExidxDecodeTest.cpp | 40 process_memory = &process_memory_; in Init() 69 process_memory_.Clear(); in SetUp() 83 MemoryFake process_memory_; member in unwindstack::ArmExidxDecodeTest 231 process_memory_.SetData32(0x10000, 0x10); in TEST_P() 257 process_memory_.SetData32(0x10000 + i * 4, i + 0x20); in TEST_P() 310 process_memory_.SetData32(0x10034, 0x11); in TEST_P() 311 process_memory_.SetData32(0x10038, 0x22); in TEST_P() 312 process_memory_.SetData32(0x1003c, 0x33); in TEST_P() 448 process_memory_.SetData32(0x10000, 0x14); in TEST_P() 472 process_memory_.SetData32(0x10000, 0x20); in TEST_P() [all …]
|
D | MapInfoCreateMemoryTest.cpp | 79 process_memory_.reset(memory_); in SetUp() 83 std::shared_ptr<Memory> process_memory_; member in unwindstack::MapInfoCreateMemoryTest 100 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() 104 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 109 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 119 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() 146 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 156 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 166 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 176 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() [all …]
|
D | ElfInterfaceArmTest.cpp | 37 process_memory_.Clear(); in SetUp() 41 MemoryFake process_memory_; member in unwindstack::ElfInterfaceArmTest 281 ASSERT_FALSE(interface.StepExidx(0x7000, ®s, &process_memory_, &finished)); in TEST_F() 287 ASSERT_FALSE(interface.StepExidx(0x7000, ®s, &process_memory_, &finished)); in TEST_F() 292 ASSERT_TRUE(interface.StepExidx(0x7000, ®s, &process_memory_, &finished)); in TEST_F() 302 ASSERT_TRUE(interface.StepExidx(0x8000, ®s, &process_memory_, &finished)); in TEST_F() 307 ASSERT_FALSE(interface.StepExidx(0x8000, ®s, &process_memory_, &finished)); in TEST_F() 319 process_memory_.SetData32(0x10000, 0x10); in TEST_F() 329 ASSERT_TRUE(interface.StepExidx(0x7000, ®s, &process_memory_, &finished)); in TEST_F() 353 ASSERT_TRUE(interface.StepExidx(0x7000, ®s, &process_memory_, &finished)); in TEST_F() [all …]
|
D | DexFilesTest.cpp | 51 dex_files_.reset(new DexFiles(process_memory_)); in Init() 84 process_memory_.reset(memory_); in SetUp() 102 std::shared_ptr<Memory> process_memory_; member in unwindstack::DexFilesTest 248 dex_files_.reset(new DexFiles(process_memory_, libs)); in TEST_F() 257 dex_files_.reset(new DexFiles(process_memory_, libs)); in TEST_F() 288 dex_files_.reset(new DexFiles(process_memory_)); in TEST_F() 317 dex_files_.reset(new DexFiles(process_memory_)); in TEST_F()
|
D | UnwinderTest.cpp | 135 process_memory_.reset(new MemoryFake); in SetUpTestCase() 146 static std::shared_ptr<Memory> process_memory_; member in unwindstack::UnwinderTest 151 std::shared_ptr<Memory> UnwinderTest::process_memory_(nullptr); 164 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 228 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 289 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 319 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 349 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 379 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 417 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() [all …]
|
D | UnwindOfflineTest.cpp | 79 process_memory_.reset(stack_memory.release()); in Init() 90 process_memory_.reset(stack_memory.release()); in Init() 159 std::shared_ptr<Memory> process_memory_; member in unwindstack::UnwindOfflineTest 208 Unwinder unwinder(128, maps_.get(), regs_.get(), process_memory_); in TEST_F() 248 Unwinder unwinder(128, maps_.get(), regs_.get(), process_memory_); in TEST_F() 269 Unwinder unwinder(128, maps_.get(), regs_.get(), process_memory_); in TEST_F() 308 process_memory_.reset(memory); in TEST_F() 310 JitDebug jit_debug(process_memory_); in TEST_F() 311 Unwinder unwinder(128, maps_.get(), regs_.get(), process_memory_); in TEST_F() 610 process_memory_.reset(memory); in TEST_F() [all …]
|
D | JitDebugTest.cpp | 49 jit_debug_.reset(new JitDebug(process_memory_)); in Init() 80 process_memory_.reset(memory_); in SetUp() 169 std::shared_ptr<Memory> process_memory_; member in unwindstack::JitDebugTest 317 jit_debug_.reset(new JitDebug(process_memory_)); in TEST_F() 393 jit_debug_.reset(new JitDebug(process_memory_, libs)); in TEST_F() 402 jit_debug_.reset(new JitDebug(process_memory_, libs)); in TEST_F()
|
/system/core/libbacktrace/ |
D | UnwindStackMap.cpp | 44 process_memory_ = unwindstack::Memory::CreateProcessMemory(pid_); in Build() 48 jit_debug_.reset(new unwindstack::JitDebug(process_memory_, search_libs_)); in Build() 50 dex_files_.reset(new unwindstack::DexFiles(process_memory_, search_libs_)); in Build() 85 map->load_bias = map_info->GetLoadBias(process_memory_); in FillIn() 97 return map_info->GetLoadBias(process_memory_); in GetLoadBias() 132 return process_memory_; in GetProcessMemory() 165 process_memory_.reset(memory_); in CreateProcessMemory()
|
D | UnwindStackMap.h | 54 const std::shared_ptr<unwindstack::Memory>& process_memory() { return process_memory_; } in process_memory() 68 std::shared_ptr<unwindstack::Memory> process_memory_; variable
|
/system/core/libunwindstack/ |
D | LocalUnwinder.cpp | 56 process_memory_ = unwindstack::Memory::CreateProcessMemory(getpid()); in Init() 104 Elf* elf = map_info->GetElf(process_memory_, arch); in Unwind() 116 if (elf->StepIfSignalHandler(rel_pc, regs.get(), process_memory_.get())) { in Unwind() 118 } else if (!elf->Step(step_pc, regs.get(), process_memory_.get(), &finished)) { in Unwind()
|
D | Unwinder.cpp | 168 elf = map_info->GetElf(process_memory_, arch); in Unwind() 242 if (elf->StepIfSignalHandler(rel_pc, regs_, process_memory_.get())) { in Unwind() 251 } else if (elf->Step(step_pc, regs_, process_memory_.get(), &finished)) { in Unwind() 288 if (!regs_->SetPcFromReturnAddress(process_memory_.get())) { in Unwind() 377 process_memory_ = Memory::CreateProcessMemoryCached(pid_); in Init() 379 jit_debug_ptr_.reset(new JitDebug(process_memory_)); in Init() 383 dex_files_ptr_.reset(new DexFiles(process_memory_)); in Init()
|
D | ArmExidx.h | 57 : regs_(regs), elf_memory_(elf_memory), process_memory_(process_memory) {} in ArmExidx() 114 Memory* process_memory_; variable
|
D | ArmExidx.cpp | 238 if (!process_memory_->Read32(cfa_, &(*regs_)[reg])) { in DecodePrefix_10_00() 331 if (!process_memory_->Read32(cfa_, &(*regs_)[i])) { in DecodePrefix_10_10() 339 if (!process_memory_->Read32(cfa_, &(*regs_)[ARM_REG_R14])) { in DecodePrefix_10_10() 422 if (!process_memory_->Read32(cfa_, &(*regs_)[reg])) { in DecodePrefix_10_11_0001()
|
/system/core/libunwindstack/include/unwindstack/ |
D | Unwinder.h | 67 : max_frames_(max_frames), maps_(maps), regs_(regs), process_memory_(process_memory) { in Unwinder() 71 : max_frames_(max_frames), maps_(maps), process_memory_(process_memory) { in Unwinder() 97 std::shared_ptr<Memory>& GetProcessMemory() { return process_memory_; } in GetProcessMemory() 129 std::shared_ptr<Memory> process_memory_; variable
|
D | LocalUnwinder.h | 79 std::shared_ptr<Memory> process_memory_; variable
|