/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() 153 EXPECT_EQ(0xe000U, map_info_->GetLoadBias(process_memory_)); in TEST_F() 159 EXPECT_EQ(0xe000U, map_info_->GetLoadBias(process_memory_)); in TEST_F() [all …]
|
D | MemoryRangesTest.cpp | 32 process_memory_.reset(memory); in SetUp() 39 ranges_->Insert(new MemoryRange(process_memory_, 15000, 100, 4000)); in SetUp() 40 ranges_->Insert(new MemoryRange(process_memory_, 10000, 2000, 2000)); in SetUp() 41 ranges_->Insert(new MemoryRange(process_memory_, 3000, 1000, 0)); in SetUp() 42 ranges_->Insert(new MemoryRange(process_memory_, 19000, 1000, 6000)); in SetUp() 43 ranges_->Insert(new MemoryRange(process_memory_, 20000, 1000, 7000)); in SetUp() 46 std::shared_ptr<Memory> process_memory_; member in unwindstack::MemoryRangesTest
|
D | MemoryRangeTest.cpp | 32 process_memory_.reset(); in SetUp() 34 process_memory_.reset(memory_fake_); in SetUp() 37 std::shared_ptr<Memory> process_memory_; member in unwindstack::MemoryRangeTest 44 MemoryRange range(process_memory_, 9001, 1024, 0); in TEST_F() 56 MemoryRange range(process_memory_, 1000, 1024, 0); in TEST_F() 84 MemoryRange range(process_memory_, 1000, 1024, 0); in TEST_F() 96 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 | 77 process_memory_.reset(memory_); in SetUp() 81 std::shared_ptr<Memory> process_memory_; member in unwindstack::MapInfoCreateMemoryTest 94 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() 98 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 103 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 113 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() 141 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 151 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 161 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 171 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 | UnwinderTest.cpp | 139 process_memory_.reset(new MemoryFake); in SetUpTestSuite() 150 static std::shared_ptr<Memory> process_memory_; member in unwindstack::UnwinderTest 155 std::shared_ptr<Memory> UnwinderTest::process_memory_(nullptr); 168 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 232 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 293 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 323 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 353 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 383 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() 421 Unwinder unwinder(64, maps_.get(), ®s_, process_memory_); in TEST_F() [all …]
|
D | DexFilesTest.cpp | 55 dex_files_.reset(new DexFiles(process_memory_)); in Init() 97 process_memory_.reset(memory_); in SetUp() 117 std::shared_ptr<Memory> process_memory_; member in unwindstack::DexFilesTest 263 dex_files_.reset(new DexFiles(process_memory_, libs)); in TEST_F() 272 dex_files_.reset(new DexFiles(process_memory_, libs)); in TEST_F() 303 dex_files_.reset(new DexFiles(process_memory_)); in TEST_F() 332 dex_files_.reset(new DexFiles(process_memory_)); in TEST_F()
|
D | UnwindOfflineTest.cpp | 80 process_memory_.reset(stack_memory.release()); in Init() 91 process_memory_.reset(stack_memory.release()); in Init() 161 std::shared_ptr<Memory> process_memory_; member in unwindstack::UnwindOfflineTest 213 Unwinder unwinder(128, maps_.get(), regs_.get(), process_memory_); in TEST_F() 253 Unwinder unwinder(128, maps_.get(), regs_.get(), process_memory_); in TEST_F() 274 Unwinder unwinder(128, maps_.get(), regs_.get(), process_memory_); in TEST_F() 313 process_memory_.reset(memory); in TEST_F() 315 JitDebug jit_debug(process_memory_); in TEST_F() 316 Unwinder unwinder(128, maps_.get(), regs_.get(), process_memory_); in TEST_F() 615 process_memory_.reset(memory); in TEST_F() [all …]
|
D | JitDebugTest.cpp | 53 jit_debug_.reset(new JitDebug(process_memory_)); in Init() 84 process_memory_.reset(memory_); in SetUp() 173 std::shared_ptr<Memory> process_memory_; member in unwindstack::JitDebugTest 321 jit_debug_.reset(new JitDebug(process_memory_)); in TEST_F() 397 jit_debug_.reset(new JitDebug(process_memory_, libs)); in TEST_F() 406 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()
|
D | UnwindStackMap.h | 55 const std::shared_ptr<unwindstack::Memory>& process_memory() { return process_memory_; } in process_memory() 69 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 | 170 elf = map_info->GetElf(process_memory_, arch); in Unwind() 244 if (elf->StepIfSignalHandler(rel_pc, regs_, process_memory_.get())) { in Unwind() 253 } else if (elf->Step(step_pc, regs_, process_memory_.get(), &finished)) { in Unwind() 290 if (!regs_->SetPcFromReturnAddress(process_memory_.get())) { in Unwind() 384 process_memory_ = Memory::CreateProcessMemoryCached(pid_); in Init() 386 jit_debug_ptr_.reset(new JitDebug(process_memory_)); in Init() 390 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() 134 std::shared_ptr<Memory> process_memory_; variable
|
D | LocalUnwinder.h | 79 std::shared_ptr<Memory> process_memory_; variable
|