/linux/tools/testing/selftests/x86/ |
H A D | syscall_arg_fault.c | 34 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv_or_sigbus() 59 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigtrap() 76 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigill()
|
H A D | sysret_rip.c | 43 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv_for_sigreturn_test() 59 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigusr1() 87 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv_for_fallthrough()
|
H A D | sigreturn.c | 284 static unsigned short *ssptr(ucontext_t *ctx) in ssptr() 290 static unsigned short *csptr(ucontext_t *ctx) in csptr() 300 static greg_t *ssptr(ucontext_t *ctx) in ssptr() 305 static greg_t *csptr(ucontext_t *ctx) in csptr() 371 static void validate_signal_ss(int sig, ucontext_t *ctx) in validate_signal_ss() 417 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigusr1() 457 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigtrap() 502 ucontext_t *ct in sigusr2() [all...] |
H A D | single_step_syscall.c | 51 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigtrap() 78 ucontext_t *ctx = ctx_void; in print_and_longjmp()
|
H A D | sigtrap_loop.c | 37 ucontext_t *ctx = (ucontext_t *)ctx_void; in sigtrap()
|
/linux/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-context-force-tm.c | 45 ucontext_t init_context; 52 ucontext_t *ucp = uc; in usr_signal_handler() 60 ucp->uc_link = mmap(NULL, sizeof(ucontext_t), in usr_signal_handler() 69 ret = madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in usr_signal_handler()
|
H A D | tm-signal-sigreturn-nt.c | 22 ucontext_t *ucp = (ucontext_t *) uc; in trap_signal_handler()
|
/linux/tools/testing/selftests/signal/ |
H A D | mangle_uc_sigmask.c | 17 * ucontext_t describes the interrupted context of the thread; this implies 49 ret = sigismember(&(((ucontext_t *)uc)->uc_sigmask), SIGUSR2); in handler_verify_ucontext() 107 ret = sigismember(&(((ucontext_t *)uc)->uc_sigmask), SIGSEGV); in handler_usr() 111 ret = sigismember(&(((ucontext_t *)uc)->uc_sigmask), SIGUSR1); in handler_usr() 118 if (sigaddset(&((ucontext_t *)uc)->uc_sigmask, SIGUSR2)) in handler_usr()
|
/linux/tools/testing/selftests/powerpc/signal/ |
H A D | sigfuz.c | 62 static ucontext_t *tmp_uc; 91 ucontext_t *ucp = uc; in trap_signal_handler() 102 memset(ucp->uc_link, rand(), sizeof(ucontext_t)); in trap_signal_handler() 104 memcpy(ucp->uc_link, uc, sizeof(ucontext_t)); in trap_signal_handler() 110 tmp_uc = malloc(sizeof(ucontext_t)); in trap_signal_handler() 113 madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in trap_signal_handler() 205 tmp_uc = malloc(sizeof(ucontext_t)); in sigfuz_test()
|
/linux/tools/testing/selftests/arm64/signal/ |
H A D | test_signals.h | 87 ucontext_t saved_uc; 90 ucontext_t *live_uc; 107 int (*run)(struct tdescr *td, siginfo_t *si, ucontext_t *uc);
|
H A D | test_signals_utils.c | 98 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in handle_signal_unsupported() 133 ((ucontext_t *)uc)->uc_mcontext.sp, in handle_signal_ok() 181 ucontext_t *uc = uc_in; in handle_signal_copyctx() 206 to_copy = __builtin_offsetof(ucontext_t, in handle_signal_copyctx() 213 to_copy = sizeof(ucontext_t); in handle_signal_copyctx()
|
/linux/tools/testing/selftests/arm64/signal/testcases/ |
H A D | ssve_regs.c | 19 ucontext_t uc; 42 static int do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sme_vl() 96 static int sme_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sme_regs()
|
H A D | za_regs.c | 19 ucontext_t uc; 44 static int do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sme_vl() 102 static int sme_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sme_regs()
|
H A D | ssve_za_regs.c | 19 ucontext_t uc; 47 static int do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sme_vl() 120 static int sme_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sme_regs()
|
H A D | zt_no_regs.c | 17 ucontext_t uc; 21 int zt_no_regs_run(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in zt_no_regs_run()
|
H A D | fpmr_siginfo.c | 20 ucontext_t uc; 39 int fpmr_present(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in fpmr_present()
|
H A D | tpidr2_siginfo.c | 20 ucontext_t uc; 39 int tpidr2_present(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in tpidr2_present()
|
H A D | poe_siginfo.c | 20 ucontext_t uc; 39 int poe_present(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in poe_present()
|
H A D | zt_regs.c | 17 ucontext_t uc; 27 int zt_regs_run(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in zt_regs_run()
|
H A D | gcs_frame.c | 14 ucontext_t uc; 18 static int gcs_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in gcs_regs()
|
/linux/tools/testing/selftests/powerpc/mm/ |
H A D | segv_errors.c | 27 ucontext_t *ctxt = (ucontext_t *)ctxt_v; in segv_handler()
|
/linux/tools/testing/selftests/powerpc/mce/ |
H A D | inject-ra-err.c | 21 ucontext_t *ctxt = (ucontext_t *)ctxt_v; in sigbus_handler()
|
/linux/tools/testing/selftests/powerpc/security/ |
H A D | flush_utils.c | 55 ucontext_t *ctx = (ucontext_t *)unused; in sigill_handler()
|
/linux/tools/testing/selftests/riscv/sigreturn/ |
H A D | sigreturn.c | 15 ucontext_t *context = vcontext; in simple_handle() 22 ucontext_t *context = vcontext; in vector_override()
|
/linux/tools/testing/selftests/arm64/mte/ |
H A D | mte_common_util.c | 56 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code, si_tag, si_atag); in mte_default_handler() 63 ((ucontext_t *)uc)->uc_mcontext.pc, in mte_default_handler() 83 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in mte_default_handler() 94 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler() 103 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in mte_default_handler()
|