Home
last modified time | relevance | path

Searched refs:sigaction (Results 1 – 25 of 144) sorted by relevance

123456

/linux/tools/testing/selftests/x86/
H A Dtest_shadow_stack.c222 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 …]
H A Dhelpers.h32 struct sigaction sa; in sethandler()
38 if (sigaction(sig, &sa, 0)) in sethandler()
44 struct sigaction sa; in clearhandler()
49 if (sigaction(sig, &sa, 0)) in clearhandler()
H A Dnx_stack.c164 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()
/linux/tools/testing/selftests/mm/
H A Dpkey_sighandler_tests.c207 struct sigaction sa; in test_sigsegv_handler_with_pkey0_disabled()
215 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_sigsegv_handler_with_pkey0_disabled()
247 struct sigaction sa; in test_sigsegv_handler_cannot_access_stack()
255 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_sigsegv_handler_cannot_access_stack()
284 struct sigaction sa; in test_sigsegv_handler_with_different_pkey_for_stack()
297 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_sigsegv_handler_with_different_pkey_for_stack()
359 struct sigaction sa; in test_pkru_preserved_after_sigusr1()
372 if (sigaction(SIGUSR1, &sa, NULL) == -1) { in test_pkru_preserved_after_sigusr1()
440 struct sigaction sa = {0}; in test_pkru_sigreturn()
456 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_pkru_sigreturn()
[all …]
/linux/tools/testing/selftests/clone3/
H A Dclone3_clear_sighand.c47 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/tools/testing/selftests/riscv/hwprobe/
H A Dcbo.c112 struct sigaction act = { in test_zicbop()
116 struct sigaction dfl = { in test_zicbop()
123 rc = sigaction(SIGSEGV, &act, NULL); in test_zicbop()
125 rc = sigaction(SIGBUS, &act, NULL); in test_zicbop()
146 rc = sigaction(SIGBUS, &dfl, NULL); in test_zicbop()
148 rc = sigaction(SIGSEGV, &dfl, NULL); in test_zicbop()
297 struct sigaction act = { in main()
314 rc = sigaction(SIGILL, &act, NULL); in main()
320 rc = sigaction(SIGILL, &act, NULL); in main()
/linux/tools/testing/selftests/perf_events/
H A Dremove_on_exec.c71 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()
H A Dwatermark_signal.c45 struct sigaction previous_sigio, sigio = { 0 }; in TEST()
52 EXPECT_EQ(sigaction(SIGIO, &sigio, &previous_sigio), 0); in TEST()
141 sigaction(SIGIO, &previous_sigio, NULL); in TEST()
/linux/tools/testing/selftests/arm64/bti/
H A Dsignal.h18 int sigaction(int n, struct sigaction *sa, const struct sigaction *old);
H A Dsignal.c29 int sigaction(int n, struct sigaction *sa, const struct sigaction *old) in sigaction() function
/linux/tools/objtool/
H A Dsignal.c29 struct sigaction sa_dfl = {0}; in signal_handler()
56 sigaction(sig_num, &sa_dfl, NULL); in signal_handler()
103 struct sigaction sa; in init_signal_handler()
128 if (sigaction(signals[i], &sa, NULL) == -1) { in init_signal_handler()
/linux/tools/testing/selftests/signal/
H A Dmangle_uc_sigmask.c124 struct sigaction act, act2; in main()
138 if (sigaction(SIGUSR1, &act, NULL)) in main()
144 if (sigaction(SIGSEGV, &act2, NULL)) in main()
161 if (sigaction(SIGUSR1, &act, NULL)) in main()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dperf_skip.c37 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/tools/testing/selftests/powerpc/mm/
H A Dwild_bctr.c126 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()
H A Dbad_accesses.c70 struct sigaction sig; in test()
73 sig = (struct sigaction) { in test()
78 FAIL_IF(sigaction(SIGSEGV, &sig, NULL) != 0); in test()
/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-trap.c255 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()
/linux/tools/testing/selftests/powerpc/signal/
H A Dsignal_tm.c44 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()
H A Dsignal.c39 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()
H A Dsig_sc_double_restart.c99 struct sigaction act; in test_restart()
106 if (sigaction(SIGUSR1, &act, NULL) == -1) { in test_restart()
114 if (sigaction(SIGUSR2, &act, NULL) == -1) { in test_restart()
/linux/tools/testing/selftests/powerpc/
H A Dharness.c95 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()
H A Dutils.c622 struct sigaction push_signal_handler(int sig, void (*fn)(int, siginfo_t *, void *)) in push_signal_handler()
624 struct sigaction sa; in push_signal_handler()
625 struct sigaction old_handler; in push_signal_handler()
630 FAIL_IF_EXIT_MSG(sigaction(sig, &sa, &old_handler), in push_signal_handler()
636 struct sigaction pop_signal_handler(int sig, struct sigaction old_handler) in pop_signal_handler()
638 struct sigaction popped; in pop_signal_handler()
640 FAIL_IF_EXIT_MSG(sigaction(sig, &old_handler, &popped), in pop_signal_handler()
/linux/tools/perf/tests/
H A Dbp_signal.c167 struct sigaction sa; in test__bp_signal()
176 memset(&sa, 0, sizeof(struct sigaction)); in test__bp_signal()
180 if (sigaction(SIGIO, &sa, NULL) < 0) { in test__bp_signal()
186 if (sigaction(SIGUSR1, &sa, NULL) < 0) { in test__bp_signal()
H A Dbp_signal_overflow.c66 struct sigaction sa; in test__bp_signal_overflow()
76 memset(&sa, 0, sizeof(struct sigaction)); in test__bp_signal_overflow()
80 if (sigaction(SIGIO, &sa, NULL) < 0) { in test__bp_signal_overflow()
/linux/tools/testing/selftests/timers/
H A Dposix_timers.c263 struct sigaction sa; in check_sig_ign()
278 if (sigaction(SIGUSR1, &sa, NULL)) in check_sig_ign()
323 if (sigaction(SIGUSR1, &sa, NULL)) in check_sig_ign()
348 struct sigaction sa; in check_rearm()
356 if (sigaction(SIGUSR1, &sa, NULL)) in check_rearm()
404 struct sigaction sa; in check_delete()
412 if (sigaction(SIGUSR1, &sa, NULL)) in check_delete()
553 struct sigaction sa; in check_overrun()
561 if (sigaction(SIGUSR1, &sa, NULL)) in check_overrun()
/linux/arch/um/os-Linux/
H A Dsigio.c203 struct sigaction old, new; in check_one_sigio()
238 if (sigaction(SIGIO, NULL, &old) < 0) { in check_one_sigio()
246 if (sigaction(SIGIO, &new, NULL) < 0) { in check_one_sigio()
258 if (sigaction(SIGIO, &old, NULL) < 0) in check_one_sigio()

123456