Home
last modified time | relevance | path

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

12

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.cc1266 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() argument
1268 u8 *aux = ucontext->uc_mcontext.__reserved; in Aarch64GetESR()
1283 ucontext_t *ucontext = (ucontext_t *)context; in GetWriteFlag() local
1287 uptr err = ucontext->uc_mcontext.mc_err; in GetWriteFlag()
1289 uptr err = ucontext->uc_mcontext.gregs[REG_ERR]; in GetWriteFlag()
1294 uptr fsr = ucontext->uc_mcontext.error_code; in GetWriteFlag()
1303 if (!Aarch64GetESR(ucontext, &esr)) return UNKNOWN; in GetWriteFlag()
1306 (void)ucontext; in GetWriteFlag()
1313 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() local
1314 *pc = ucontext->uc_mcontext.arm_pc; in GetPcSpBp()
[all …]
Dsanitizer_mac.cc518 ucontext_t *ucontext = static_cast<ucontext_t*>(context); in GetWriteFlag() local
519 return ucontext->uc_mcontext->__es.__err & 2 /*T_PF_WRITE*/ ? WRITE : READ; in GetWriteFlag()
526 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() local
528 *pc = ucontext->uc_mcontext->__ss.__pc; in GetPcSpBp()
530 *bp = ucontext->uc_mcontext->__ss.__fp; in GetPcSpBp()
532 *bp = ucontext->uc_mcontext->__ss.__lr; in GetPcSpBp()
534 *sp = ucontext->uc_mcontext->__ss.__sp; in GetPcSpBp()
536 *pc = ucontext->uc_mcontext->__ss.__rip; in GetPcSpBp()
537 *bp = ucontext->uc_mcontext->__ss.__rbp; in GetPcSpBp()
538 *sp = ucontext->uc_mcontext->__ss.__rsp; in GetPcSpBp()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.cpp1796 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() argument
1798 u8 *aux = ucontext->uc_mcontext.__reserved; in Aarch64GetESR()
1815 Context *ucontext = (Context *)context; in GetWriteFlag() local
1819 uptr err = ucontext->uc_mcontext.mc_err; in GetWriteFlag()
1821 uptr err = ucontext->uc_mcontext.__gregs[_REG_ERR]; in GetWriteFlag()
1824 uptr err = ucontext->uc_mcontext.gregs[Err]; in GetWriteFlag()
1826 uptr err = ucontext->uc_mcontext.gregs[REG_ERR]; in GetWriteFlag()
1834 exception_source = (uint32_t *)ucontext->uc_mcontext.pc; in GetWriteFlag()
1880 uptr fsr = ucontext->uc_mcontext.error_code; in GetWriteFlag()
1885 if (!Aarch64GetESR(ucontext, &esr)) return UNKNOWN; in GetWriteFlag()
[all …]
Dsanitizer_mac.cpp804 ucontext_t *ucontext = static_cast<ucontext_t*>(context); in GetWriteFlag() local
805 return ucontext->uc_mcontext->__es.__err & 2 /*T_PF_WRITE*/ ? WRITE : READ; in GetWriteFlag()
820 (void *)arm_thread_state64_get_##r(ucontext->uc_mcontext->__ss), 0)
822 #define AARCH64_GET_REG(r) ucontext->uc_mcontext->__ss.__##r
826 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() local
836 *pc = ucontext->uc_mcontext->__ss.__rip; in GetPcSpBp()
837 *bp = ucontext->uc_mcontext->__ss.__rbp; in GetPcSpBp()
838 *sp = ucontext->uc_mcontext->__ss.__rsp; in GetPcSpBp()
840 *pc = ucontext->uc_mcontext->__ss.__pc; in GetPcSpBp()
841 *bp = ucontext->uc_mcontext->__ss.__r[7]; in GetPcSpBp()
[all …]
/external/llvm-project/compiler-rt/test/tsan/
Dfiber_asm.cpp6 struct ucontext { struct
42 void ucontext_init(ucontext *context, void *stack, unsigned stack_sz, in ucontext_init()
57 void ucontext_free(ucontext *context) { in ucontext_free()
62 void ucontext_switch(ucontext *save, ucontext *load) { in ucontext_switch()
70 ucontext uc, orig_uc;
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc254 void* ucontext, bool symbolize_stacktrace, in WriteStackTrace() argument
263 ucontext, &min_dropped_frames); in WriteStackTrace()
265 absl::debugging_internal::GetProgramCounter(ucontext), stack, frame_sizes, in WriteStackTrace()
272 static void WriteFailureInfo(int signo, void* ucontext, in WriteFailureInfo() argument
276 WriteStackTrace(ucontext, fsh_options.symbolize_stacktrace, WriterFnWrapper, in WriteFailureInfo()
312 void* ucontext = nullptr; in AbslFailureSignalHandler() local
314 static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) { in AbslFailureSignalHandler()
325 signo, absl::debugging_internal::GetProgramCounter(ucontext)); in AbslFailureSignalHandler()
347 WriteFailureInfo(signo, ucontext, WriteToStderr); in AbslFailureSignalHandler()
352 WriteFailureInfo(signo, ucontext, fsh_options.writerfn); in AbslFailureSignalHandler()
/external/openscreen/third_party/abseil/src/absl/debugging/
Dfailure_signal_handler.cc254 void* ucontext, bool symbolize_stacktrace, in WriteStackTrace() argument
263 ucontext, &min_dropped_frames); in WriteStackTrace()
265 absl::debugging_internal::GetProgramCounter(ucontext), stack, frame_sizes, in WriteStackTrace()
272 static void WriteFailureInfo(int signo, void* ucontext, in WriteFailureInfo() argument
276 WriteStackTrace(ucontext, fsh_options.symbolize_stacktrace, WriterFnWrapper, in WriteFailureInfo()
312 void* ucontext = nullptr; in AbslFailureSignalHandler() local
314 static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) { in AbslFailureSignalHandler()
325 signo, absl::debugging_internal::GetProgramCounter(ucontext)); in AbslFailureSignalHandler()
347 WriteFailureInfo(signo, ucontext, WriteToStderr); in AbslFailureSignalHandler()
352 WriteFailureInfo(signo, ucontext, fsh_options.writerfn); in AbslFailureSignalHandler()
/external/angle/third_party/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc263 void* ucontext, bool symbolize_stacktrace, in WriteStackTrace() argument
272 ucontext, &min_dropped_frames); in WriteStackTrace()
274 absl::debugging_internal::GetProgramCounter(ucontext), stack, frame_sizes, in WriteStackTrace()
281 static void WriteFailureInfo(int signo, void* ucontext, int cpu, in WriteFailureInfo() argument
285 WriteStackTrace(ucontext, fsh_options.symbolize_stacktrace, WriterFnWrapper, in WriteFailureInfo()
321 void* ucontext = nullptr; in AbslFailureSignalHandler() local
323 static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) { in AbslFailureSignalHandler()
334 signo, absl::debugging_internal::GetProgramCounter(ucontext)); in AbslFailureSignalHandler()
364 WriteFailureInfo(signo, ucontext, my_cpu, WriteToStderr); in AbslFailureSignalHandler()
369 WriteFailureInfo(signo, ucontext, my_cpu, fsh_options.writerfn); in AbslFailureSignalHandler()
/external/libtextclassifier/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc254 void* ucontext, bool symbolize_stacktrace, in WriteStackTrace() argument
263 ucontext, &min_dropped_frames); in WriteStackTrace()
265 absl::debugging_internal::GetProgramCounter(ucontext), stack, frame_sizes, in WriteStackTrace()
272 static void WriteFailureInfo(int signo, void* ucontext, in WriteFailureInfo() argument
276 WriteStackTrace(ucontext, fsh_options.symbolize_stacktrace, WriterFnWrapper, in WriteFailureInfo()
312 void* ucontext = nullptr; in AbslFailureSignalHandler() local
314 static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) { in AbslFailureSignalHandler()
325 signo, absl::debugging_internal::GetProgramCounter(ucontext)); in AbslFailureSignalHandler()
347 WriteFailureInfo(signo, ucontext, WriteToStderr); in AbslFailureSignalHandler()
352 WriteFailureInfo(signo, ucontext, fsh_options.writerfn); in AbslFailureSignalHandler()
/external/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc254 void* ucontext, bool symbolize_stacktrace, in WriteStackTrace() argument
263 ucontext, &min_dropped_frames); in WriteStackTrace()
265 absl::debugging_internal::GetProgramCounter(ucontext), stack, frame_sizes, in WriteStackTrace()
272 static void WriteFailureInfo(int signo, void* ucontext, in WriteFailureInfo() argument
276 WriteStackTrace(ucontext, fsh_options.symbolize_stacktrace, WriterFnWrapper, in WriteFailureInfo()
312 void* ucontext = nullptr; in AbslFailureSignalHandler() local
314 static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) { in AbslFailureSignalHandler()
325 signo, absl::debugging_internal::GetProgramCounter(ucontext)); in AbslFailureSignalHandler()
347 WriteFailureInfo(signo, ucontext, WriteToStderr); in AbslFailureSignalHandler()
352 WriteFailureInfo(signo, ucontext, fsh_options.writerfn); in AbslFailureSignalHandler()
/external/webrtc/third_party/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc254 void* ucontext, bool symbolize_stacktrace, in WriteStackTrace() argument
263 ucontext, &min_dropped_frames); in WriteStackTrace()
265 absl::debugging_internal::GetProgramCounter(ucontext), stack, frame_sizes, in WriteStackTrace()
272 static void WriteFailureInfo(int signo, void* ucontext, in WriteFailureInfo() argument
276 WriteStackTrace(ucontext, fsh_options.symbolize_stacktrace, WriterFnWrapper, in WriteFailureInfo()
312 void* ucontext = nullptr; in AbslFailureSignalHandler() local
314 static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) { in AbslFailureSignalHandler()
325 signo, absl::debugging_internal::GetProgramCounter(ucontext)); in AbslFailureSignalHandler()
347 WriteFailureInfo(signo, ucontext, WriteToStderr); in AbslFailureSignalHandler()
352 WriteFailureInfo(signo, ucontext, fsh_options.writerfn); in AbslFailureSignalHandler()
/external/kernel-headers/original/uapi/asm-generic/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/external/kernel-headers/original/uapi/asm-arm64/asm/
Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/external/ltp/testcases/kernel/syscalls/rt_sigqueueinfo/
Drt_sigqueueinfo01.c33 static void received_signal(int sig, siginfo_t *info, void *ucontext) in received_signal() argument
35 if (info && ucontext) { in received_signal()
/external/ltp/testcases/kernel/syscalls/pidfd_send_signal/
Dpidfd_send_signal01.c26 static void received_signal(int sig, siginfo_t *info, void *ucontext) in received_signal() argument
28 if (info && ucontext) { in received_signal()
/external/gwp_asan/gwp_asan/optional/
Dsegv_handler_posix.cpp162 static void sigSegvHandler(int sig, siginfo_t *info, void *ucontext) { in sigSegvHandler() argument
170 PrintBacktraceForSignalHandler, ucontext); in sigSegvHandler()
175 PreviousHandler.sa_sigaction(sig, info, ucontext); in sigSegvHandler()
/external/llvm-project/compiler-rt/lib/gwp_asan/optional/
Dsegv_handler_posix.cpp35 static void sigSegvHandler(int sig, siginfo_t *info, void *ucontext) { in sigSegvHandler() argument
43 PrintfForSignalHandler, PrintBacktraceForSignalHandler, ucontext); in sigSegvHandler()
48 PreviousHandler.sa_sigaction(sig, info, ucontext); in sigSegvHandler()
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerUtilPosix.cpp38 static void SegvHandler(int sig, siginfo_t *si, void *ucontext) { in SegvHandler() argument
41 return upstream_segv_handler(sig, si, ucontext); in SegvHandler()
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerUtilPosix.cpp38 static void SegvHandler(int sig, siginfo_t *si, void *ucontext) { in SegvHandler() argument
41 return upstream_segv_handler(sig, si, ucontext); in SegvHandler()
/external/swiftshader/third_party/marl/
DCMakeLists.txt54 …(MARL_FIBERS_USE_UCONTEXT "Use ucontext instead of assembly for fibers (ignored for platforms that…
119 # Check whether ucontext is supported.
123 "#include <ucontext.h>
135 …message(WARNING "MARL_FIBERS_USE_UCONTEXT is enabled, but ucontext is not supported by the target.…
/external/ltp/testcases/cve/
Dmeltdown.c108 ucontext_t *ucontext = context; in sigsegv() local
109 unsigned long *prip = (unsigned long *)&ucontext->uc_mcontext.gregs[REG_RIP]; in sigsegv()
/external/strace/tests-mx32/
Dsignal_receive.c38 handler(int sig, siginfo_t *info, void *ucontext) in handler() argument
/external/strace/tests/
Dsignal_receive.c38 handler(int sig, siginfo_t *info, void *ucontext) in handler() argument
/external/strace/tests-m32/
Dsignal_receive.c38 handler(int sig, siginfo_t *info, void *ucontext) in handler() argument
/external/webrtc/third_party/abseil-cpp/absl/debugging/internal/
Dstacktrace_aarch64-inl.inc8 #include <ucontext.h>
87 // ucontext to discover frame pointer before signal.

12