Home
last modified time | relevance | path

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

1234

/linux-6.6.21/tools/testing/selftests/x86/
Dsyscall_arg_fault.c47 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv_or_sigbus()
72 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigtrap()
89 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigill()
Dsysret_rip.c71 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv_for_sigreturn_test()
87 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigusr1()
115 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv_for_fallthrough()
Dsigreturn.c304 static unsigned short *ssptr(ucontext_t *ctx) in ssptr()
310 static unsigned short *csptr(ucontext_t *ctx) in csptr()
320 static greg_t *ssptr(ucontext_t *ctx) in ssptr()
325 static greg_t *csptr(ucontext_t *ctx) in csptr()
391 static void validate_signal_ss(int sig, ucontext_t *ctx) in validate_signal_ss()
437 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigusr1()
477 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigtrap()
522 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigusr2()
Dsingle_step_syscall.c73 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigtrap()
100 ucontext_t *ctx = ctx_void; in print_and_longjmp()
Dmov_ss_trap.c118 ucontext_t *ctx = ctx_void; in sigtrap()
127 ucontext_t *ctx = ctx_void; in handle_and_return()
135 ucontext_t *ctx = ctx_void; in handle_and_longjmp()
/linux-6.6.21/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-force-tm.c45 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()
Dtm-signal-sigreturn-nt.c22 ucontext_t *ucp = (ucontext_t *) uc; in trap_signal_handler()
Dtm-signal-context-chk-gpr.c52 ucontext_t *ucp = uc; in signal_usr1()
53 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1()
Dtm-signal-context-chk-fpu.c50 ucontext_t *ucp = uc; in signal_usr1()
51 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1()
/linux-6.6.21/tools/testing/selftests/powerpc/signal/
Dsigfuz.c62 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()
Dsigreturn_kernel.c24 ucontext_t *uc = (ucontext_t *)uc_ptr; in sigusr1_handler()
/linux-6.6.21/tools/testing/selftests/arm64/signal/
Dtest_signals.h81 ucontext_t saved_uc;
84 ucontext_t *live_uc;
101 int (*run)(struct tdescr *td, siginfo_t *si, ucontext_t *uc);
Dtest_signals_utils.c97 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in handle_signal_unsupported()
132 ((ucontext_t *)uc)->uc_mcontext.sp, in handle_signal_ok()
171 ucontext_t *uc = uc_in; in handle_signal_copyctx()
196 to_copy = __builtin_offsetof(ucontext_t, in handle_signal_copyctx()
203 to_copy = sizeof(ucontext_t); in handle_signal_copyctx()
/linux-6.6.21/tools/testing/selftests/arm64/signal/testcases/
Dsve_regs.c17 ucontext_t uc;
58 static int do_one_sve_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sve_vl()
100 static int sve_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sve_regs()
Dssve_regs.c17 ucontext_t uc;
62 static int do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sme_vl()
111 static int sme_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sme_regs()
Dza_no_regs.c17 ucontext_t uc;
52 static int do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sme_vl()
98 static int sme_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sme_regs()
Dza_regs.c17 ucontext_t uc;
64 static int do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sme_vl()
117 static int sme_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sme_regs()
Dssve_za_regs.c17 ucontext_t uc;
67 static int do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sme_vl()
140 static int sme_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sme_regs()
Dzt_no_regs.c17 ucontext_t uc;
21 int zt_no_regs_run(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in zt_no_regs_run()
Dtpidr2_siginfo.c20 ucontext_t uc;
39 int tpidr2_present(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in tpidr2_present()
Dzt_regs.c17 ucontext_t uc;
27 int zt_regs_run(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in zt_regs_run()
/linux-6.6.21/tools/testing/selftests/powerpc/mm/
Dsegv_errors.c27 ucontext_t *ctxt = (ucontext_t *)ctxt_v; in segv_handler()
/linux-6.6.21/tools/testing/selftests/powerpc/mce/
Dinject-ra-err.c21 ucontext_t *ctxt = (ucontext_t *)ctxt_v; in sigbus_handler()
/linux-6.6.21/tools/testing/selftests/arm64/mte/
Dmte_common_util.c35 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler()
42 ((ucontext_t *)uc)->uc_mcontext.pc, in mte_default_handler()
57 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in mte_default_handler()
68 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler()
77 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in mte_default_handler()
/linux-6.6.21/tools/testing/selftests/powerpc/security/
Dflush_utils.c55 ucontext_t *ctx = (ucontext_t *)unused; in sigill_handler()

1234