Home
last modified time | relevance | path

Searched refs:ucontext (Results 1 – 10 of 10) sorted by relevance

/system/extras/simpleperf/
Ddwarf_unwind.cpp35 ucontext_t ucontext; in BuildUContextFromRegs() local
36 memset(&ucontext, 0, sizeof(ucontext)); in BuildUContextFromRegs()
38 SetUContextReg(ucontext.uc_mcontext.gregs[REG_GS], PERF_REG_X86_GS); in BuildUContextFromRegs()
39 SetUContextReg(ucontext.uc_mcontext.gregs[REG_FS], PERF_REG_X86_FS); in BuildUContextFromRegs()
40 SetUContextReg(ucontext.uc_mcontext.gregs[REG_ES], PERF_REG_X86_ES); in BuildUContextFromRegs()
41 SetUContextReg(ucontext.uc_mcontext.gregs[REG_DS], PERF_REG_X86_DS); in BuildUContextFromRegs()
42 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EAX], PERF_REG_X86_AX); in BuildUContextFromRegs()
43 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EBX], PERF_REG_X86_BX); in BuildUContextFromRegs()
44 SetUContextReg(ucontext.uc_mcontext.gregs[REG_ECX], PERF_REG_X86_CX); in BuildUContextFromRegs()
45 SetUContextReg(ucontext.uc_mcontext.gregs[REG_EDX], PERF_REG_X86_DX); in BuildUContextFromRegs()
[all …]
/system/core/libbacktrace/
DUnwindCurrent.cpp43 void UnwindCurrent::GetUnwContextFromUcontext(const ucontext_t* ucontext) { in GetUnwContextFromUcontext() argument
47 unw_context->regs[0] = ucontext->uc_mcontext.arm_r0; in GetUnwContextFromUcontext()
48 unw_context->regs[1] = ucontext->uc_mcontext.arm_r1; in GetUnwContextFromUcontext()
49 unw_context->regs[2] = ucontext->uc_mcontext.arm_r2; in GetUnwContextFromUcontext()
50 unw_context->regs[3] = ucontext->uc_mcontext.arm_r3; in GetUnwContextFromUcontext()
51 unw_context->regs[4] = ucontext->uc_mcontext.arm_r4; in GetUnwContextFromUcontext()
52 unw_context->regs[5] = ucontext->uc_mcontext.arm_r5; in GetUnwContextFromUcontext()
53 unw_context->regs[6] = ucontext->uc_mcontext.arm_r6; in GetUnwContextFromUcontext()
54 unw_context->regs[7] = ucontext->uc_mcontext.arm_r7; in GetUnwContextFromUcontext()
55 unw_context->regs[8] = ucontext->uc_mcontext.arm_r8; in GetUnwContextFromUcontext()
[all …]
Dbacktrace_offline_test.cpp51 ucontext_t ucontext; in GetUContextFromUnwContext() local
52 memset(&ucontext, 0, sizeof(ucontext)); in GetUContextFromUnwContext()
54 ucontext.uc_mcontext.arm_r0 = unw_context.regs[0]; in GetUContextFromUnwContext()
55 ucontext.uc_mcontext.arm_r1 = unw_context.regs[1]; in GetUContextFromUnwContext()
56 ucontext.uc_mcontext.arm_r2 = unw_context.regs[2]; in GetUContextFromUnwContext()
57 ucontext.uc_mcontext.arm_r3 = unw_context.regs[3]; in GetUContextFromUnwContext()
58 ucontext.uc_mcontext.arm_r4 = unw_context.regs[4]; in GetUContextFromUnwContext()
59 ucontext.uc_mcontext.arm_r5 = unw_context.regs[5]; in GetUContextFromUnwContext()
60 ucontext.uc_mcontext.arm_r6 = unw_context.regs[6]; in GetUContextFromUnwContext()
61 ucontext.uc_mcontext.arm_r7 = unw_context.regs[7]; in GetUContextFromUnwContext()
[all …]
DUnwindCurrent.h42 void GetUnwContextFromUcontext(const ucontext_t* ucontext);
44 bool UnwindFromContext(size_t num_ignore_frames, ucontext_t* ucontext) override;
DThreadEntry.cpp128 ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(sigcontext); in CopyUcontextFromSigcontext() local
130 memcpy(&ucontext_.uc_mcontext, &ucontext->uc_mcontext, sizeof(ucontext->uc_mcontext)); in CopyUcontextFromSigcontext()
DBacktraceCurrent.h47 bool Unwind(size_t num_ignore_frames, ucontext_t* ucontext) override;
55 virtual bool UnwindFromContext(size_t num_ignore_frames, ucontext_t* ucontext) = 0;
DBacktraceCurrent.cpp67 bool BacktraceCurrent::Unwind(size_t num_ignore_frames, ucontext_t* ucontext) { in Unwind() argument
75 if (ucontext) { in Unwind()
76 return UnwindFromContext(num_ignore_frames, ucontext); in Unwind()
DUnwindPtrace.cpp50 bool UnwindPtrace::Unwind(size_t num_ignore_frames, ucontext_t* ucontext) { in Unwind() argument
59 if (ucontext) { in Unwind()
DUnwindPtrace.h37 bool Unwind(size_t num_ignore_frames, ucontext_t* ucontext) override;
/system/core/include/backtrace/
DBacktrace.h69 struct ucontext;
70 typedef ucontext ucontext_t;