Home
last modified time | relevance | path

Searched refs:DfxRegs (Results 1 - 25 of 33) sorted by relevance

12

/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_regs.cpp33 #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 Ddfx_instructions.cpp38 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 Ddwarf_op.cpp30 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 Dunwinder.cpp139 inline void SetRegs(const std::shared_ptr<DfxRegs> &regs) 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 Ddfx_regs.h31 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 Ddfx_instructions.h33 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 Dunwind_context.h32 class DfxRegs;
69 std::shared_ptr<DfxRegs> regs = nullptr;
H A Ddwarf_op.h43 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 Dunwinder.h53 void SetRegs(std::shared_ptr<DfxRegs> regs);
54 const std::shared_ptr<DfxRegs>& GetRegs() const;
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_thread.h46 std::shared_ptr<DfxRegs> GetThreadRegs() const;
47 void SetThreadRegs(const std::shared_ptr<DfxRegs> &regs);
70 std::shared_ptr<DfxRegs> regs_;
H A Ddfx_thread.cpp62 std::shared_ptr<DfxRegs> DfxThread::GetThreadRegs() const in GetThreadRegs()
67 void DfxThread::SetThreadRegs(const std::shared_ptr<DfxRegs> &regs) in SetThreadRegs()
H A Ddfx_fault_stack.h45 void CollectRegistersBlock(std::shared_ptr<DfxRegs> regs, std::shared_ptr<DfxMaps> maps);
H A Ddfx_process.h59 std::shared_ptr<DfxRegs> regs_;
H A Dcppcrash_reporter.h61 static std::string GetRegsString(std::shared_ptr<DfxRegs> regs);
H A Dprinter.h43 static void PrintRegsByConfig(std::shared_ptr<DfxRegs> regs);
H A Ddfx_unwind_remote.cpp171 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 Dprinter.cpp138 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 Dregs_test.cpp41 * @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 Dunwinder_pac_test.cpp60 auto regs = DfxRegs::CreateRemoteRegs(pid); in HWTEST_F()
99 auto regs = DfxRegs::CreateRemoteRegs(pid); in HWTEST_F()
H A Dunwinder_test.cpp297 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 Dinstr_statistic_test.cpp66 auto regs = DfxRegs::CreateRemoteRegs(pid); in HWTEST_F()
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/
H A Dprocess_dump_test.cpp182 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 Dfault_stack_test.cpp107 auto reg = DfxRegs::CreateRemoteRegs(childPid); in HWTEST_F()
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/
H A Dthread_sampler_utils.cpp78 static std::shared_ptr<DfxRegs> regs = std::make_shared<DfxRegsArm64>(); in DoUnwind()
/base/hiviewdfx/faultloggerd/frameworks/localhandler/
H A Ddfx_crash_local_handler.cpp87 auto regs = OHOS::HiviewDFX::DfxRegs::CreateFromUcontext(*uc); in CrashLocalUnwind()

Completed in 15 milliseconds

12