Home
last modified time | relevance | path

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

1234

/freebsd/lib/libc/x86/gen/
H A Dgetcontextx.c58 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 Ducontext.h44 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/lib/libc/aarch64/gen/
H A Dgetcontextx.c37 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 Dmakecontext.c41 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/sys/amd64/amd64/
H A Dgenassym.c203 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));
207 ASSYM(UC_R8, offsetof(ucontext_t, uc_mcontext.mc_r8));
208 ASSYM(UC_R9, offsetof(ucontext_t, uc_mcontext.mc_r9));
218 ASSYM(UC_FS, offsetof(ucontext_t, uc_mcontext.mc_fs));
219 ASSYM(UC_GS, offsetof(ucontext_t, uc_mcontext.mc_gs));
220 ASSYM(UC_ES, offsetof(ucontext_t, uc_mcontext.mc_es));
221 ASSYM(UC_DS, offsetof(ucontext_t, uc_mcontext.mc_ds));
223 ASSYM(UC_CS, offsetof(ucontext_t, uc_mcontext.mc_cs));
[all …]
/freebsd/lib/libthread_db/
H A Dlibpthread_db.h84 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/powerpc/gen/
H A Dsignalcontext.c38 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 Dmakecontext.c39 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/powerpc64/gen/
H A Dsignalcontext.c38 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 Dmakecontext.c39 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/amd64/gen/
H A Dsignalcontext.c38 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 Dmakecontext.c38 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/libc/gen/
H A Dtrivial-getcontextx.c36 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/lib/libthread_db/arch/i386/
H A Dlibpthread_md.c39 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/sys/kern/
H A Dkern_context.c45 #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/arm/gen/
H A Dgetcontextx.c36 ucontext_t ucontext;
51 ucontext_t *ucp; in __fillcontextx2()
82 ucontext_t *
97 return ((ucontext_t *)ctx); in __getcontextx()
/freebsd/lib/libthread_db/arch/powerpc/
H A Dlibpthread_md.c36 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/tests/gen/
H A Dmakecontext_test.c43 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 Dthr_sig.c71 static void check_cancel(struct pthread *curthread, ucontext_t *ucp);
77 int _setcontext(const ucontext_t *);
78 int _swapcontext(ucontext_t *, const ucontext_t *);
189 siginfo_t *info __unused, ucontext_t *ucp) in sigcancel_handler()
212 ucontext_t *ucp; in thr_sighandler()
329 check_cancel(struct pthread *curthread, ucontext_t *ucp) in check_cancel()
376 ucontext_t *uc; in check_deferred_signal()
784 __thr_setcontext(const ucontext_t *ucp) in __thr_setcontext()
786 ucontext_t uc; in __thr_setcontext()
800 __thr_swapcontext(ucontext_t *oucp, const ucontext_t *ucp) in __thr_swapcontext()
[all …]
/freebsd/lib/libc/i386/gen/
H A Dmakecontext.c39 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/lib/libthread_db/arch/aarch64/
H A Dlibpthread_md.c39 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext()
51 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg()
63 pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc) in pt_fpreg_to_ucontext()
72 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_linux.cpp214 static int HashContextStack(const ucontext_t &ucp) { in HashContextStack()
222 ucontext_t *ucp = reinterpret_cast<ucontext_t *>(context); in SignContextStack()
227 const ucontext_t *ucp = reinterpret_cast<const ucontext_t *>(context); in ReadContextStack()
/freebsd/lib/libthread_db/arch/riscv/
H A Dlibpthread_md.c42 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 Dmakecontext.c47 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()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp2115 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2120 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2126 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2131 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2137 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2144 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2149 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2156 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2161 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2181 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
[all …]

1234