/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_regs.cpp | 33 #define LOG_TAG "DfxRegs" 37 std::shared_ptr<DfxRegs> DfxRegs::Create() in Create() 53 std::shared_ptr<DfxRegs> DfxRegs::CreateFromUcontext(const ucontext_t& context) in CreateFromUcontext() 55 auto dfxregs = DfxRegs::Create(); in CreateFromUcontext() 60 std::shared_ptr<DfxRegs> DfxRegs::CreateFromRegs(const UnwindMode mode, const uintptr_t* regs, in CreateFromRegs() 63 auto dfxregs = DfxRegs::Create(); in CreateFromRegs() 79 std::shared_ptr<DfxRegs> DfxReg [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 | dwarf_op.cpp | 30 AddressType DwarfOp<AddressType>::Eval(DfxRegs& regs, AddressType initStackValue, AddressType startPtr)
in Eval() 52 bool DwarfOp<AddressType>::Decode(DfxRegs& regs, uintptr_t& addr)
in Decode()
|
H A D | unwinder.cpp | 139 inline void SetRegs(const std::shared_ptr<DfxRegs> ®s) in SetRegs() 148 inline const std::shared_ptr<DfxRegs>& GetRegs() const in GetRegs() 231 bool Apply(std::shared_ptr<DfxRegs> regs, std::shared_ptr<RegLocState> rs); 264 std::shared_ptr<DfxRegs> regs_ = nullptr; 319 void Unwinder::SetRegs(std::shared_ptr<DfxRegs> regs) in SetRegs() 324 const std::shared_ptr<DfxRegs>& Unwinder::GetRegs() const in GetRegs() 541 regs_ = DfxRegs::CreateFromUcontext(*(threadContext->ctx)); in UnwindLocalWithTid() 577 regs_ = DfxRegs::CreateFromUcontext(context); in UnwindLocalWithContext() 601 regs_ = DfxRegs::CreateFromRegs(UnwindMode::FRAMEPOINTER_UNWIND, miniRegs, in UnwindLocal() 607 regs_ = DfxRegs in UnwindLocal() [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dfx_regs.h | 31 class DfxRegs { class 33 explicit DfxRegs() : regsData_(REG_LAST) {} in DfxRegs() function in OHOS::HiviewDFX::DfxRegs 34 virtual ~DfxRegs() = default; 36 static std::shared_ptr<DfxRegs> Create(); 37 static std::shared_ptr<DfxRegs> CreateFromUcontext(const ucontext_t& context); 38 static std::shared_ptr<DfxRegs> CreateFromRegs(const UnwindMode mode, const uintptr_t* regs, 40 static std::shared_ptr<DfxRegs> CreateRemoteRegs(pid_t pid); 74 class DfxRegsArm : public DfxRegs { 88 class DfxRegsArm64 : public DfxRegs { 102 class DfxRegsRiscv64 : public DfxRegs { [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 | unwind_context.h | 32 class DfxRegs; 69 std::shared_ptr<DfxRegs> regs = nullptr;
|
H A D | dwarf_op.h | 43 AddressType Eval(DfxRegs& regs, AddressType initStackValue, AddressType startPtr); 46 bool Decode(DfxRegs& regs, uintptr_t& addr); 341 inline void OpReg(uint8_t opcode, DfxRegs& regs) in OpReg() 353 inline void OpRegx(AddressType& exprPtr, DfxRegs& regs) in OpRegx() 364 inline void OpBReg(uint8_t opcode, AddressType& exprPtr, DfxRegs& regs) in OpBReg() 377 inline void OpBRegx(AddressType& exprPtr, DfxRegs& regs) in OpBRegx()
|
H A D | unwinder.h | 53 void SetRegs(std::shared_ptr<DfxRegs> regs); 54 const std::shared_ptr<DfxRegs>& GetRegs() const;
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_thread.h | 46 std::shared_ptr<DfxRegs> GetThreadRegs() const; 47 void SetThreadRegs(const std::shared_ptr<DfxRegs> ®s); 70 std::shared_ptr<DfxRegs> regs_;
|
H A D | dfx_thread.cpp | 62 std::shared_ptr<DfxRegs> DfxThread::GetThreadRegs() const in GetThreadRegs() 67 void DfxThread::SetThreadRegs(const std::shared_ptr<DfxRegs> ®s) in SetThreadRegs()
|
H A D | dfx_fault_stack.h | 45 void CollectRegistersBlock(std::shared_ptr<DfxRegs> regs, std::shared_ptr<DfxMaps> maps);
|
H A D | dfx_process.h | 59 std::shared_ptr<DfxRegs> regs_;
|
H A D | cppcrash_reporter.h | 61 static std::string GetRegsString(std::shared_ptr<DfxRegs> regs);
|
H A D | printer.h | 43 static void PrintRegsByConfig(std::shared_ptr<DfxRegs> regs);
|
H A D | dfx_unwind_remote.cpp | 171 process->regs_ = DfxRegs::CreateFromUcontext(request->context); in UnwindKeyThread() 237 auto regs = DfxRegs::CreateFromUcontext(request->context); in InitTargetKeyThreadRegs() 253 thread->SetThreadRegs(DfxRegs::CreateRemoteRegs(thread->threadInfo_.nsTid)); in InitOtherThreadRegs()
|
H A D | printer.cpp | 138 if (DfxRegs::CreateFromUcontext(request->context) == nullptr) { in PrintReason() 265 void Printer::PrintRegsByConfig(std::shared_ptr<DfxRegs> regs) in PrintRegsByConfig()
|
/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | regs_test.cpp | 41 * @tc.desc: test DfxRegs SetRegsData & GetRegsData functions 47 auto dfxRegs = DfxRegs::Create(); in HWTEST_F() 69 * @tc.desc: test DfxRegs GetSpecialRegisterName 75 auto dfxRegs = DfxRegs::Create(); in HWTEST_F() 123 * @tc.desc: test DfxRegs CreateFromUcontext 173 auto dfxRegs = DfxRegs::CreateFromUcontext(context); in HWTEST_F() 182 * @tc.desc: test DfxRegs SetFromQutMiniRegs SetFromFpMiniRegs 229 * @tc.desc: test DfxRegs CreateFromRegs 243 auto dfxRegs = DfxRegs::CreateFromRegs(UnwindMode::FRAMEPOINTER_UNWIND, regs, sizeof(regs) / sizeof(regs[0])); in HWTEST_F() 247 dfxRegs = DfxRegs in HWTEST_F() [all...] |
H A D | unwinder_pac_test.cpp | 60 auto regs = DfxRegs::CreateRemoteRegs(pid); in HWTEST_F() 99 auto regs = DfxRegs::CreateRemoteRegs(pid); in HWTEST_F()
|
H A D | unwinder_test.cpp | 297 auto regs = DfxRegs::CreateRemoteRegs(child); in HWTEST_F() 334 auto regs = DfxRegs::Create(); in HWTEST_F() 421 auto regs = DfxRegs::CreateRemoteRegs(child); in HWTEST_F() 460 auto regs = DfxRegs::Create(); in HWTEST_F() 494 auto regs = DfxRegs::CreateRemoteRegs(child); in HWTEST_F() 526 auto regs = DfxRegs::Create(); in HWTEST_F() 543 regs = DfxRegs::CreateFromRegs(UnwindMode::FRAMEPOINTER_UNWIND, miniRegs, sizeof(miniRegs) / sizeof(miniRegs[0])); in HWTEST_F() 582 auto regs = DfxRegs::Create(); in HWTEST_F() 620 auto regs = DfxRegs::Create(); in HWTEST_F() 750 auto regs = DfxRegs in HWTEST_F() [all...] |
H A D | instr_statistic_test.cpp | 66 auto regs = DfxRegs::CreateRemoteRegs(pid); in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | process_dump_test.cpp | 182 std::shared_ptr<DfxRegs> inputrefs; in HWTEST_F() 184 std::shared_ptr<DfxRegs> outputrefs = thread->GetThreadRegs(); in HWTEST_F() 204 thread->SetThreadRegs(DfxRegs::CreateRemoteRegs(pid)); in HWTEST_F()
|
H A D | fault_stack_test.cpp | 107 auto reg = DfxRegs::CreateRemoteRegs(childPid); in HWTEST_F()
|
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | thread_sampler_utils.cpp | 78 static std::shared_ptr<DfxRegs> regs = std::make_shared<DfxRegsArm64>(); in DoUnwind()
|
/base/hiviewdfx/faultloggerd/frameworks/localhandler/ |
H A D | dfx_crash_local_handler.cpp | 87 auto regs = OHOS::HiviewDFX::DfxRegs::CreateFromUcontext(*uc); in CrashLocalUnwind()
|