/freebsd/lib/libc/x86/gen/ |
H A D | getcontextx.c | 58 return (sizeof(ucontext_t) + xstate_sz); in __getcontextx_size_xfpu() 76 ucontext_t *ucp; in __fillcontextx2_xfpu() 78 ucp = (ucontext_t *)ctx; in __fillcontextx2_xfpu() 92 ucontext_t *ucp; in __fillcontextx2_noxfpu() 94 ucp = (ucontext_t *)ctx; in __fillcontextx2_noxfpu() 110 ucontext_t *ucp; in __fillcontextx() 112 ucp = (ucontext_t *)ctx; in __fillcontextx() 121 ucontext_t * 136 return ((ucontext_t *)ctx); in __getcontextx()
|
/freebsd/sys/sys/ |
H A D | ucontext.h | 44 int getcontext(ucontext_t *) __returns_twice; 45 ucontext_t *getcontextx(void); 46 int setcontext(const ucontext_t *); 47 void makecontext(ucontext_t *, void (*)(void), int, ...); 48 int signalcontext(ucontext_t *, int, __sighandler_t *); 49 int swapcontext(ucontext_t *, const ucontext_t *);
|
/freebsd/sys/amd64/amd64/ |
H A D | genassym.c | 202 ASSYM(UC_EFLAGS, offsetof(ucontext_t, uc_mcontext.mc_rflags)); 203 ASSYM(UC_RDI, offsetof(ucontext_t, uc_mcontext.mc_rdi)); 204 ASSYM(UC_RSI, offsetof(ucontext_t, uc_mcontext.mc_rsi)); 205 ASSYM(UC_RDX, offsetof(ucontext_t, uc_mcontext.mc_rdx)); 206 ASSYM(UC_RCX, offsetof(ucontext_t, uc_mcontext.mc_rcx)); 207 ASSYM(UC_R8, offsetof(ucontext_t, uc_mcontext.mc_r8)); 208 ASSYM(UC_R9, offsetof(ucontext_t, uc_mcontext.mc_r9)); 209 ASSYM(UC_RAX, offsetof(ucontext_t, uc_mcontext.mc_rax)); 210 ASSYM(UC_RBX, offsetof(ucontext_t, uc_mcontext.mc_rbx)); 211 ASSYM(UC_RBP, offsetof(ucontext_t, uc_mcontext.mc_rbp)); [all …]
|
/freebsd/lib/libc/aarch64/gen/ |
H A D | getcontextx.c | 37 size = sizeof(ucontext_t); in __getcontextx_size() 47 ucontext_t *ucp; in __fillcontextx2() 49 ucp = (ucontext_t *)ctx; in __fillcontextx2() 62 ucontext_t *ucp; in __fillcontextx() 64 ucp = (ucontext_t *)ctx; in __fillcontextx() 73 ucontext_t * 88 return ((ucontext_t *)ctx); in __getcontextx()
|
H A D | makecontext.c | 41 ctx_done(ucontext_t *ucp) in ctx_done() 47 setcontext((const ucontext_t *)ucp->uc_link); in ctx_done() 55 __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) in __makecontext()
|
/freebsd/lib/libc/powerpc64/gen/ |
H A D | signalcontext.c | 38 static void ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig, 44 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) in __signalcontext() 47 ucontext_t *sig_uc; in __signalcontext() 57 sp = (ucp->uc_mcontext.mc_gpr[1] - sizeof(ucontext_t)) & ~15UL; in __signalcontext() 58 sig_uc = (ucontext_t *)sp; in __signalcontext() 91 ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig, uint32_t sig_si, in ctx_wrapper() 98 setcontext((const ucontext_t *)ucp->uc_link); in ctx_wrapper()
|
H A D | makecontext.c | 39 void _ctx_done(ucontext_t *ucp); 43 _ctx_done(ucontext_t *ucp) in _ctx_done() 51 setcontext((const ucontext_t *)ucp->uc_link); in _ctx_done() 58 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) in __makecontext()
|
/freebsd/lib/libc/powerpc/gen/ |
H A D | signalcontext.c | 38 static void ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig, 44 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) in __signalcontext() 47 ucontext_t *sig_uc; in __signalcontext() 57 sp = (ucp->uc_mcontext.mc_gpr[1] - sizeof(ucontext_t)) & ~15UL; in __signalcontext() 58 sig_uc = (ucontext_t *)sp; in __signalcontext() 91 ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig, uint32_t sig_si, in ctx_wrapper() 98 setcontext((const ucontext_t *)ucp->uc_link); in ctx_wrapper()
|
H A D | makecontext.c | 39 void _ctx_done(ucontext_t *ucp); 43 _ctx_done(ucontext_t *ucp) in _ctx_done() 51 setcontext((const ucontext_t *)ucp->uc_link); in _ctx_done() 58 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) in __makecontext()
|
/freebsd/lib/libthread_db/ |
H A D | libpthread_db.h | 84 void pt_reg_to_ucontext(const struct reg *, ucontext_t *); 85 void pt_ucontext_to_reg(const ucontext_t *, struct reg *); 86 void pt_fpreg_to_ucontext(const struct fpreg *, ucontext_t *); 87 void pt_ucontext_to_fpreg(const ucontext_t *, struct fpreg *); 89 void pt_fxsave_to_ucontext(const char *, ucontext_t *); 90 void pt_ucontext_to_fxsave(const ucontext_t *, char *);
|
/freebsd/lib/libc/amd64/gen/ |
H A D | signalcontext.c | 38 static void sigctx_wrapper(ucontext_t *ucp, handler_t func, uint64_t *args); 43 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) in __signalcontext() 47 ucontext_t *sig_uc; in __signalcontext() 60 sp = (ucp->uc_mcontext.mc_rsp - 128 - sizeof(ucontext_t)) & ~15UL; in __signalcontext() 61 sig_uc = (ucontext_t *)sp; in __signalcontext() 95 sigctx_wrapper(ucontext_t *ucp, handler_t func, uint64_t *args) in sigctx_wrapper() 101 setcontext((const ucontext_t *)ucp->uc_link); in sigctx_wrapper()
|
H A D | makecontext.c | 38 static void makectx_wrapper(ucontext_t *ucp, func_t func, uint64_t *args); 43 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) in __makecontext() 97 makectx_wrapper(ucontext_t *ucp, func_t func, uint64_t *args) in makectx_wrapper() 102 setcontext((const ucontext_t *)ucp->uc_link); in makectx_wrapper()
|
/freebsd/lib/libthread_db/arch/i386/ |
H A D | libpthread_md.c | 39 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() 46 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() 53 pt_fpreg_to_ucontext(const struct fpreg* r, ucontext_t *uc) in pt_fpreg_to_ucontext() 68 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() 82 pt_fxsave_to_ucontext(const char* r, ucontext_t *uc) in pt_fxsave_to_ucontext() 89 pt_ucontext_to_fxsave(const ucontext_t *uc, char *r) in pt_ucontext_to_fxsave() 98 ucontext_t uc; in pt_md_init()
|
/freebsd/lib/libc/gen/ |
H A D | trivial-getcontextx.c | 36 return (sizeof(ucontext_t)); in __getcontextx_size() 49 ucontext_t *ucp; in __fillcontextx() 51 ucp = (ucontext_t *)ctx; in __fillcontextx() 57 ucontext_t * 72 return ((ucontext_t *)ctx); in __getcontextx()
|
/freebsd/sys/kern/ |
H A D | kern_context.c | 45 #define UC_COPY_SIZE offsetof(ucontext_t, uc_link) 63 ucontext_t uc; in sys_getcontext() 69 bzero(&uc, sizeof(ucontext_t)); in sys_getcontext() 82 ucontext_t uc; in sys_setcontext() 103 ucontext_t uc; in sys_swapcontext() 109 bzero(&uc, sizeof(ucontext_t)); in sys_swapcontext()
|
/freebsd/lib/libc/sys/ |
H A D | swapcontext.c | 45 swapcontext(ucontext_t *oucp, const ucontext_t *ucp) in swapcontext()
|
/freebsd/lib/libc/arm/gen/ |
H A D | getcontextx.c | 36 ucontext_t ucontext; 51 ucontext_t *ucp; in __fillcontextx2() 82 ucontext_t * 97 return ((ucontext_t *)ctx); in __getcontextx()
|
/freebsd/lib/libc/tests/gen/ |
H A D | makecontext_test.c | 43 ucontext_t ctx[2]; in ATF_TC_BODY() 65 ucontext_t ctx[2]; in ATF_TC_BODY() 88 ucontext_t ctx[2]; in ATF_TC_BODY() 112 ucontext_t ctx[2]; in ATF_TC_BODY() 137 ucontext_t ctx[2]; in ATF_TC_BODY() 163 ucontext_t ctx[2]; in ATF_TC_BODY()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_sig.c | 68 static void handle_signal(struct sigaction *, int, siginfo_t *, ucontext_t *); 71 static void check_cancel(struct pthread *curthread, ucontext_t *ucp); 77 int _setcontext(const ucontext_t *); 78 int _swapcontext(ucontext_t *, const ucontext_t *); 188 sigcancel_handler(int sig __unused, siginfo_t *info __unused, ucontext_t *ucp) in sigcancel_handler() 211 ucontext_t *ucp; in thr_sighandler() 246 handle_signal(struct sigaction *actp, int sig, siginfo_t *info, ucontext_t *ucp) in handle_signal() 328 check_cancel(struct pthread *curthread, ucontext_t *ucp) in check_cancel() 377 ucontext_t *uc; in check_deferred_signal() 784 __thr_setcontext(const ucontext_t *ucp) in __thr_setcontext() [all …]
|
/freebsd/lib/libthread_db/arch/powerpc/ |
H A D | libpthread_md.c | 36 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() 44 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() 52 pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc) in pt_fpreg_to_ucontext() 61 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg()
|
/freebsd/lib/libc/i386/gen/ |
H A D | makecontext.c | 39 extern void _ctx_start(ucontext_t *, int argc, ...); 45 _ctx_done (ucontext_t *ucp) in _ctx_done() 59 setcontext((const ucontext_t *)ucp->uc_link); in _ctx_done() 65 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) in __makecontext()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_linux.cpp | 207 static int HashContextStack(const ucontext_t &ucp) { in HashContextStack() 215 ucontext_t *ucp = reinterpret_cast<ucontext_t *>(context); in SignContextStack() 220 const ucontext_t *ucp = reinterpret_cast<const ucontext_t *>(context); in ReadContextStack()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_linux.cpp | 1943 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() 1960 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { return false; } in Aarch64GetESR() 1963 using Context = ucontext_t; 2253 static void DumpSingleReg(ucontext_t *ctx, int RegNum) { in DumpSingleReg() 2267 ucontext_t *ucontext = (ucontext_t *)context; in DumpAllRegisters() 2355 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp() 2360 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp() 2366 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp() 2371 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp() 2377 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp() [all …]
|
/freebsd/lib/libthread_db/arch/riscv/ |
H A D | libpthread_md.c | 42 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() 60 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() 78 pt_fpreg_to_ucontext(const struct fpreg *r __unused, ucontext_t *uc __unused) in pt_fpreg_to_ucontext() 87 pt_ucontext_to_fpreg(const ucontext_t *uc __unused, struct fpreg *r __unused) in pt_ucontext_to_fpreg()
|
/freebsd/lib/libc/riscv/gen/ |
H A D | makecontext.c | 47 ctx_done(ucontext_t *ucp) in ctx_done() 53 setcontext((const ucontext_t *)ucp->uc_link); in ctx_done() 61 __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) in __makecontext()
|