/linux/tools/testing/selftests/clone3/ |
A D | clone3_clear_sighand.c | 51 struct sigaction act; in test_clone3_clear_sighand() 73 ret = sigaction(SIGUSR1, &act, NULL); in test_clone3_clear_sighand() 80 ret = sigaction(SIGUSR2, &act, NULL); in test_clone3_clear_sighand() 94 ret = sigaction(SIGUSR1, NULL, &act); in test_clone3_clear_sighand() 101 ret = sigaction(SIGUSR2, NULL, &act); in test_clone3_clear_sighand()
|
/linux/tools/testing/selftests/perf_events/ |
A 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()
|
A D | sigtrap_threads.c | 105 struct sigaction oldact; in FIXTURE() 114 struct sigaction action = {}; in FIXTURE_SETUP() 123 ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0); in FIXTURE_SETUP() 139 sigaction(SIGTRAP, &self->oldact, NULL); in FIXTURE_TEARDOWN()
|
/linux/tools/testing/selftests/arm64/bti/ |
A D | signal.h | 18 int sigaction(int n, struct sigaction *sa, const struct sigaction *old);
|
A D | signal.c | 29 int sigaction(int n, struct sigaction *sa, const struct sigaction *old) in sigaction() function
|
/linux/tools/testing/selftests/x86/ |
A 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()
|
A 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()
|
A D | sysret_rip.c | 45 struct sigaction sa; in sethandler() 50 if (sigaction(sig, &sa, 0)) in sethandler() 56 struct sigaction sa; in clearhandler() 60 if (sigaction(sig, &sa, 0)) in clearhandler()
|
A 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()
|
A 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()
|
/linux/tools/bpf/bpftool/ |
A 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/arch/x86/um/ |
A D | bugs_32.c | 24 struct sigaction old, new; in arch_check_bugs() 32 sigaction(SIGILL, &new, &old); in arch_check_bugs() 41 sigaction(SIGILL, &old, &new); in arch_check_bugs()
|
/linux/tools/testing/selftests/powerpc/mm/ |
A 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()
|
A 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()
|
A 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/tools/testing/selftests/powerpc/tm/ |
A 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()
|
A 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/tools/testing/selftests/powerpc/signal/ |
A 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()
|
A 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()
|
A D | sig_sc_double_restart.c | 99 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/ |
A 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/tools/perf/tests/ |
A D | bp_signal.c | 166 struct sigaction sa; in test__bp_signal() 175 memset(&sa, 0, sizeof(struct sigaction)); in test__bp_signal() 179 if (sigaction(SIGIO, &sa, NULL) < 0) { in test__bp_signal() 185 if (sigaction(SIGUSR1, &sa, NULL) < 0) { in test__bp_signal()
|
A D | bp_signal_overflow.c | 65 struct sigaction sa; in test__bp_signal_overflow() 75 memset(&sa, 0, sizeof(struct sigaction)); in test__bp_signal_overflow() 79 if (sigaction(SIGIO, &sa, NULL) < 0) { in test__bp_signal_overflow()
|
/linux/arch/x86/um/os-Linux/ |
A 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()
|
/linux/tools/testing/selftests/syscall_user_dispatch/ |
A D | sud_test.c | 166 struct sigaction act; in TEST() 181 ret = sigaction(SIGSYS, &act, NULL); in TEST() 221 struct sigaction act; in TEST_SIGNAL() 237 ret = sigaction(SIGSYS, &act, NULL); in TEST_SIGNAL()
|