Home
last modified time | relevance | path

Searched refs:signum (Results 1 – 25 of 55) sorted by relevance

123

/linux-6.6.21/tools/testing/selftests/arm64/signal/
Dtest_signals_utils.c57 static void unblock_signal(int signum) in unblock_signal() argument
62 sigaddset(&sset, signum); in unblock_signal()
233 static void default_handler(int signum, siginfo_t *si, void *uc) in default_handler() argument
235 if (current->sig_unsupp && signum == current->sig_unsupp && in default_handler()
238 } else if (current->sig_trig && signum == current->sig_trig && in default_handler()
241 } else if (current->sig_ok && signum == current->sig_ok && in default_handler()
244 } else if (signum == sig_copyctx && current->live_uc && in default_handler()
248 if (signum == SIGALRM && current->timeout) { in default_handler()
253 signum, si->si_code, si->si_addr); in default_handler()
/linux-6.6.21/tools/testing/selftests/powerpc/tm/
Dtm-signal-msr-resv.c26 void signal_segv(int signum) in signal_segv() argument
28 if (segv_expected && (signum == SIGSEGV)) in signal_segv()
33 void signal_usr1(int signum, siginfo_t *info, void *uc) in signal_usr1() argument
Dtm-signal-stack.c27 void signal_segv(int signum) in signal_segv() argument
Dtm-signal-context-chk-gpr.c49 static void signal_usr1(int signum, siginfo_t *info, void *uc) in signal_usr1() argument
Dtm-signal-context-chk-fpu.c47 static void signal_usr1(int signum, siginfo_t *info, void *uc) in signal_usr1() argument
/linux-6.6.21/tools/testing/selftests/timers/
Dalarmtimer-suspend.c125 int signum = SIGRTMAX; in main() local
131 sigaction(signum, &act, NULL); in main()
136 se.sigev_signo = signum; in main()
Dleap-a-day.c181 int signum = SIGRTMAX; in main() local
228 sigaction(signum, &act, NULL); in main()
294 se.sigev_signo = signum; in main()
Dset-timer-lat.c255 int signum = SIGRTMAX; in main() local
262 sigaction(signum, &act, NULL); in main()
/linux-6.6.21/fs/
Dfcntl.c391 err = filp->f_owner.signum; in do_fcntl()
399 filp->f_owner.signum = argi; in do_fcntl()
725 int signum = READ_ONCE(fown->signum); in send_sigio_to_task() local
727 if (!sigio_perm(p, fown, signum)) in send_sigio_to_task()
730 switch (signum) { in send_sigio_to_task()
741 si.si_signo = signum; in send_sigio_to_task()
752 if ((signum != SIGPOLL) && sig_specific_sicodes(signum)) in send_sigio_to_task()
764 if (!do_send_sig_info(signum, &si, p, type)) in send_sigio_to_task()
1004 if (!(sig == SIGURG && fown->signum == 0)) in kill_fasync_rcu()
/linux-6.6.21/tools/testing/selftests/x86/
Dtest_shadow_stack.c209 void segv_handler(int signum, siginfo_t *si, void *uc) in segv_handler() argument
255 void test_access_fix_handler(int signum, siginfo_t *si, void *uc) in test_access_fix_handler() argument
611 int sigaction32(int signum, const struct sigaction *restrict act, in sigaction32() argument
615 register long signum_reg asm("ebx") = signum; in sigaction32()
632 void segv_gp_handler(int signum, siginfo_t *si, void *uc) in segv_gp_handler() argument
684 void segv_handler_ptrace(int signum, siginfo_t *si, void *uc) in segv_handler_ptrace() argument
/linux-6.6.21/tools/testing/selftests/mqueue/
Dmq_perf_tests.c155 void sig_action_SIGUSR1(int signum, siginfo_t *info, void *context);
156 void sig_action(int signum, siginfo_t *info, void *context);
213 void sig_action_SIGUSR1(int signum, siginfo_t *info, void *context) in sig_action_SIGUSR1() argument
219 "exiting\n", signum); in sig_action_SIGUSR1()
226 void sig_action(int signum, siginfo_t *info, void *context) in sig_action() argument
229 pthread_kill(main_thread, signum); in sig_action()
231 fprintf(stderr, "Caught signal %d, exiting\n", signum); in sig_action()
/linux-6.6.21/tools/testing/selftests/resctrl/
Dresctrl.h89 void run_benchmark(int signum, siginfo_t *info, void *ucontext);
105 void ctrlc_handler(int signum, siginfo_t *info, void *ptr);
/linux-6.6.21/tools/testing/selftests/arm64/abi/
Dhwcap.c626 static int install_sigaction(int signum, sighandler_fn handler) in install_sigaction() argument
635 ret = sigaction(signum, &sa, NULL); in install_sigaction()
643 static void uninstall_sigaction(int signum) in uninstall_sigaction() argument
645 if (sigaction(signum, NULL, NULL) < 0) in uninstall_sigaction()
/linux-6.6.21/tools/testing/selftests/powerpc/mm/
Dwild_bctr.c33 static void segv_handler(int signum, siginfo_t *info, void *ctxt_v) in segv_handler() argument
39 static void usr2_handler(int signum, siginfo_t *info, void *ctxt_v) in usr2_handler() argument
Dexec_prot.c45 static void trap_handler(int signum, siginfo_t *sinfo, void *ctx) in trap_handler() argument
54 static void segv_handler(int signum, siginfo_t *sinfo, void *ctx) in segv_handler() argument
Dpkey_exec_prot.c30 static void trap_handler(int signum, siginfo_t *sinfo, void *ctx) in trap_handler() argument
39 static void segv_handler(int signum, siginfo_t *sinfo, void *ctx) in segv_handler() argument
/linux-6.6.21/tools/testing/selftests/powerpc/dexcr/
Dhashchk_test.c33 static void hashchk_handler(int signum, siginfo_t *info, void *context) in hashchk_handler() argument
35 if (signum != SIGILL) in hashchk_handler()
Ddexcr.c15 static void generic_signal_handler(int signum, siginfo_t *info, void *context) in generic_signal_handler() argument
/linux-6.6.21/tools/testing/selftests/arm64/pauth/
Dpac.c189 void pac_signal_handler(int signum, siginfo_t *si, void *uc) in pac_signal_handler() argument
191 if (signum == SIGSEGV || signum == SIGILL) in pac_signal_handler()
/linux-6.6.21/tools/perf/tests/
Dbp_signal.c69 static void sig_handler_2(int signum __maybe_unused, in sig_handler_2()
81 static void sig_handler(int signum __maybe_unused, in sig_handler()
/linux-6.6.21/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
32 if (signum == SIGSEGV) { in mte_default_handler()
66 } else if (signum == SIGBUS) { in mte_default_handler()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dsend_signal_sched_switch.c12 static void sigusr1_handler(int signum) in sigusr1_handler() argument
/linux-6.6.21/arch/s390/kernel/
Druntime_instr.c70 SYSCALL_DEFINE2(s390_runtime_instr, int, command, int, signum) in SYSCALL_DEFINE2() argument
/linux-6.6.21/tools/testing/selftests/powerpc/pmu/sampling_tests/
Dmmcr2_fcs_fch_test.c19 static void sig_usr2_handler(int signum, siginfo_t *info, void *data) in sig_usr2_handler() argument
/linux-6.6.21/tools/testing/selftests/powerpc/
Dharness.c90 static void sig_handler(int signum) in sig_handler() argument

123