Home
last modified time | relevance | path

Searched refs:SIGTRAP (Results 1 – 25 of 115) sorted by relevance

12345

/linux-6.15/arch/sh/kernel/
H A Dtraps.c143 SIGTRAP) == NOTIFY_STOP) in BUILD_TRAP_HANDLER()
146 force_sig(SIGTRAP); in BUILD_TRAP_HANDLER()
160 SIGTRAP) == NOTIFY_STOP) in BUILD_TRAP_HANDLER()
172 force_sig(SIGTRAP); in BUILD_TRAP_HANDLER()
H A Dhw_breakpoint.c341 force_sig_fault(SIGTRAP, TRAP_HWBKPT, in hw_breakpoint_handler()
363 notify_die(DIE_BREAKPOINT, "breakpoint", regs, 0, ex, SIGTRAP); in BUILD_TRAP_HANDLER()
/linux-6.15/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-sigreturn-nt.c40 sigaction(SIGTRAP, &trap_sa, NULL); in tm_signal_sigreturn_nt()
42 raise(SIGTRAP); in tm_signal_sigreturn_nt()
/linux-6.15/include/linux/
H A Dptrace.h151 ptrace_notify((event << 8) | SIGTRAP, message); in ptrace_event()
155 send_sig(SIGTRAP, current, 0); in ptrace_event()
345 info.si_signo = SIGTRAP; in user_single_step_report()
415 signr = ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0), in ptrace_report_syscall()
/linux-6.15/tools/testing/selftests/perf_events/
H A Dremove_on_exec.c86 ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0); in FIXTURE_SETUP()
96 sigaction(SIGTRAP, &self->oldact, NULL); in FIXTURE_TEARDOWN()
238 if (sigaction(SIGTRAP, &action, NULL)) in exec_child()
/linux-6.15/arch/powerpc/kernel/
H A Dtraps.c105 case SIGTRAP: return "unhandled trap"; in signame()
1096 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER()
1104 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER_ASYNC()
1112 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER_NMI()
1120 5, SIGTRAP) == NOTIFY_STOP) in DEFINE_INTERRUPT_HANDLER()
1124 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in DEFINE_INTERRUPT_HANDLER()
1129 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER()
1141 5, SIGTRAP) == NOTIFY_STOP) in __single_step_exception()
1146 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in __single_step_exception()
2058 5, SIGTRAP) == NOTIFY_STOP) { in DEFINE_INTERRUPT_HANDLER()
[all …]
/linux-6.15/arch/um/os-Linux/
H A Dstart_up.c154 (WSTOPSIG(status) == (SIGTRAP|0x80))) { in check_sysemu()
167 else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP)) in check_sysemu()
207 (WSTOPSIG(status) != (SIGTRAP | 0x80))) in check_ptrace()
/linux-6.15/arch/s390/kernel/
H A Dtraps.c73 if (notify_die(DIE_SSTEP, "sstep", regs, 0, 0, SIGTRAP) == NOTIFY_STOP) in do_per_trap()
77 force_sig_fault(SIGTRAP, TRAP_HWBKPT, (void __force __user *)current->thread.per_event.address); in do_per_trap()
151 force_sig_fault(SIGTRAP, TRAP_BRKPT, location); in illegal_op()
168 if (notify_die(DIE_BPT, "bpt", regs, 0, 3, SIGTRAP) != NOTIFY_STOP) in illegal_op()
/linux-6.15/arch/um/os-Linux/skas/
H A Dprocess.c110 #define STUB_DONE_MASK (1 << SIGTRAP)
513 case SIGTRAP: in userspace()
532 case SIGTRAP + 0x80: in userspace()
535 case SIGTRAP: in userspace()
536 relay_signal(SIGTRAP, (struct siginfo *)&si, regs, NULL); in userspace()
/linux-6.15/tools/testing/selftests/x86/
H A Dsingle_step_syscall.c72 [SIGTRAP] = "SIGTRAP",
129 sethandler(SIGTRAP, sigtrap, 0); in main()
H A Dfsgsbase.c446 raise(SIGTRAP); in test_ptrace_write_gs_read_base()
452 if (WSTOPSIG(status) == SIGTRAP) { in test_ptrace_write_gs_read_base()
506 raise(SIGTRAP); in test_ptrace_write_gsbase()
512 if (WSTOPSIG(status) == SIGTRAP) { in test_ptrace_write_gsbase()
H A Dsigreturn.c468 if (asm_ss != sig_ss && sig == SIGTRAP) { in sigtrap()
519 clearhandler(SIGTRAP); in test_nonstrict_ss()
759 sethandler(SIGTRAP, sigtrap, SA_ONSTACK); in main()
809 clearhandler(SIGTRAP); in main()
H A Dmov_ss_trap.c100 [SIGTRAP] = "SIGTRAP",
142 sethandler(SIGTRAP, sigtrap, 0); in main()
H A Dsyscall_nt.c58 sethandler(SIGTRAP, sigtrap, 0); in main()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dperf_skip.c50 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.15/arch/arm64/kernel/
H A Dkgdb.c239 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_brk_fn()
247 kgdb_handle_exception(1, SIGTRAP, 0, regs); in NOKPROBE_SYMBOL()
258 kgdb_handle_exception(0, SIGTRAP, 0, regs); in kgdb_step_brk_fn()
H A Ddebug-monitors.c237 arm64_force_sig_fault(SIGTRAP, si_code, instruction_pointer(regs), in send_user_sigtrap()
380 hook_debug_fault_code(DBG_ESR_EVT_HWSS, single_step_handler, SIGTRAP, in debug_traps_init()
382 hook_debug_fault_code(DBG_ESR_EVT_BRK, brk_handler, SIGTRAP, in debug_traps_init()
/linux-6.15/kernel/debug/kdb/
H A Dkdb_debugger.c72 if (ks->err_code == KDB_REASON_SYSTEM_NMI && ks->signo == SIGTRAP) in kdb_stub()
110 ks->signo == SIGTRAP) { in kdb_stub()
/linux-6.15/arch/arm64/include/asm/
H A Dsignal.h18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
/linux-6.15/arch/csky/kernel/
H A Dasm-offsets.c80 DEFINE(SIGTRAP, SIGTRAP); in main()
H A Dtraps.c180 send_sig(SIGTRAP, current, 0); in do_trap_bkpt()
202 send_sig(SIGTRAP, current, 0); in do_trap_illinsn()
/linux-6.15/arch/mips/kernel/
H A Dtraps.c976 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
981 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
1001 force_sig(SIGTRAP); in do_trap_or_bp()
1016 force_sig(SIGTRAP); in do_trap_or_bp()
1022 force_sig_fault(SIGTRAP, si_code, NULL); in do_trap_or_bp()
1024 force_sig(SIGTRAP); in do_trap_or_bp()
1079 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1085 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1091 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1097 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
[all …]
/linux-6.15/security/apparmor/include/
H A Dsig_names.h18 [SIGTRAP] = 5, /* -, 5, - */
/linux-6.15/arch/arm/kernel/
H A Dkgdb.c144 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_brk_fn()
152 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_compiled_brk_fn()
/linux-6.15/tools/perf/tests/
H A Dsigtrap.c239 if (sigaction(SIGTRAP, &action, &oldact)) { in test__sigtrap()
268 sigaction(SIGTRAP, &oldact, NULL); in test__sigtrap()

12345