Home
last modified time | relevance | path

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

12

/system/unwinding/libbacktrace/
Dbacktrace_testlib.cpp75 std::vector<uint8_t>* ucontext; member
85 ucontext_t ucontext; in GetContextAndExit() local
86 memset(&ucontext, 0, sizeof(ucontext)); in GetContextAndExit()
88 memcpy(&ucontext.uc_mcontext, regs->RawData(), sizeof(uint32_t) * 16); in GetContextAndExit()
90 memcpy(&ucontext.uc_mcontext, regs->RawData(), sizeof(uint64_t) * 33); in GetContextAndExit()
93 ucontext.uc_mcontext.gregs[0] = reg_data[15]; in GetContextAndExit()
94 ucontext.uc_mcontext.gregs[1] = reg_data[14]; in GetContextAndExit()
95 ucontext.uc_mcontext.gregs[2] = reg_data[13]; in GetContextAndExit()
96 ucontext.uc_mcontext.gregs[3] = reg_data[12]; in GetContextAndExit()
97 ucontext.uc_mcontext.gregs[4] = reg_data[7]; in GetContextAndExit()
[all …]
DBacktraceCurrent.h46 bool Unwind(size_t num_ignore_frames, void* ucontext) override;
54 virtual bool UnwindFromContext(size_t num_ignore_frames, void* ucontext) = 0;
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()
Dbacktrace_test.cpp1529 static void SetUcontextSp(uint64_t sp, ucontext_t* ucontext) { in SetUcontextSp() argument
1531 ucontext->uc_mcontext.arm_sp = sp; in SetUcontextSp()
1533 ucontext->uc_mcontext.sp = sp; in SetUcontextSp()
1535 ucontext->uc_mcontext.gregs[REG_ESP] = sp; in SetUcontextSp()
1537 ucontext->uc_mcontext.gregs[REG_RSP] = sp; in SetUcontextSp()
1540 UNUSED(ucontext); in SetUcontextSp()
1545 static void SetUcontextPc(uint64_t pc, ucontext_t* ucontext) { in SetUcontextPc() argument
1547 ucontext->uc_mcontext.arm_pc = pc; in SetUcontextPc()
1549 ucontext->uc_mcontext.pc = pc; in SetUcontextPc()
1551 ucontext->uc_mcontext.gregs[REG_EIP] = pc; in SetUcontextPc()
[all …]
DBacktraceCurrent.cpp79 bool BacktraceCurrent::Unwind(size_t num_ignore_frames, void* ucontext) { in Unwind() argument
87 if (ucontext) { in Unwind()
88 return UnwindFromContext(num_ignore_frames, ucontext); in Unwind()
DUnwindStack.cpp158 bool UnwindStackCurrent::UnwindFromContext(size_t num_ignore_frames, void* ucontext) { in UnwindFromContext() argument
160 if (ucontext == nullptr) { in UnwindFromContext()
166 regs.reset(unwindstack::Regs::CreateFromUcontext(unwindstack::Regs::CurrentArch(), ucontext)); in UnwindFromContext()
DUnwindStack.h38 bool UnwindFromContext(size_t num_ignore_frames, void* ucontext) override;
/system/unwinding/libunwindstack/
DRegsX86_64.cpp111 void RegsX86_64::SetFromUcontext(x86_64_ucontext_t* ucontext) { in SetFromUcontext() argument
113 memcpy(&regs_[X86_64_REG_R8], &ucontext->uc_mcontext.r8, 8 * sizeof(uint64_t)); in SetFromUcontext()
116 regs_[X86_64_REG_RDI] = ucontext->uc_mcontext.rdi; in SetFromUcontext()
117 regs_[X86_64_REG_RSI] = ucontext->uc_mcontext.rsi; in SetFromUcontext()
118 regs_[X86_64_REG_RBP] = ucontext->uc_mcontext.rbp; in SetFromUcontext()
119 regs_[X86_64_REG_RBX] = ucontext->uc_mcontext.rbx; in SetFromUcontext()
120 regs_[X86_64_REG_RDX] = ucontext->uc_mcontext.rdx; in SetFromUcontext()
121 regs_[X86_64_REG_RAX] = ucontext->uc_mcontext.rax; in SetFromUcontext()
122 regs_[X86_64_REG_RCX] = ucontext->uc_mcontext.rcx; in SetFromUcontext()
123 regs_[X86_64_REG_RSP] = ucontext->uc_mcontext.rsp; in SetFromUcontext()
[all …]
DRegsX86.cpp94 void RegsX86::SetFromUcontext(x86_ucontext_t* ucontext) { in SetFromUcontext() argument
96 regs_[X86_REG_EDI] = ucontext->uc_mcontext.edi; in SetFromUcontext()
97 regs_[X86_REG_ESI] = ucontext->uc_mcontext.esi; in SetFromUcontext()
98 regs_[X86_REG_EBP] = ucontext->uc_mcontext.ebp; in SetFromUcontext()
99 regs_[X86_REG_ESP] = ucontext->uc_mcontext.esp; in SetFromUcontext()
100 regs_[X86_REG_EBX] = ucontext->uc_mcontext.ebx; in SetFromUcontext()
101 regs_[X86_REG_EDX] = ucontext->uc_mcontext.edx; in SetFromUcontext()
102 regs_[X86_REG_ECX] = ucontext->uc_mcontext.ecx; in SetFromUcontext()
103 regs_[X86_REG_EAX] = ucontext->uc_mcontext.eax; in SetFromUcontext()
104 regs_[X86_REG_EIP] = ucontext->uc_mcontext.eip; in SetFromUcontext()
[all …]
DRegs.cpp74 Regs* Regs::CreateFromUcontext(ArchEnum arch, void* ucontext) { in CreateFromUcontext() argument
77 return RegsX86::CreateFromUcontext(ucontext); in CreateFromUcontext()
79 return RegsX86_64::CreateFromUcontext(ucontext); in CreateFromUcontext()
81 return RegsArm::CreateFromUcontext(ucontext); in CreateFromUcontext()
83 return RegsArm64::CreateFromUcontext(ucontext); in CreateFromUcontext()
85 return RegsMips::CreateFromUcontext(ucontext); in CreateFromUcontext()
87 return RegsMips64::CreateFromUcontext(ucontext); in CreateFromUcontext()
DThreadEntry.cpp97 ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(sigcontext); in CopyUcontextFromSigcontext() local
99 memcpy(&ucontext_.uc_mcontext, &ucontext->uc_mcontext, sizeof(ucontext->uc_mcontext)); in CopyUcontextFromSigcontext()
DRegsArm.cpp91 Regs* RegsArm::CreateFromUcontext(void* ucontext) { in CreateFromUcontext() argument
92 arm_ucontext_t* arm_ucontext = reinterpret_cast<arm_ucontext_t*>(ucontext); in CreateFromUcontext()
DRegsMips64.cpp112 Regs* RegsMips64::CreateFromUcontext(void* ucontext) { in CreateFromUcontext() argument
113 mips64_ucontext_t* mips64_ucontext = reinterpret_cast<mips64_ucontext_t*>(ucontext); in CreateFromUcontext()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp72 static void debuggerd_fallback_trace(int output_fd, ucontext_t* ucontext) { in debuggerd_fallback_trace() argument
86 unwindstack::Regs::CreateFromUcontext(unwindstack::Regs::CurrentArch(), ucontext)); in debuggerd_fallback_trace()
101 static void debuggerd_fallback_tombstone(int output_fd, int proto_fd, ucontext_t* ucontext, in debuggerd_fallback_tombstone() argument
109 siginfo, ucontext); in debuggerd_fallback_tombstone()
198 static void trace_handler(siginfo_t* info, ucontext_t* ucontext) { in trace_handler() argument
221 debuggerd_fallback_trace(fd, ucontext); in trace_handler()
251 debuggerd_fallback_trace(output_fd.get(), ucontext); in trace_handler()
314 static void crash_handler(siginfo_t* info, ucontext_t* ucontext, void* abort_message) { in crash_handler() argument
338 debuggerd_fallback_tombstone(output_fd.get(), proto_fd.get(), ucontext, info, abort_message); in crash_handler()
347 extern "C" void debuggerd_fallback_handler(siginfo_t* info, ucontext_t* ucontext, in debuggerd_fallback_handler() argument
[all …]
Ddebuggerd_handler.cpp298 void* ucontext; member
350 {.iov_base = thread_info->ucontext, .iov_len = sizeof(ucontext_t)}, in debuggerd_dispatch_pseudothread()
485 auto *ucontext = static_cast<ucontext_t*>(context); in debuggerd_signal_handler() local
533 debuggerd_fallback_handler(info, ucontext, process_info.abort_msg); in debuggerd_signal_handler()
551 .ucontext = context, in debuggerd_signal_handler()
/system/unwinding/libunwindstack/include/unwindstack/
DRegsX86.h44 void SetFromUcontext(x86_ucontext_t* ucontext);
58 static Regs* CreateFromUcontext(void* ucontext);
DRegsX86_64.h44 void SetFromUcontext(x86_64_ucontext_t* ucontext);
58 static Regs* CreateFromUcontext(void* ucontext);
DRegsMips64.h55 static Regs* CreateFromUcontext(void* ucontext);
DRegsMips.h55 static Regs* CreateFromUcontext(void* ucontext);
DRegsArm.h55 static Regs* CreateFromUcontext(void* ucontext);
/system/libziparchive/incfs_support/
Dsignal_handling.cpp54 void SignalHandler::handler(int sig, siginfo_t* info, void* ucontext) { in handler() argument
75 mOldSigaction.sa_sigaction(sig, info, ucontext); in handler()
/system/unwinding/libbacktrace/testdata/arm/
Doffline_testdata_for_libandroid_runtime2 ucontext: 104 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000…
Doffline_testdata_for_libGLESv2_adreno2 ucontext: 104 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000…
/system/unwinding/libbacktrace/testdata/arm64/
Doffline_testdata_for_libskia3 ucontext: 464 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000…
Doffline_testdata_for_eglSubDriverAndroid3 ucontext: 464 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000…

12