/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | arm_exidx_test.cpp | 65 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 83 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 106 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 164 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 184 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(ac in HWTEST_F() [all...] |
H A D | memory_test.cpp | 50 * @tc.desc: test DfxMemory class ReadReg 60 auto memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 71 * @tc.desc: test DfxMemory class Read 82 auto memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 105 * @tc.desc: test DfxMemory class Read 115 auto memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 144 * @tc.desc: test DfxMemory class Read 154 auto memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 174 * @tc.desc: test DfxMemory class Read 184 auto memory = std::make_shared<DfxMemory>(ac in HWTEST_F() [all...] |
H A D | dwarf_test.cpp | 67 explicit DwarfSectionTest(std::shared_ptr<DfxMemory> memory) : DwarfSection(memory) {}; in DwarfSectionTest() 90 class DfxMemoryTest : public DfxMemory { 531 auto memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 762 auto memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() 1165 auto memory = std::make_shared<DfxMemory>(); in HWTEST_F() 1209 auto memory = std::make_shared<DfxMemory>(); in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_memory.cpp | 33 #define LOG_TAG "DfxMemory" 41 bool DfxMemory::ReadReg(int regIdx, uintptr_t *val) in ReadReg() 49 bool DfxMemory::ReadMem(uintptr_t addr, uintptr_t *val) in ReadMem() 57 size_t DfxMemory::Read(uintptr_t& addr, void* val, size_t size, bool incre) in Read() 109 bool DfxMemory::ReadU8(uintptr_t& addr, uint8_t *val, bool incre) in ReadU8() 117 bool DfxMemory::ReadU16(uintptr_t& addr, uint16_t *val, bool incre) in ReadU16() 125 bool DfxMemory::ReadU32(uintptr_t& addr, uint32_t *val, bool incre) in ReadU32() 133 bool DfxMemory::ReadU64(uintptr_t& addr, uint64_t *val, bool incre) in ReadU64() 141 bool DfxMemory::ReadUptr(uintptr_t& addr, uintptr_t *val, bool incre) in ReadUptr() 149 bool DfxMemory [all...] |
H A D | dfx_instructions.cpp | 38 bool DfxInstructions::Flush(DfxRegs& regs, std::shared_ptr<DfxMemory> memory, uintptr_t cfa, RegLoc loc, uintptr_t& val) in Flush() 78 bool DfxInstructions::Apply(std::shared_ptr<DfxMemory> memory, DfxRegs& regs, RegLocState& rsState, uint16_t& errCode) in Apply()
|
H A D | dfx_regs_x86_64.cpp | 64 bool DfxRegsX86_64::SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) in SetPcFromReturnAddress() 97 bool DfxRegsX86_64::StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) in StepIfSignalFrame()
|
H A D | dfx_regs_arm.cpp | 95 bool DfxRegsArm::SetPcFromReturnAddress(MAYBE_UNUSED std::shared_ptr<DfxMemory> memory) in SetPcFromReturnAddress() 126 bool DfxRegsArm::StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) in StepIfSignalFrame()
|
H A D | dfx_hap.cpp | 156 auto size = DfxMemory::ReadProcMemByPid(pid, map->begin, abcDataPtr_.get(), abcDataSize_); in ParseHapMemData()
|
H A D | dfx_regs_riscv64.cpp | 95 bool DfxRegsRiscv64::SetPcFromReturnAddress(MAYBE_UNUSED std::shared_ptr<DfxMemory> memory) in SetPcFromReturnAddress() 141 bool DfxRegsRiscv64::StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) in StepIfSignalFrame()
|
H A D | dfx_regs_arm64.cpp | 95 bool DfxRegsArm64::SetPcFromReturnAddress(MAYBE_UNUSED std::shared_ptr<DfxMemory> memory) in SetPcFromReturnAddress() 141 bool DfxRegsArm64::StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) in StepIfSignalFrame()
|
H A D | dfx_map.cpp | 359 size_t byte = DfxMemory::ReadProcMemByPid(pid, begin, shmmData->data(), size); in GetElf()
|
H A D | unwinder.cpp | 262 std::shared_ptr<DfxMemory> memory_ = nullptr; 457 memory_ = std::make_shared<DfxMemory>(acc_); in Init() 1183 return reinterpret_cast<DfxMemory*>(memory)->ReadMem(addr, val); in AccessMem() 1313 size_t rsize = DfxMemory::ReadProcMemByPid(tid, lockAddr, buf, sz); in GetLockInfo()
|
H A D | arm_exidx.cpp | 91 ArmExidx::ArmExidx(std::shared_ptr<DfxMemory> memory) : memory_(memory) in ArmExidx()
|
H A D | dwarf_section.cpp | 31 DwarfSection::DwarfSection(std::shared_ptr<DfxMemory> memory) : memory_(memory)
in DwarfSection()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dfx_regs.h | 45 virtual bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) = 0; 46 virtual bool StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) = 0; 82 bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) override; 83 bool StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) override; 96 bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) override; 97 bool StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) override; 110 bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) override; 111 bool StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) override; 124 bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) override; 125 bool StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memor [all...] |
H A D | dfx_instructions.h | 33 static bool Apply(std::shared_ptr<DfxMemory> memory, DfxRegs& regs, RegLocState& rsState, uint16_t& errCode); 36 static bool Flush(DfxRegs& dfxRegs, std::shared_ptr<DfxMemory> memory, uintptr_t cfa, RegLoc loc, uintptr_t& val);
|
H A D | dwarf_cfa_instructions.h | 31 DwarfCfaInstructions(std::shared_ptr<DfxMemory> memory) : memory_(memory) {};
in DwarfCfaInstructions() 41 std::shared_ptr<DfxMemory> memory_;
|
H A D | dfx_memory.h | 27 class DfxMemory { class 29 DfxMemory() = default; 30 explicit DfxMemory(std::shared_ptr<DfxAccessors> acc) : acc_(acc) {} in DfxMemory() function in OHOS::HiviewDFX::DfxMemory 31 virtual ~DfxMemory() = default;
|
H A D | dwarf_section.h | 31 explicit DwarfSection(std::shared_ptr<DfxMemory> memory);
50 std::shared_ptr<DfxMemory> memory_;
|
H A D | arm_exidx.h | 43 explicit ArmExidx(std::shared_ptr<DfxMemory> memory); 90 std::shared_ptr<DfxMemory> memory_;
|
H A D | dfx_mmap.h | 30 class DfxMmap : public DfxMemory {
|
H A D | dwarf_op.h | 40 DwarfOp(std::shared_ptr<DfxMemory> memory) : memory_(memory) {}; in DwarfOp() 396 std::shared_ptr<DfxMemory> memory_;
|
/base/hiviewdfx/faultloggerd/test/fuzztest/faultloggerdunwinder_fuzzer/ |
H A D | faultloggerdunwinder_fuzzer.cpp | 79 DfxMemory dfxMemory; in TestStepArkFrame() 101 DfxMemory dfxMemory; in TestStepArkFrameWithJit() 120 DfxMemory dfxMemory; in TestJitCodeWriteFile()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | process_dumper.cpp | 152 if (DfxMemory::ReadProcMemByPid(nsPid, addr, entrys, sizeof(FdEntry) * fds) != sizeof(FdEntry) * fds) { in FillFdsaninfo() 165 if (DfxMemory::ReadProcMemByPid(nsPid, tmp, &overflow, sizeof(overflow)) != sizeof(overflow)) { in FillFdsaninfo() 173 if (DfxMemory::ReadProcMemByPid(nsPid, overflow, &overflowLength, sizeof(overflowLength)) in FillFdsaninfo() 183 if (DfxMemory::ReadProcMemByPid(nsPid, address, overflowFdEntrys.data(), sizeof(FdEntry) * overflowLength) != in FillFdsaninfo()
|
H A D | dfx_unwind_async_thread.cpp | 101 size_t byte = DfxMemory::ReadProcMemByPid(thread_->threadInfo_.nsTid, map->begin, tableData->data(), size); in GetSubmitterStack()
|