Home
last modified time | relevance | path

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

12

/tools/testing/selftests/arm64/signal/
Dtest_signals_utils.c86 siginfo_t *si, void *uc) in handle_signal_unsupported() argument
108 siginfo_t *si, void *uc) in handle_signal_trigger() argument
112 td->run(td, si, uc); in handle_signal_trigger()
118 siginfo_t *si, void *uc) in handle_signal_ok() argument
128 si->si_addr, si->si_code, td->token, td->token - si->si_addr); in handle_signal_ok()
146 if (td->sig_ok == SIGSEGV && si->si_code != SEGV_ACCERR) { in handle_signal_ok()
164 siginfo_t *si, void *uc) in handle_signal_copyctx() argument
177 static void default_handler(int signum, siginfo_t *si, void *uc) in default_handler() argument
180 handle_signal_unsupported(current, si, uc)) { in default_handler()
183 handle_signal_trigger(current, si, uc)) { in default_handler()
[all …]
/tools/testing/selftests/x86/
Dcheck_initial_reg_state.c11 unsigned long ax, bx, cx, dx, si, di, bp, sp, flags; variable
63 if (ax || bx || cx || dx || si || di || bp in main()
74 SHOW(si); in main()
Dptrace_syscall.c86 siginfo_t si; in wait_trap() local
87 if (waitid(P_PID, chld, &si, WEXITED|WSTOPPED) != 0) in wait_trap()
89 if (si.si_pid != chld) in wait_trap()
91 if (si.si_code != CLD_TRAPPED) in wait_trap()
92 errx(1, "got unexpected event type %d\n", si.si_code); in wait_trap()
93 return si; in wait_trap()
135 static void empty_handler(int sig, siginfo_t *si, void *ctx_void) in empty_handler() argument
Dmov_ss_trap.c116 static void sigtrap(int sig, siginfo_t *si, void *ctx_void) in sigtrap() argument
125 static void handle_and_return(int sig, siginfo_t *si, void *ctx_void) in handle_and_return() argument
133 static void handle_and_longjmp(int sig, siginfo_t *si, void *ctx_void) in handle_and_longjmp() argument
/tools/testing/selftests/filesystems/
Ddnotify_test.c11 static void handler(int sig, siginfo_t *si, void *data) in handler() argument
13 event_fd = si->si_fd; in handler()
/tools/testing/selftests/powerpc/ptrace/
Dptrace-syscall.c43 siginfo_t si; in wait_trap() local
45 if (waitid(P_PID, chld, &si, WEXITED|WSTOPPED) != 0) in wait_trap()
47 if (si.si_pid != chld) in wait_trap()
49 if (si.si_code != CLD_TRAPPED) in wait_trap()
50 errx(1, "got unexpected event type %d\n", si.si_code); in wait_trap()
/tools/testing/selftests/arm64/signal/testcases/
Dsve_regs.c55 static int do_one_sve_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, in do_one_sve_vl() argument
97 static int sve_regs(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sve_regs() argument
110 if (do_one_sve_vl(td, si, uc, vls[i])) in sve_regs()
Dmangle_pstate_invalid_compat_toggle.c13 static int mangle_invalid_pstate_run(struct tdescr *td, siginfo_t *si, in mangle_invalid_pstate_run() argument
Dfake_sigreturn_misaligned_sp.c19 siginfo_t *si, ucontext_t *uc) in fake_sigreturn_misaligned_run() argument
Dmangle_pstate_invalid_daif_bits.c14 static int mangle_invalid_pstate_run(struct tdescr *td, siginfo_t *si, in mangle_invalid_pstate_run() argument
Dmangle_pstate_invalid_mode_template.h10 static int mangle_invalid_pstate_run(struct tdescr *td, siginfo_t *si, \
Dfake_sigreturn_bad_size_for_magic0.c19 siginfo_t *si, ucontext_t *uc) in fake_sigreturn_bad_size_for_magic0_run() argument
Dfake_sigreturn_duplicated_fpsimd.c19 siginfo_t *si, ucontext_t *uc) in fake_sigreturn_duplicated_fpsimd_run() argument
Dfake_sigreturn_bad_magic.c19 siginfo_t *si, ucontext_t *uc) in fake_sigreturn_bad_magic_run() argument
Dfake_sigreturn_missing_fpsimd.c20 siginfo_t *si, ucontext_t *uc) in fake_sigreturn_missing_fpsimd_run() argument
Dsve_vl.c30 static int sve_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc) in sve_vl() argument
/tools/testing/selftests/powerpc/include/
Dpkeys.h95 int siginfo_pkey(siginfo_t *si) in siginfo_pkey() argument
102 return si->si_pkey; in siginfo_pkey()
104 return *((int *)(((char *) si) + SI_PKEY_OFFSET)); in siginfo_pkey()
/tools/testing/selftests/arm64/mte/
Dmte_common_util.c28 void mte_default_handler(int signum, siginfo_t *si, void *uc) in mte_default_handler() argument
30 unsigned long addr = (unsigned long)si->si_addr; in mte_default_handler()
35 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler()
37 if (si->si_code == SEGV_MTEAERR) { in mte_default_handler()
38 if (cur_mte_cxt.trig_si_code == si->si_code) in mte_default_handler()
43 else if (si->si_code == SEGV_MTESERR) { in mte_default_handler()
44 if (cur_mte_cxt.trig_si_code == si->si_code && in mte_default_handler()
64 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler()
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DEventClass.py60 flags, ip, ax, bx, cx, dx, si, di, bp, sp = struct.unpack('QQQQQQQQQQ', tmp_buf)
67 self.si = si
/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-force-tm.c50 void usr_signal_handler(int signo, siginfo_t *si, void *uc) in usr_signal_handler() argument
100 void seg_signal_handler(int signo, siginfo_t *si, void *uc) in seg_signal_handler() argument
Dtm-signal-sigreturn-nt.c20 void trap_signal_handler(int signo, siginfo_t *si, void *uc) in trap_signal_handler() argument
Dtm-trap.c61 void trap_signal_handler(int signo, siginfo_t *si, void *uc) in trap_signal_handler() argument
179 void usr1_signal_handler(int signo, siginfo_t *si, void *not_used) in usr1_signal_handler() argument
/tools/testing/selftests/vm/
Dpkey-helpers.h189 static inline u32 *siginfo_get_pkey_ptr(siginfo_t *si) in siginfo_get_pkey_ptr() argument
192 return &si->si_pkey; in siginfo_get_pkey_ptr()
194 return (u32 *)(((u8 *)si) + si_pkey_offset); in siginfo_get_pkey_ptr()
/tools/testing/selftests/arm64/fp/
Dsve-ptrace.c141 siginfo_t si; in do_parent() local
177 if (ptrace(PTRACE_GETSIGINFO, pid, NULL, &si)) { in do_parent()
191 if (sig == SIGSTOP && si.si_code == SI_TKILL && in do_parent()
192 si.si_pid == pid) in do_parent()
/tools/testing/selftests/sigaltstack/
Dsas.c43 void my_usr1(int sig, siginfo_t *si, void *u) in my_usr1() argument
80 void my_usr2(int sig, siginfo_t *si, void *u) in my_usr2() argument

12