Home
last modified time | relevance | path

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

12345

/Linux-v5.4/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()
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-v5.4/tools/testing/selftests/powerpc/tm/
Dtm-signal-sigreturn-nt.c35 sigaction(SIGTRAP, &trap_sa, NULL); in tm_signal_sigreturn_nt()
37 raise(SIGTRAP); in tm_signal_sigreturn_nt()
/Linux-v5.4/arch/s390/kernel/
Dtraps.c77 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/
Dtracehook.h66 ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0)); in ptrace_report_syscall()
146 ptrace_notify(SIGTRAP); in tracehook_signal_handler()
Dptrace.h159 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/
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-v5.4/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-v5.4/arch/um/os-Linux/skas/
Dprocess.c53 #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/
Dtraps.c129 sig = SIGTRAP; in trap_c()
146 sig = SIGTRAP; in trap_c()
Dasm-offsets.c82 DEFINE(SIGTRAP, SIGTRAP); in main()
/Linux-v5.4/arch/arm64/kernel/
Dkgdb.c236 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()
Ddebug-monitors.c234 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/
Dtraps.c104 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/
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-v5.4/tools/testing/selftests/x86/
Dmov_ss_trap.c113 [SIGTRAP] = "SIGTRAP",
155 sethandler(SIGTRAP, sigtrap, 0); in main()
Dsigreturn.c478 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/
Dptrace_s.c43 force_sig(SIGTRAP); in trace_trap()
/Linux-v5.4/arch/arm64/mm/
Dfault.c803 { 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/
Dtraps.c925 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/
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-v5.4/security/apparmor/include/
Dsig_names.h18 [SIGTRAP] = 5, /* -, 5, - */
/Linux-v5.4/arch/ia64/include/uapi/asm/
Dsignal.h17 #define SIGTRAP 5 macro
/Linux-v5.4/tools/testing/selftests/powerpc/ptrace/
Dptrace-hwbreak.c207 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in check_success()
300 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in launch_tests()

12345