/linux/tools/testing/selftests/x86/ |
H A D | mov_ss_trap.c | 97 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 154 sethandler(SIGTRAP, sigtrap, 0); in main() 173 sethandler(SIGSEGV, handle_and_return, SA_RESETHAND); in main() 178 sethandler(SIGSEGV, handle_and_return, SA_RESETHAND); in main() 188 sethandler(SIGILL, handle_and_longjmp, SA_RESETHAND); in main() 195 sethandler(SIGSEGV, handle_and_longjmp, SA_RESETHAND); in main() 201 sethandler(SIGSEGV, handle_and_longjmp, SA_RESETHAND); in main() 212 sethandler(SIGSEGV, handle_and_longjmp, SA_RESETHAND); in main() 224 sethandler(SIGILL, handle_and_longjmp, SA_RESETHAND); in main() 257 sethandler(SIGSEGV, handle_and_longjmp, SA_RESETHAND | SA_ONSTACK); in main() [all …]
|
H A D | syscall_arg_fault.c | 20 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 110 sethandler(SIGSEGV, sigsegv_or_sigbus, SA_ONSTACK); in main() 116 sethandler(SIGBUS, sigsegv_or_sigbus, SA_ONSTACK); in main() 117 sethandler(SIGILL, sigill, SA_ONSTACK); in main() 170 sethandler(SIGTRAP, sigtrap, SA_ONSTACK); in main()
|
H A D | sysret_rip.c | 34 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 91 sethandler(SIGSEGV, sigsegv_for_sigreturn_test, SA_RESETHAND); in sigusr1() 161 sethandler(SIGUSR1, sigusr1, 0); in main() 167 sethandler(SIGSEGV, sigsegv_for_fallthrough, 0); in main()
|
H A D | corrupt_xstate_header.c | 32 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 65 sethandler(SIGUSR1, sigusr1, 0); in main() 66 sethandler(SIGSEGV, sigsegv, 0); in main()
|
H A D | entry_from_vm86.c | 30 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 239 sethandler(SIGILL, sighandler, 0); in do_umip_tests() 244 sethandler(SIGILL, sighandler, 0); in do_umip_tests() 284 sethandler(SIGILL, sighandler, 0); in main() 295 sethandler(SIGILL, sighandler, 0); in main() 334 sethandler(SIGSEGV, sighandler, 0); in main()
|
H A D | iopl.c | 25 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 57 sethandler(SIGSEGV, sigsegv, SA_RESETHAND); in try_outb() 96 sethandler(SIGSEGV, sigsegv, SA_RESETHAND); in try_cli() 116 sethandler(SIGSEGV, sigsegv, SA_RESETHAND); in try_sti()
|
H A D | single_step_syscall.c | 36 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 151 sethandler(SIGTRAP, sigtrap, 0); in main() 217 sethandler(SIGSEGV, print_and_longjmp, in main() 219 sethandler(SIGILL, print_and_longjmp, SA_RESETHAND); in main()
|
H A D | sigaltstack.c | 30 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 96 sethandler(SIGSEGV, sigsegv, 0); in test_sigaltstack() 97 sethandler(SIGALRM, sigalrm, SA_ONSTACK); in test_sigaltstack()
|
H A D | sigreturn.c | 141 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 542 sethandler(SIGUSR2, sigusr2, 0); in test_nonstrict_ss() 778 sethandler(SIGUSR1, sigusr1, 0); in main() 779 sethandler(SIGTRAP, sigtrap, SA_ONSTACK); in main() 830 sethandler(SIGSEGV, sigtrap, SA_ONSTACK); in main() 831 sethandler(SIGBUS, sigtrap, SA_ONSTACK); in main() 832 sethandler(SIGILL, sigtrap, SA_ONSTACK); /* 32-bit kernels do this */ in main()
|
H A D | syscall_nt.c | 21 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 70 sethandler(SIGTRAP, sigtrap, 0); in main()
|
H A D | ioperm.c | 25 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 57 sethandler(SIGSEGV, sigsegv, SA_RESETHAND); in try_outb()
|
H A D | unwind_vdso.c | 46 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 152 sethandler(SIGTRAP, sigtrap, 0); in main()
|
H A D | test_vsyscall.c | 313 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 499 sethandler(SIGTRAP, sigtrap, 0); in test_emulation() 537 sethandler(SIGSEGV, sigsegv, 0); in main()
|
H A D | fsgsbase.c | 42 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 600 sethandler(SIGILL, sigill, 0); in main() 610 sethandler(SIGSEGV, sigsegv, 0); in main()
|
H A D | ldt_gdt.c | 509 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 551 sethandler(SIGSEGV, sigsegv, 0); in do_multicpu_tests() 554 sethandler(SIGILL, sigsegv, 0); in do_multicpu_tests()
|
H A D | ptrace_syscall.c | 96 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 158 sethandler(SIGUSR1, empty_handler, 0); in test_sys32_regs()
|
H A D | amx.c | 64 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() function 913 sethandler(SIGILL, handle_noperm, 0); in main()
|