Home
last modified time | relevance | path

Searched refs:ucontext (Results 1 – 17 of 17) 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.cpp54 void UnwindCurrent::GetUnwContextFromUcontext(const ucontext_t* ucontext) { in GetUnwContextFromUcontext() argument
58 unw_context->regs[0] = ucontext->uc_mcontext.arm_r0; in GetUnwContextFromUcontext()
59 unw_context->regs[1] = ucontext->uc_mcontext.arm_r1; in GetUnwContextFromUcontext()
60 unw_context->regs[2] = ucontext->uc_mcontext.arm_r2; in GetUnwContextFromUcontext()
61 unw_context->regs[3] = ucontext->uc_mcontext.arm_r3; in GetUnwContextFromUcontext()
62 unw_context->regs[4] = ucontext->uc_mcontext.arm_r4; in GetUnwContextFromUcontext()
63 unw_context->regs[5] = ucontext->uc_mcontext.arm_r5; in GetUnwContextFromUcontext()
64 unw_context->regs[6] = ucontext->uc_mcontext.arm_r6; in GetUnwContextFromUcontext()
65 unw_context->regs[7] = ucontext->uc_mcontext.arm_r7; in GetUnwContextFromUcontext()
66 unw_context->regs[8] = ucontext->uc_mcontext.arm_r8; in GetUnwContextFromUcontext()
[all …]
Dbacktrace_offline_test.cpp49 ucontext_t ucontext; in GetUContextFromUnwContext() local
50 memset(&ucontext, 0, sizeof(ucontext)); in GetUContextFromUnwContext()
52 ucontext.uc_mcontext.arm_r0 = unw_context.regs[0]; in GetUContextFromUnwContext()
53 ucontext.uc_mcontext.arm_r1 = unw_context.regs[1]; in GetUContextFromUnwContext()
54 ucontext.uc_mcontext.arm_r2 = unw_context.regs[2]; in GetUContextFromUnwContext()
55 ucontext.uc_mcontext.arm_r3 = unw_context.regs[3]; in GetUContextFromUnwContext()
56 ucontext.uc_mcontext.arm_r4 = unw_context.regs[4]; in GetUContextFromUnwContext()
57 ucontext.uc_mcontext.arm_r5 = unw_context.regs[5]; in GetUContextFromUnwContext()
58 ucontext.uc_mcontext.arm_r6 = unw_context.regs[6]; in GetUContextFromUnwContext()
59 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;
Dbacktrace_test.cpp1435 static void SetUcontextSp(uintptr_t sp, ucontext_t* ucontext) { in SetUcontextSp() argument
1437 ucontext->uc_mcontext.arm_sp = sp; in SetUcontextSp()
1439 ucontext->uc_mcontext.sp = sp; in SetUcontextSp()
1441 ucontext->uc_mcontext.gregs[REG_ESP] = sp; in SetUcontextSp()
1443 ucontext->uc_mcontext.gregs[REG_RSP] = sp; in SetUcontextSp()
1446 UNUSED(ucontext); in SetUcontextSp()
1451 static void SetUcontextPc(uintptr_t pc, ucontext_t* ucontext) { in SetUcontextPc() argument
1453 ucontext->uc_mcontext.arm_pc = pc; in SetUcontextPc()
1455 ucontext->uc_mcontext.pc = pc; in SetUcontextPc()
1457 ucontext->uc_mcontext.gregs[REG_EIP] = pc; in SetUcontextPc()
[all …]
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.cpp82 bool UnwindPtrace::Unwind(size_t num_ignore_frames, ucontext_t* ucontext) { in Unwind() argument
91 if (ucontext) { in Unwind()
DUnwindPtrace.h37 bool Unwind(size_t num_ignore_frames, ucontext_t* ucontext) override;
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp63 static void debuggerd_fallback_trace(int output_fd, ucontext_t* ucontext) { in debuggerd_fallback_trace() argument
65 dump_backtrace_ucontext(output_fd, ucontext); in debuggerd_fallback_trace()
69 static void debuggerd_fallback_tombstone(int output_fd, ucontext_t* ucontext, siginfo_t* siginfo, in debuggerd_fallback_tombstone() argument
73 ucontext); in debuggerd_fallback_tombstone()
131 static void trace_handler(siginfo_t* info, ucontext_t* ucontext) { in trace_handler() argument
136 debuggerd_fallback_trace(trace_output_fd, ucontext); in trace_handler()
161 debuggerd_fallback_trace(output_fd.get(), ucontext); in trace_handler()
207 static void crash_handler(siginfo_t* info, ucontext_t* ucontext, void* abort_message) { in crash_handler() argument
218 debuggerd_fallback_tombstone(output_fd.get(), ucontext, info, abort_message); in crash_handler()
224 extern "C" void debuggerd_fallback_handler(siginfo_t* info, ucontext_t* ucontext, in debuggerd_fallback_handler() argument
[all …]
/system/core/debuggerd/libdebuggerd/include/
Dtombstone.h44 ucontext_t* ucontext);
49 siginfo_t* siginfo, ucontext_t* ucontext) { in engrave_tombstone_ucontext() argument
50 engrave_tombstone_ucontext(tombstone_fd, abort_msg_address, siginfo, ucontext); in engrave_tombstone_ucontext()
Dbacktrace.h39 void dump_backtrace_ucontext(int output_fd, ucontext_t* ucontext);
/system/core/debuggerd/libdebuggerd/arm64/
Dmachine.cpp101 void dump_registers(log_t* log, const ucontext_t* ucontext) { in dump_registers() argument
102 const mcontext_t& r = ucontext->uc_mcontext; in dump_registers()
/system/core/libbacktrace/include/backtrace/
DBacktrace.h69 struct ucontext;
70 typedef ucontext ucontext_t;
/system/core/debuggerd/libdebuggerd/
Dbacktrace.cpp96 void dump_backtrace_ucontext(int output_fd, ucontext_t* ucontext) { in dump_backtrace_ucontext() argument
109 if (backtrace->Unwind(0, ucontext)) { in dump_backtrace_ucontext()
Dtombstone.cpp741 ucontext_t* ucontext) { in engrave_tombstone_ucontext() argument
764 dump_registers(&log, ucontext); in engrave_tombstone_ucontext()
767 if (backtrace->Unwind(0, ucontext)) { in engrave_tombstone_ucontext()