Home
last modified time | relevance | path

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

/system/core/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 …]
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
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()
DMapInfoGetElfTest.cpp48 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 …]
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()
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 …]
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 …]
DUnwinderTest.cpp139 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(), &regs_, process_memory_); in TEST_F()
232 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
293 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
323 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
353 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
383 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
421 Unwinder unwinder(64, maps_.get(), &regs_, process_memory_); in TEST_F()
[all …]
DDexFilesTest.cpp55 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()
DUnwindOfflineTest.cpp80 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 …]
DJitDebugTest.cpp53 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/
DUnwindStackMap.cpp44 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()
DUnwindStackMap.h55 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/
DLocalUnwinder.cpp56 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()
DUnwinder.cpp170 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()
DArmExidx.h57 : regs_(regs), elf_memory_(elf_memory), process_memory_(process_memory) {} in ArmExidx()
114 Memory* process_memory_; variable
DArmExidx.cpp238 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/
DUnwinder.h67 : 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
DLocalUnwinder.h79 std::shared_ptr<Memory> process_memory_; variable