/Linux-v5.4/arch/sh/kernel/ |
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()
|
D | hw_breakpoint.c | 341 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-v5.4/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-sigreturn-nt.c | 35 sigaction(SIGTRAP, &trap_sa, NULL); in tm_signal_sigreturn_nt() 37 raise(SIGTRAP); in tm_signal_sigreturn_nt()
|
/Linux-v5.4/arch/s390/kernel/ |
D | traps.c | 77 if (notify_die(DIE_SSTEP, "sstep", regs, 0, 0, SIGTRAP) == NOTIFY_STOP) in do_per_trap() 81 force_sig_fault(SIGTRAP, TRAP_HWBKPT, in do_per_trap() 168 force_sig_fault(SIGTRAP, TRAP_BRKPT, location); in illegal_op() 185 3, SIGTRAP) != NOTIFY_STOP) in illegal_op()
|
/Linux-v5.4/include/linux/ |
D | tracehook.h | 66 ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0)); in ptrace_report_syscall() 146 ptrace_notify(SIGTRAP); in tracehook_signal_handler()
|
D | ptrace.h | 159 ptrace_notify((event << 8) | SIGTRAP); in ptrace_event() 163 send_sig(SIGTRAP, current, 0); in ptrace_event() 353 info.si_signo = SIGTRAP; in user_single_step_report()
|
/Linux-v5.4/arch/um/os-Linux/ |
D | start_up.c | 179 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-v5.4/arch/ia64/kernel/ |
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()
|
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()
|
/Linux-v5.4/arch/um/os-Linux/skas/ |
D | process.c | 53 #define STUB_DONE_MASK (1 << SIGTRAP) 160 (WSTOPSIG(status) != SIGTRAP + 0x80)) { in handle_trap() 415 case SIGTRAP + 0x80: in userspace() 418 case SIGTRAP: in userspace() 419 relay_signal(SIGTRAP, (struct siginfo *)&si, regs); in userspace()
|
/Linux-v5.4/arch/csky/kernel/ |
D | traps.c | 129 sig = SIGTRAP; in trap_c() 146 sig = SIGTRAP; in trap_c()
|
D | asm-offsets.c | 82 DEFINE(SIGTRAP, SIGTRAP); in main()
|
/Linux-v5.4/arch/arm64/kernel/ |
D | kgdb.c | 236 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_brk_fn() 244 kgdb_handle_exception(1, SIGTRAP, 0, regs); in NOKPROBE_SYMBOL() 255 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_step_brk_fn()
|
D | debug-monitors.c | 234 arm64_force_sig_fault(SIGTRAP, si_code, in send_user_sigtrap() 381 hook_debug_fault_code(DBG_ESR_EVT_HWSS, single_step_handler, SIGTRAP, in debug_traps_init() 383 hook_debug_fault_code(DBG_ESR_EVT_BRK, brk_handler, SIGTRAP, in debug_traps_init()
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | traps.c | 104 case SIGTRAP: return "unhandled trap"; in signame() 300 force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)regs->nip); in user_single_step_report() 1085 _exception(SIGTRAP, regs, TRAP_UNK, 0); in unknown_exception() 1095 5, SIGTRAP) == NOTIFY_STOP) in instruction_breakpoint_exception() 1099 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in instruction_breakpoint_exception() 1107 _exception(SIGTRAP, regs, TRAP_UNK, 0); in RunModeException() 1121 5, SIGTRAP) == NOTIFY_STOP) in single_step_exception() 1126 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in single_step_exception() 1477 if (notify_die(DIE_BPT, "breakpoint", regs, 5, 5, SIGTRAP) in program_check_exception() 1493 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in program_check_exception() [all …]
|
/Linux-v5.4/kernel/debug/kdb/ |
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()
|
/Linux-v5.4/tools/testing/selftests/x86/ |
D | mov_ss_trap.c | 113 [SIGTRAP] = "SIGTRAP", 155 sethandler(SIGTRAP, sigtrap, 0); in main()
|
D | sigreturn.c | 478 if (asm_ss != sig_ss && sig == SIGTRAP) { in sigtrap() 529 clearhandler(SIGTRAP); in test_nonstrict_ss() 768 sethandler(SIGTRAP, sigtrap, SA_ONSTACK); in main() 818 clearhandler(SIGTRAP); in main()
|
/Linux-v5.4/arch/h8300/kernel/ |
D | ptrace_s.c | 43 force_sig(SIGTRAP); in trace_trap()
|
/Linux-v5.4/arch/arm64/mm/ |
D | fault.c | 803 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware breakpoint" }, 804 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware single-step" }, 805 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware watchpoint" }, 807 { do_bad, SIGTRAP, TRAP_BRKPT, "aarch32 BKPT" }, 809 { early_brk64, SIGTRAP, TRAP_BRKPT, "aarch64 BRK" },
|
/Linux-v5.4/arch/mips/kernel/ |
D | traps.c | 925 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp() 930 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp() 950 force_sig(SIGTRAP); in do_trap_or_bp() 965 force_sig(SIGTRAP); in do_trap_or_bp() 971 force_sig_fault(SIGTRAP, si_code, NULL); in do_trap_or_bp() 973 force_sig(SIGTRAP); in do_trap_or_bp() 1032 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 1038 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 1044 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 1050 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() [all …]
|
/Linux-v5.4/arch/arm/kernel/ |
D | kgdb.c | 144 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-v5.4/security/apparmor/include/ |
D | sig_names.h | 18 [SIGTRAP] = 5, /* -, 5, - */
|
/Linux-v5.4/arch/ia64/include/uapi/asm/ |
D | signal.h | 17 #define SIGTRAP 5 macro
|
/Linux-v5.4/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-hwbreak.c | 207 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in check_success() 300 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in launch_tests()
|