Home
last modified time | relevance | path

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

/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.cpp123 Regs* Regs::CreateFromUcontext(ArchEnum arch, void* ucontext) { in CreateFromUcontext() argument
126 return RegsX86::CreateFromUcontext(ucontext); in CreateFromUcontext()
128 return RegsX86_64::CreateFromUcontext(ucontext); in CreateFromUcontext()
130 return RegsArm::CreateFromUcontext(ucontext); in CreateFromUcontext()
132 return RegsArm64::CreateFromUcontext(ucontext); in CreateFromUcontext()
134 return RegsRiscv64::CreateFromUcontext(ucontext); in CreateFromUcontext()
DThreadEntry.cpp108 ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(sigcontext); in CopyUcontextFromSigcontext() local
110 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()
DAndroidUnwinder.cpp135 bool AndroidUnwinder::Unwind(void* ucontext, AndroidUnwinderData& data) { in Unwind() argument
136 if (ucontext == nullptr) { in Unwind()
145 std::unique_ptr<Regs> regs(Regs::CreateFromUcontext(arch_, ucontext)); in Unwind()
DRegsRiscv64.cpp150 Regs* RegsRiscv64::CreateFromUcontext(void* ucontext) { in CreateFromUcontext() argument
151 riscv64_ucontext_t* riscv64_ucontext = reinterpret_cast<riscv64_ucontext_t*>(ucontext); in CreateFromUcontext()
DRegsArm64.cpp146 Regs* RegsArm64::CreateFromUcontext(void* ucontext) { in CreateFromUcontext() argument
147 arm64_ucontext_t* arm64_ucontext = reinterpret_cast<arm64_ucontext_t*>(ucontext); in CreateFromUcontext()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp57 static void debuggerd_fallback_trace(int output_fd, ucontext_t* ucontext) { in debuggerd_fallback_trace() argument
71 unwindstack::Regs::CreateFromUcontext(unwindstack::Regs::CurrentArch(), ucontext)); in debuggerd_fallback_trace()
85 static void debuggerd_fallback_tombstone(int output_fd, int proto_fd, ucontext_t* ucontext, in debuggerd_fallback_tombstone() argument
93 siginfo, ucontext); in debuggerd_fallback_tombstone()
156 static void trace_handler(siginfo_t* info, ucontext_t* ucontext) { in trace_handler() argument
179 debuggerd_fallback_trace(fd, ucontext); in trace_handler()
209 debuggerd_fallback_trace(output_fd.get(), ucontext); in trace_handler()
274 static void crash_handler(siginfo_t* info, ucontext_t* ucontext, void* abort_message) { in crash_handler() argument
298 debuggerd_fallback_tombstone(output_fd.get(), proto_fd.get(), ucontext, info, abort_message); in crash_handler()
307 extern "C" void debuggerd_fallback_handler(siginfo_t* info, ucontext_t* ucontext, in debuggerd_fallback_handler() argument
[all …]
Ddebuggerd_handler.cpp317 void* ucontext; member
369 {.iov_base = thread_info->ucontext, .iov_len = sizeof(ucontext_t)}, in debuggerd_dispatch_pseudothread()
529 auto *ucontext = static_cast<ucontext_t*>(context); in debuggerd_signal_handler() local
621 debuggerd_fallback_handler(info, ucontext, process_info.abort_msg); in debuggerd_signal_handler()
648 .ucontext = context, in debuggerd_signal_handler()
/system/unwinding/libunwindstack/tests/
DAndroidUnwinderTest.cpp112 void* ucontext = nullptr; in TEST_F() local
113 EXPECT_FALSE(unwinder.Unwind(ucontext, data)); in TEST_F()
210 void* ucontext; in TEST_F() local
215 ucontext = arm_ucontext; in TEST_F()
221 ucontext = arm64_ucontext; in TEST_F()
228 ucontext = x86_ucontext; in TEST_F()
244 ucontext = x86_64_ucontext; in TEST_F()
263 ucontext = riscv64_ucontext; in TEST_F()
268 ucontext = nullptr; in TEST_F()
273 ASSERT_TRUE(ucontext != nullptr); in TEST_F()
[all …]
DUnwindTest.cpp405 void* ucontext; in TEST_F() local
407 ucontext = reinterpret_cast<void*>(g_ucontext.load()); in TEST_F()
408 if (ucontext != nullptr) { in TEST_F()
413 ASSERT_TRUE(ucontext != nullptr) << "Timed out waiting for thread to respond to signal."; in TEST_F()
417 std::unique_ptr<Regs> regs(Regs::CreateFromUcontext(Regs::CurrentArch(), ucontext)); in TEST_F()
/system/unwinding/libunwindstack/include/unwindstack/
DRegsX86_64.h43 void SetFromUcontext(x86_64_ucontext_t* ucontext);
57 static Regs* CreateFromUcontext(void* ucontext);
DRegsX86.h43 void SetFromUcontext(x86_ucontext_t* ucontext);
57 static Regs* CreateFromUcontext(void* ucontext);
DRegsArm.h54 static Regs* CreateFromUcontext(void* ucontext);
DRegsRiscv64.h57 static Regs* CreateFromUcontext(void* ucontext);
DRegsArm64.h67 static Regs* CreateFromUcontext(void* ucontext);
DRegs.h89 static Regs* CreateFromUcontext(ArchEnum arch, void* ucontext);
DAndroidUnwinder.h85 bool Unwind(void* ucontext, AndroidUnwinderData& data);
/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/core/debuggerd/libdebuggerd/
Dtombstone.cpp55 siginfo_t* siginfo, ucontext_t* ucontext) { in engrave_tombstone_ucontext() argument
70 unwindstack::Regs::CreateFromUcontext(unwindstack::Regs::CurrentArch(), ucontext)); in engrave_tombstone_ucontext()
/system/core/debuggerd/
Dprotocol.h90 ucontext_t ucontext; member
Dcrash_dump.cpp354 &crash_info->data.s.ucontext)); in ReadCrashInfo()
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/
Dtombstone.h62 siginfo_t* siginfo, ucontext_t* ucontext);
/system/libziparchive/incfs_support/include/incfs_support/
Dsignal_handling.h189 static void handler(int sig, siginfo_t* info, void* ucontext);