Home
last modified time | relevance | path

Searched refs:process_memory_ (Results 1 – 20 of 20) sorted by relevance

/system/unwinding/libunwindstack/tests/
DRegsStepIfSignalHandlerTest.cpp50 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 …]
DMapInfoGetLoadBiasTest.cpp50 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 …]
DMapInfoGetElfTest.cpp48 process_memory_.reset(memory_); in SetUp()
66 std::shared_ptr<Memory> process_memory_; member in unwindstack::MapInfoGetElfTest
76 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
87 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
106 Elf* elf = info->GetElf(process_memory_, ARCH_ARM64); in TEST_F()
119 Elf* elf = info->GetElf(process_memory_, ARCH_X86); in TEST_F()
131 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
146 Elf* elf = info->GetElf(process_memory_, ARCH_ARM64); in TEST_F()
160 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
166 elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F()
[all …]
DMemoryRangeTest.cpp32 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()
DMemoryRangesTest.cpp32 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
DArmExidxDecodeTest.cpp40 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 …]
DMapInfoCreateMemoryTest.cpp77 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()
140 memory.reset(info->CreateMemory(process_memory_)); in TEST_F()
150 memory.reset(info->CreateMemory(process_memory_)); in TEST_F()
160 memory.reset(info->CreateMemory(process_memory_)); in TEST_F()
170 memory.reset(info->CreateMemory(process_memory_)); in TEST_F()
[all …]
DElfInterfaceArmTest.cpp37 process_memory_.Clear(); in SetUp()
41 MemoryFake process_memory_; member in unwindstack::ElfInterfaceArmTest
281 ASSERT_FALSE(interface.StepExidx(0x7000, &regs, &process_memory_, &finished)); in TEST_F()
287 ASSERT_FALSE(interface.StepExidx(0x7000, &regs, &process_memory_, &finished)); in TEST_F()
292 ASSERT_TRUE(interface.StepExidx(0x7000, &regs, &process_memory_, &finished)); in TEST_F()
302 ASSERT_TRUE(interface.StepExidx(0x8000, &regs, &process_memory_, &finished)); in TEST_F()
307 ASSERT_FALSE(interface.StepExidx(0x8000, &regs, &process_memory_, &finished)); in TEST_F()
319 process_memory_.SetData32(0x10000, 0x10); in TEST_F()
329 ASSERT_TRUE(interface.StepExidx(0x7000, &regs, &process_memory_, &finished)); in TEST_F()
353 ASSERT_TRUE(interface.StepExidx(0x7000, &regs, &process_memory_, &finished)); in TEST_F()
[all …]
DDexFilesTest.cpp56 dex_files_ = CreateDexFiles(arch, process_memory_); in Init()
97 process_memory_.reset(memory_); in SetUp()
119 std::shared_ptr<Memory> process_memory_; member in unwindstack::DexFilesTest
275 dex_files_ = CreateDexFiles(ARCH_ARM, process_memory_, libs); in TEST_F()
283 dex_files_ = CreateDexFiles(ARCH_ARM, process_memory_, libs); in TEST_F()
312 dex_files_ = CreateDexFiles(ARCH_ARM, process_memory_); in TEST_F()
339 dex_files_ = CreateDexFiles(ARCH_ARM64, process_memory_); in TEST_F()
DUnwinderTest.cpp64 process_memory_.reset(memory_); in SetUpTestSuite()
186 static std::shared_ptr<Memory> process_memory_; member in unwindstack::UnwinderTest
192 std::shared_ptr<Memory> UnwinderTest::process_memory_(nullptr);
205 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
275 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
342 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
374 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
406 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
445 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
480 Unwinder unwinder(20, maps_.get(), &regs_, process_memory_); in TEST_F()
[all …]
DJitDebugTest.cpp53 jit_debug_ = CreateJitDebug(arch, process_memory_); in Init()
83 process_memory_.reset(memory_); in SetUp()
185 std::shared_ptr<Memory> process_memory_; member in unwindstack::JitDebugTest
338 jit_debug_ = CreateJitDebug(ARCH_ARM, process_memory_); in TEST_F()
352 jit_debug_ = CreateJitDebug(ARCH_X86, process_memory_); in TEST_F()
413 jit_debug_ = CreateJitDebug(ARCH_ARM, process_memory_, libs); in TEST_F()
421 jit_debug_ = CreateJitDebug(ARCH_ARM, process_memory_, libs); in TEST_F()
/system/unwinding/libunwindstack/
DAndroidUnwinder.cpp91 jit_debug_ = CreateJitDebug(arch_, process_memory_, search_libs); in Initialize()
94 dex_files_ = CreateDexFiles(arch_, process_memory_, search_libs); in Initialize()
117 if (process_memory_ == nullptr) { in InternalInitialize()
118 process_memory_ = Memory::CreateProcessMemoryThreadCached(getpid()); in InternalInitialize()
125 return Unwinder::BuildFrameFromPcOnly(pc, arch_, maps_.get(), jit_debug_.get(), process_memory_, in BuildFrameFromPcOnly()
170 process_memory_); in Unwind()
192 ThreadUnwinder unwinder(data.max_frames.value_or(max_frames_), maps_.get(), process_memory_); in InternalUnwind()
222 if (process_memory_ == nullptr) { in InternalInitialize()
223 process_memory_ = Memory::CreateProcessMemoryCached(pid_); in InternalInitialize()
DUnwinder.cpp131 process_memory_->Clear(); in Unwind()
166 elf = map_info->GetElf(process_memory_, arch_); in Unwind()
233 if (elf->StepIfSignalHandler(rel_pc, regs_, process_memory_.get())) { in Unwind()
236 } else if (elf->Step(step_pc, regs_, process_memory_.get(), &finished, in Unwind()
281 if (!regs_->SetPcFromReturnAddress(process_memory_.get())) { in Unwind()
389 if (process_memory_ == nullptr) { in Init()
393 process_memory_ = Memory::CreateProcessMemoryThreadCached(pid_); in Init()
397 process_memory_ = Memory::CreateProcessMemoryCached(pid_); in Init()
401 jit_debug_ptr_ = CreateJitDebug(arch_, process_memory_); in Init()
405 dex_files_ptr_ = CreateDexFiles(arch_, process_memory_); in Init()
[all …]
DArmExidx.h56 : regs_(regs), elf_memory_(elf_memory), process_memory_(process_memory) {} in ArmExidx()
113 Memory* process_memory_; variable
DThreadUnwinder.cpp81 process_memory_ = unwinder->process_memory_; in ThreadUnwinder()
DArmExidx.cpp239 if (!process_memory_->Read32(cfa_, &(*regs_)[reg])) { in DecodePrefix_10_00()
332 if (!process_memory_->Read32(cfa_, &(*regs_)[i])) { in DecodePrefix_10_10()
340 if (!process_memory_->Read32(cfa_, &(*regs_)[ARM_REG_R14])) { in DecodePrefix_10_10()
423 if (!process_memory_->Read32(cfa_, &(*regs_)[reg])) { in DecodePrefix_10_11_0001()
/system/unwinding/libbacktrace/
DUnwindStackMap.cpp44 process_memory_ = unwindstack::Memory::CreateProcessMemory(pid_); in Build()
61 jit_debug_ = CreateJitDebug(arch_, process_memory_, search_libs_); in Build()
63 dex_files_ = CreateDexFiles(arch_, process_memory_, search_libs_); in Build()
99 map->load_bias = map_info->GetLoadBias(process_memory_); in FillIn()
116 return map_info->GetLoadBias(process_memory_); in GetLoadBias()
151 return process_memory_; in GetProcessMemory()
DUnwindStackMap.h57 const std::shared_ptr<unwindstack::Memory>& process_memory() { return process_memory_; } in process_memory()
71 std::shared_ptr<unwindstack::Memory> process_memory_; variable
/system/unwinding/libunwindstack/include/unwindstack/
DUnwinder.h60 process_memory_(process_memory), in Unwinder()
63 : max_frames_(max_frames), maps_(maps), process_memory_(process_memory) {} in Unwinder()
97 std::shared_ptr<Memory>& GetProcessMemory() { return process_memory_; } in GetProcessMemory()
127 : max_frames_(max_frames), maps_(maps), process_memory_(process_memory), arch_(arch) {} in Unwinder()
143 std::shared_ptr<Memory> process_memory_; variable
DAndroidUnwinder.h62 : pid_(pid), process_memory_(memory) {} in AndroidUnwinder()
75 std::shared_ptr<Memory>& GetProcessMemory() { return process_memory_; } in GetProcessMemory()
107 std::shared_ptr<Memory> process_memory_; variable