/kernel/linux/linux-5.10/arch/sh/kernel/ |
H A D | traps.c | 141 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()
|
/kernel/linux/linux-6.6/arch/sh/kernel/ |
H A D | traps.c | 141 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-sigreturn-nt.c | 39 sigaction(SIGTRAP, &trap_sa, NULL); in tm_signal_sigreturn_nt() 41 raise(SIGTRAP); in tm_signal_sigreturn_nt()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-sigreturn-nt.c | 40 sigaction(SIGTRAP, &trap_sa, NULL); in tm_signal_sigreturn_nt() 42 raise(SIGTRAP); in tm_signal_sigreturn_nt()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | traps.c | 69 if (notify_die(DIE_SSTEP, "sstep", regs, 0, 0, SIGTRAP) == NOTIFY_STOP) in do_per_trap() 73 force_sig_fault(SIGTRAP, TRAP_HWBKPT, in do_per_trap() 160 force_sig_fault(SIGTRAP, TRAP_BRKPT, location); in illegal_op() 177 3, SIGTRAP) != NOTIFY_STOP) in illegal_op()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | ptrace.h | 151 ptrace_notify((event << 8) | SIGTRAP, message); in ptrace_event() 153 /* legacy EXEC report via SIGTRAP */ 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() 421 * stopping signal is not SIGTRAP. -brl in ptrace_report_syscall()
|
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | traps.c | 605 force_sig(SIGTRAP); in bug_handler() 720 SIGTRAP) == NOTIFY_STOP) in do_bp() 731 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 737 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 743 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 749 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 755 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 775 force_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *)regs->csr_era); in do_bp() 804 force_sig_fault(SIGTRAP, TRAP_HWBKPT, info.si_addr); in do_watch() 816 force_sig(SIGTRAP); in do_watch() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | tracehook.h | 66 ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0)); in ptrace_report_syscall() 71 * stopping signal is not SIGTRAP. -brl in ptrace_report_syscall() 146 ptrace_notify(SIGTRAP); in tracehook_signal_handler()
|
H A D | ptrace.h | 152 ptrace_notify((event << 8) | SIGTRAP); in ptrace_event() 154 /* legacy EXEC report via SIGTRAP */ in ptrace_event() 156 send_sig(SIGTRAP, current, 0); in ptrace_event() 346 info.si_signo = SIGTRAP; in user_single_step_report()
|
/kernel/linux/linux-6.6/arch/um/os-Linux/skas/ |
H A D | process.c | 105 #define STUB_DONE_MASK (1 << SIGTRAP) 135 printk(UM_KERN_ERR "%s : failed to wait for SIGTRAP, pid = %d, n = %d, errno = %d, status = 0x%x\n", in wait_stub_done() 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()
|
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
H A D | start_up.c | 179 if (!WIFSTOPPED(status) || (WSTOPSIG(status) != SIGTRAP)) in check_sysemu() 180 fatal("check_sysemu : expected SIGTRAP, got status = %d\n", in check_sysemu() 221 (WSTOPSIG(status) == (SIGTRAP|0x80))) { in check_sysemu() 234 else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP)) in check_sysemu() 237 non_fatal("check_sysemu: expected SIGTRAP or " in check_sysemu() 238 "(SIGTRAP | 0x80), got status = %d\n", in check_sysemu() 279 (WSTOPSIG(status) != (SIGTRAP | 0x80))) in check_ptrace() 280 fatal("check_ptrace : expected (SIGTRAP|0x80), " in check_ptrace()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | traps.c | 73 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()
|
/kernel/linux/linux-6.6/arch/um/os-Linux/ |
H A D | start_up.c | 179 if (!WIFSTOPPED(status) || (WSTOPSIG(status) != SIGTRAP)) in check_sysemu() 180 fatal("check_sysemu : expected SIGTRAP, got status = %d\n", in check_sysemu() 221 (WSTOPSIG(status) == (SIGTRAP|0x80))) { in check_sysemu() 234 else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP)) in check_sysemu() 237 non_fatal("check_sysemu: expected SIGTRAP or " in check_sysemu() 238 "(SIGTRAP | 0x80), got status = %d\n", in check_sysemu() 279 (WSTOPSIG(status) != (SIGTRAP | 0x80))) in check_ptrace() 280 fatal("check_ptrace : expected (SIGTRAP|0x80), " in check_ptrace()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | kgdb.c | 238 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_brk_fn() 246 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_compiled_brk_fn() 257 kgdb_handle_exception(0, SIGTRAP, 0, regs); in kgdb_step_brk_fn()
|
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | kgdb.c | 239 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_brk_fn() 247 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_compiled_brk_fn() 258 kgdb_handle_exception(0, SIGTRAP, 0, regs); in kgdb_step_brk_fn()
|
/kernel/linux/linux-6.6/tools/testing/selftests/perf_events/ |
H A D | remove_on_exec.c | 86 ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0); in FIXTURE_SETUP() 96 sigaction(SIGTRAP, &self->oldact, NULL); in FIXTURE_TEARDOWN() 187 * a SIGTRAP is sent before the handler was set up. in TEST_F() 238 if (sigaction(SIGTRAP, &action, NULL)) in exec_child()
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | traps.c | 107 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", ®s, vector, si_code, SIGTRAP) in ia64_fault() 544 force_sig_fault(SIGTRAP, si_code, (void __user *) ifa, in ia64_fault()
|
H A D | brl_emu.c | 206 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()
|
/kernel/linux/linux-5.10/arch/um/os-Linux/skas/ |
H A D | process.c | 54 #define STUB_DONE_MASK (1 << SIGTRAP) 84 printk(UM_KERN_ERR "wait_stub_done : failed to wait for SIGTRAP, " in wait_stub_done() 161 (WSTOPSIG(status) != SIGTRAP + 0x80)) { in handle_trap() 419 case SIGTRAP + 0x80: in userspace() 422 case SIGTRAP: in userspace() 423 relay_signal(SIGTRAP, (struct siginfo *)&si, regs); in userspace()
|
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A D | traps.c | 107 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", ®s, vector, si_code, SIGTRAP) in ia64_fault() 544 force_sig_fault(SIGTRAP, si_code, (void __user *) ifa, in ia64_fault()
|
H A D | brl_emu.c | 206 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()
|
/kernel/linux/linux-5.10/kernel/debug/kdb/ |
H A D | kdb_debugger.c | 72 if (ks->err_code == KDB_REASON_SYSTEM_NMI && ks->signo == SIGTRAP) in kdb_stub() 110 ks->signo == SIGTRAP) { in kdb_stub()
|
/kernel/linux/linux-6.6/kernel/debug/kdb/ |
H A D | kdb_debugger.c | 72 if (ks->err_code == KDB_REASON_SYSTEM_NMI && ks->signo == SIGTRAP) in kdb_stub() 110 ks->signo == SIGTRAP) { in kdb_stub()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | traps.c | 105 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, reg in __single_step_exception() [all...] |
/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | signal.h | 18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
|