/linux-6.12.1/tools/testing/selftests/mm/ |
D | pkey_sighandler_tests.c | 160 struct sigaction sa; in test_sigsegv_handler_with_pkey0_disabled() 168 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_sigsegv_handler_with_pkey0_disabled() 200 struct sigaction sa; in test_sigsegv_handler_cannot_access_stack() 208 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_sigsegv_handler_cannot_access_stack() 237 struct sigaction sa; in test_sigsegv_handler_with_different_pkey_for_stack() 249 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_sigsegv_handler_with_different_pkey_for_stack() 309 struct sigaction sa; in test_pkru_preserved_after_sigusr1() 316 if (sigaction(SIGUSR1, &sa, NULL) == -1) { in test_pkru_preserved_after_sigusr1() 381 struct sigaction sa = {0}; in test_pkru_sigreturn() 396 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_pkru_sigreturn() [all …]
|
/linux-6.12.1/tools/testing/selftests/clone3/ |
D | clone3_clear_sighand.c | 47 struct sigaction act; in test_clone3_clear_sighand() 69 ret = sigaction(SIGUSR1, &act, NULL); in test_clone3_clear_sighand() 76 ret = sigaction(SIGUSR2, &act, NULL); in test_clone3_clear_sighand() 90 ret = sigaction(SIGUSR1, NULL, &act); in test_clone3_clear_sighand() 97 ret = sigaction(SIGUSR2, NULL, &act); in test_clone3_clear_sighand()
|
/linux-6.12.1/tools/testing/selftests/x86/ |
D | test_shadow_stack.c | 222 struct sigaction sa = {}; in test_shstk_violation() 226 if (sigaction(SIGSEGV, &sa, NULL)) in test_shstk_violation() 318 struct sigaction sa = {}; in test_gup() 324 if (sigaction(SIGSEGV, &sa, NULL)) in test_gup() 401 struct sigaction sa = {}; in test_mprotect() 405 if (sigaction(SIGSEGV, &sa, NULL)) in test_mprotect() 486 struct sigaction sa = {}; in test_userfaultfd() 493 if (sigaction(SIGSEGV, &sa, NULL)) in test_userfaultfd() 665 int sigaction32(int signum, const struct sigaction *restrict act, in sigaction32() 666 struct sigaction *restrict oldact) in sigaction32() [all …]
|
D | sigaltstack.c | 33 struct sigaction sa; in sethandler() 39 if (sigaction(sig, &sa, 0)) in sethandler() 45 struct sigaction sa; in clearhandler() 50 if (sigaction(sig, &sa, 0)) in clearhandler()
|
D | ioperm.c | 28 struct sigaction sa; in sethandler() 33 if (sigaction(sig, &sa, 0)) in sethandler() 40 struct sigaction sa; in clearhandler() 44 if (sigaction(sig, &sa, 0)) in clearhandler()
|
D | nx_stack.c | 164 struct sigaction act = {}; in main() 168 int rv = sigaction(SIGSEGV, &act, NULL); in main() 172 struct sigaction act = {}; in main() 176 int rv = sigaction(SIGTRAP, &act, NULL); in main()
|
D | sysret_rip.c | 37 struct sigaction sa; in sethandler() 42 if (sigaction(sig, &sa, 0)) in sethandler() 48 struct sigaction sa; in clearhandler() 52 if (sigaction(sig, &sa, 0)) in clearhandler()
|
D | single_step_syscall.c | 39 struct sigaction sa; in sethandler() 44 if (sigaction(sig, &sa, 0)) in sethandler() 50 struct sigaction sa; in clearhandler() 54 if (sigaction(sig, &sa, 0)) in clearhandler()
|
D | iopl.c | 28 struct sigaction sa; in sethandler() 33 if (sigaction(sig, &sa, 0)) in sethandler() 40 struct sigaction sa; in clearhandler() 44 if (sigaction(sig, &sa, 0)) in clearhandler()
|
/linux-6.12.1/tools/testing/selftests/arm64/bti/ |
D | signal.h | 18 int sigaction(int n, struct sigaction *sa, const struct sigaction *old);
|
D | signal.c | 29 int sigaction(int n, struct sigaction *sa, const struct sigaction *old) in sigaction() function
|
/linux-6.12.1/tools/testing/selftests/perf_events/ |
D | remove_on_exec.c | 71 struct sigaction oldact; in FIXTURE() 78 struct sigaction action = {}; in FIXTURE_SETUP() 86 ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0); in FIXTURE_SETUP() 96 sigaction(SIGTRAP, &self->oldact, NULL); in FIXTURE_TEARDOWN() 231 struct sigaction action = {}; in exec_child() 238 if (sigaction(SIGTRAP, &action, NULL)) in exec_child()
|
/linux-6.12.1/arch/x86/um/ |
D | bugs_32.c | 25 struct sigaction old, new; in arch_check_bugs() 33 sigaction(SIGILL, &new, &old); in arch_check_bugs() 42 sigaction(SIGILL, &old, &new); in arch_check_bugs()
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | tracelog.c | 127 const struct sigaction act = { in do_tracelog() 145 sigaction(SIGHUP, &act, NULL); in do_tracelog() 146 sigaction(SIGINT, &act, NULL); in do_tracelog() 147 sigaction(SIGTERM, &act, NULL); in do_tracelog()
|
/linux-6.12.1/tools/testing/selftests/powerpc/mm/ |
D | wild_bctr.c | 126 struct sigaction segv = { in test_wild_bctr() 130 struct sigaction usr2 = { in test_wild_bctr() 135 FAIL_IF(sigaction(SIGSEGV, &segv, NULL)); in test_wild_bctr() 136 FAIL_IF(sigaction(SIGUSR2, &usr2, NULL)); in test_wild_bctr()
|
D | subpage_prot.c | 151 struct sigaction act = { in test_anon() 165 sigaction(SIGSEGV, &act, NULL); in test_anon() 187 struct sigaction act = { in test_file() 202 sigaction(SIGSEGV, &act, NULL); in test_file()
|
D | bad_accesses.c | 70 struct sigaction sig; in test() 73 sig = (struct sigaction) { in test() 78 FAIL_IF(sigaction(SIGSEGV, &sig, NULL) != 0); in test()
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | perf_skip.c | 37 struct sigaction action = {}; in serial_test_perf_skip() 38 struct sigaction previous_sigtrap; in serial_test_perf_skip() 50 if (!ASSERT_OK(sigaction(SIGTRAP, &action, &previous_sigtrap), "sigaction")) in serial_test_perf_skip() 136 sigaction(SIGTRAP, &previous_sigtrap, NULL); in serial_test_perf_skip()
|
/linux-6.12.1/tools/testing/selftests/powerpc/signal/ |
D | signal_tm.c | 44 struct sigaction act; in test_signal_tm() 49 if (sigaction(SIGUSR1, &act, NULL) < 0) { in test_signal_tm() 53 if (sigaction(SIGALRM, &act, NULL) < 0) { in test_signal_tm()
|
D | signal.c | 39 struct sigaction act; in test_signal() 46 if (sigaction(SIGUSR1, &act, NULL) < 0) { in test_signal() 50 if (sigaction(SIGALRM, &act, NULL) < 0) { in test_signal()
|
/linux-6.12.1/tools/testing/selftests/powerpc/tm/ |
D | tm-trap.c | 255 struct sigaction trap_sa; in tm_trap_test() 262 sigaction(SIGTRAP, &trap_sa, NULL); in tm_trap_test() 264 struct sigaction usr1_sa; in tm_trap_test() 268 sigaction(SIGUSR1, &usr1_sa, NULL); in tm_trap_test()
|
D | tm-signal-context-force-tm.c | 110 struct sigaction usr_sa, seg_sa; in tm_trap_test() 153 sigaction(SIGUSR1, &usr_sa, NULL); in tm_trap_test() 155 sigaction(SIGSEGV, &seg_sa, NULL); in tm_trap_test()
|
/linux-6.12.1/tools/testing/selftests/powerpc/ |
D | harness.c | 95 static struct sigaction sig_action = { 111 if (sigaction(SIGINT, &sig_action, NULL)) { in test_harness() 117 if (sigaction(SIGALRM, &sig_action, NULL)) { in test_harness()
|
/linux-6.12.1/tools/testing/selftests/resctrl/ |
D | resctrl_val.c | 472 struct sigaction sigact = {}; in signal_handler_register() 481 if (sigaction(SIGINT, &sigact, NULL) || in signal_handler_register() 482 sigaction(SIGTERM, &sigact, NULL) || in signal_handler_register() 483 sigaction(SIGHUP, &sigact, NULL)) { in signal_handler_register() 497 struct sigaction sigact = {}; in signal_handler_unregister() 502 if (sigaction(SIGINT, &sigact, NULL) || in signal_handler_unregister() 503 sigaction(SIGTERM, &sigact, NULL) || in signal_handler_unregister() 504 sigaction(SIGHUP, &sigact, NULL)) { in signal_handler_unregister() 687 struct sigaction sigact; in resctrl_val() 738 if (sigaction(SIGUSR1, &sigact, NULL)) { in resctrl_val()
|
/linux-6.12.1/arch/x86/um/os-Linux/ |
D | task_size.c | 70 struct sigaction sa, old; in os_get_top_address() 93 if (sigaction(SIGSEGV, &sa, &old)) { in os_get_top_address() 133 if (sigaction(SIGSEGV, &old, NULL)) { in os_get_top_address()
|