Home
last modified time | relevance | path

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

12345

/Linux-v6.6/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-v6.6/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-v6.6/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()
411 signr = ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0), in ptrace_report_syscall()
/Linux-v6.6/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-v6.6/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-v6.6/arch/powerpc/kernel/
Dtraps.c105 case SIGTRAP: return "unhandled trap"; in signame()
307 force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)regs->nip); in user_single_step_report()
1097 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER()
1105 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER_ASYNC()
1113 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER_NMI()
1121 5, SIGTRAP) == NOTIFY_STOP) in DEFINE_INTERRUPT_HANDLER()
1125 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in DEFINE_INTERRUPT_HANDLER()
1130 _exception(SIGTRAP, regs, TRAP_UNK, 0); in DEFINE_INTERRUPT_HANDLER()
1142 5, SIGTRAP) == NOTIFY_STOP) in __single_step_exception()
1147 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in __single_step_exception()
[all …]
/Linux-v6.6/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-v6.6/arch/um/os-Linux/skas/
Dprocess.c105 #define STUB_DONE_MASK (1 << SIGTRAP)
211 (WSTOPSIG(status) != SIGTRAP + 0x80)) { in handle_trap()
457 case SIGTRAP: in userspace()
476 case SIGTRAP + 0x80: in userspace()
479 case SIGTRAP: in userspace()
480 relay_signal(SIGTRAP, (struct siginfo *)&si, regs); in userspace()
/Linux-v6.6/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-v6.6/arch/arm64/kernel/
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()
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-v6.6/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-v6.6/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-v6.6/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-v6.6/arch/arm64/include/asm/
Dsignal.h18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
/Linux-v6.6/tools/perf/tests/
Dsigtrap.c192 if (sigaction(SIGTRAP, &action, &oldact)) { in test__sigtrap()
221 sigaction(SIGTRAP, &oldact, NULL); in test__sigtrap()
/Linux-v6.6/arch/mips/kernel/
Dtraps.c974 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
979 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
999 force_sig(SIGTRAP); in do_trap_or_bp()
1014 force_sig(SIGTRAP); in do_trap_or_bp()
1020 force_sig_fault(SIGTRAP, si_code, NULL); in do_trap_or_bp()
1022 force_sig(SIGTRAP); in do_trap_or_bp()
1077 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1083 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1089 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1095 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
[all …]
/Linux-v6.6/arch/arm64/mm/
Dfault.c874 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware breakpoint" },
875 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware single-step" },
876 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware watchpoint" },
878 { do_bad, SIGTRAP, TRAP_BRKPT, "aarch32 BKPT" },
880 { early_brk64, SIGTRAP, TRAP_BRKPT, "aarch64 BRK" },
/Linux-v6.6/arch/ia64/include/uapi/asm/
Dsignal.h17 #define SIGTRAP 5 macro
/Linux-v6.6/security/apparmor/include/
Dsig_names.h18 [SIGTRAP] = 5, /* -, 5, - */

12345