Home
last modified time | relevance | path

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

12345

/linux-5.19.10/arch/sh/kernel/
Dtraps.c141 SIGTRAP) == NOTIFY_STOP) in BUILD_TRAP_HANDLER()
144 force_sig(SIGTRAP); in BUILD_TRAP_HANDLER()
158 SIGTRAP) == NOTIFY_STOP) in BUILD_TRAP_HANDLER()
170 force_sig(SIGTRAP); in BUILD_TRAP_HANDLER()
/linux-5.19.10/tools/testing/selftests/powerpc/tm/
Dtm-signal-sigreturn-nt.c40 sigaction(SIGTRAP, &trap_sa, NULL); in tm_signal_sigreturn_nt()
42 raise(SIGTRAP); in tm_signal_sigreturn_nt()
/linux-5.19.10/include/linux/
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()
420 signr = ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0), in ptrace_report_syscall()
/linux-5.19.10/arch/um/os-Linux/
Dstart_up.c179 if (!WIFSTOPPED(status) || (WSTOPSIG(status) != SIGTRAP)) in check_sysemu()
221 (WSTOPSIG(status) == (SIGTRAP|0x80))) { in check_sysemu()
234 else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP)) in check_sysemu()
279 (WSTOPSIG(status) != (SIGTRAP | 0x80))) in check_ptrace()
/linux-5.19.10/tools/testing/selftests/perf_events/
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-5.19.10/arch/loongarch/kernel/
Dtraps.c396 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
402 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
408 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
414 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
420 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
429 force_sig(SIGTRAP); in do_bp()
441 force_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *)regs->csr_era); in do_bp()
/linux-5.19.10/arch/ia64/kernel/
Dtraps.c107 if (notify_die(DIE_BREAK, "break 0", regs, break_num, TRAP_BRKPT, SIGTRAP) in ia64_bad_break()
171 if (notify_die(DIE_BREAK, "bad break", regs, break_num, TRAP_BRKPT, SIGTRAP) in ia64_bad_break()
174 sig = SIGTRAP; code = TRAP_BRKPT; in ia64_bad_break()
541 if (notify_die(DIE_FAULT, "ia64_fault", &regs, vector, si_code, SIGTRAP) in ia64_fault()
544 force_sig_fault(SIGTRAP, si_code, (void __user *) ifa, in ia64_fault()
Dbrl_emu.c206 force_sig_fault(SIGTRAP, TRAP_BRANCH, (void __user *)NULL, in ia64_emulate_brl()
213 force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)NULL, in ia64_emulate_brl()
/linux-5.19.10/arch/um/os-Linux/skas/
Dprocess.c105 #define STUB_DONE_MASK (1 << SIGTRAP)
212 (WSTOPSIG(status) != SIGTRAP + 0x80)) { in handle_trap()
460 case SIGTRAP: in userspace()
479 case SIGTRAP + 0x80: in userspace()
482 case SIGTRAP: in userspace()
483 relay_signal(SIGTRAP, (struct siginfo *)&si, regs); in userspace()
/linux-5.19.10/arch/s390/kernel/
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, in do_per_trap()
164 force_sig_fault(SIGTRAP, TRAP_BRKPT, location); in illegal_op()
181 3, SIGTRAP) != NOTIFY_STOP) in illegal_op()
/linux-5.19.10/arch/powerpc/kernel/
Dtraps.c104 case SIGTRAP: return "unhandled trap"; in signame()
306 force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)regs->nip); in user_single_step_report()
1083 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER()
1091 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER_ASYNC()
1099 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER_NMI()
1107 5, SIGTRAP) == NOTIFY_STOP) in DEFINE_INTERRUPT_HANDLER()
1111 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in DEFINE_INTERRUPT_HANDLER()
1116 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER()
1128 5, SIGTRAP) == NOTIFY_STOP) in __single_step_exception()
1133 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in __single_step_exception()
[all …]
/linux-5.19.10/arch/arm64/kernel/
Dkgdb.c237 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_brk_fn()
245 kgdb_handle_exception(1, SIGTRAP, 0, regs); in NOKPROBE_SYMBOL()
256 kgdb_handle_exception(0, SIGTRAP, 0, regs); in kgdb_step_brk_fn()
Ddebug-monitors.c237 arm64_force_sig_fault(SIGTRAP, si_code, instruction_pointer(regs), in send_user_sigtrap()
383 hook_debug_fault_code(DBG_ESR_EVT_HWSS, single_step_handler, SIGTRAP, in debug_traps_init()
385 hook_debug_fault_code(DBG_ESR_EVT_BRK, brk_handler, SIGTRAP, in debug_traps_init()
/linux-5.19.10/tools/testing/selftests/x86/
Dsingle_step_syscall.c94 [SIGTRAP] = "SIGTRAP",
151 sethandler(SIGTRAP, sigtrap, 0); in main()
Dfsgsbase.c472 raise(SIGTRAP); in test_ptrace_write_gs_read_base()
478 if (WSTOPSIG(status) == SIGTRAP) { in test_ptrace_write_gs_read_base()
532 raise(SIGTRAP); in test_ptrace_write_gsbase()
538 if (WSTOPSIG(status) == SIGTRAP) { in test_ptrace_write_gsbase()
Dmov_ss_trap.c112 [SIGTRAP] = "SIGTRAP",
154 sethandler(SIGTRAP, sigtrap, 0); in main()
Dsigreturn.c488 if (asm_ss != sig_ss && sig == SIGTRAP) { in sigtrap()
539 clearhandler(SIGTRAP); in test_nonstrict_ss()
779 sethandler(SIGTRAP, sigtrap, SA_ONSTACK); in main()
829 clearhandler(SIGTRAP); in main()
/linux-5.19.10/kernel/debug/kdb/
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-5.19.10/tools/perf/tests/
Dsigtrap.c135 if (sigaction(SIGTRAP, &action, &oldact)) { in test__sigtrap()
158 sigaction(SIGTRAP, &oldact, NULL); in test__sigtrap()
/linux-5.19.10/arch/arm64/include/asm/
Dsignal.h18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
/linux-5.19.10/arch/csky/kernel/
Dasm-offsets.c80 DEFINE(SIGTRAP, SIGTRAP); in main()
Dtraps.c179 send_sig(SIGTRAP, current, 0); in do_trap_bkpt()
201 send_sig(SIGTRAP, current, 0); in do_trap_illinsn()
/linux-5.19.10/arch/riscv/kernel/
Dtraps.c178 force_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *)regs->epc); in do_trap_break()
180 else if (notify_die(DIE_TRAP, "EBREAK", regs, 0, regs->cause, SIGTRAP) in do_trap_break()
/linux-5.19.10/arch/ia64/include/uapi/asm/
Dsignal.h17 #define SIGTRAP 5 macro
/linux-5.19.10/security/apparmor/include/
Dsig_names.h18 [SIGTRAP] = 5, /* -, 5, - */

12345