Home
last modified time | relevance | path

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

12345

/Linux-v4.19/include/linux/
Dtracehook.h67 ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0)); in ptrace_report_syscall()
130 force_sig_info(SIGTRAP, &info, current); in tracehook_report_syscall_exit()
151 ptrace_notify(SIGTRAP); in tracehook_signal_handler()
Dptrace.h152 ptrace_notify((event << 8) | SIGTRAP); in ptrace_event()
156 send_sig(SIGTRAP, current, 0); in ptrace_event()
346 info->si_signo = SIGTRAP; in user_single_step_siginfo()
/Linux-v4.19/arch/sh/kernel/
Dtraps.c141 SIGTRAP) == NOTIFY_STOP) in BUILD_TRAP_HANDLER()
144 force_sig(SIGTRAP, current); in BUILD_TRAP_HANDLER()
158 SIGTRAP) == NOTIFY_STOP) in BUILD_TRAP_HANDLER()
170 force_sig(SIGTRAP, current); in BUILD_TRAP_HANDLER()
Dhw_breakpoint.c343 force_sig_fault(SIGTRAP, TRAP_HWBKPT, in hw_breakpoint_handler()
365 notify_die(DIE_BREAKPOINT, "breakpoint", regs, 0, ex, SIGTRAP); in BUILD_TRAP_HANDLER()
/Linux-v4.19/arch/ia64/kernel/
Dbrl_emu.c213 siginfo.si_signo = SIGTRAP; in ia64_emulate_brl()
220 force_sig_info(SIGTRAP, &siginfo, current); in ia64_emulate_brl()
226 siginfo.si_signo = SIGTRAP; in ia64_emulate_brl()
233 force_sig_info(SIGTRAP, &siginfo, current); in ia64_emulate_brl()
Dtraps.c115 if (notify_die(DIE_BREAK, "break 0", regs, break_num, TRAP_BRKPT, SIGTRAP) in ia64_bad_break()
179 if (notify_die(DIE_BREAK, "bad break", regs, break_num, TRAP_BRKPT, SIGTRAP) in ia64_bad_break()
182 sig = SIGTRAP; code = TRAP_BRKPT; in ia64_bad_break()
584 if (notify_die(DIE_FAULT, "ia64_fault", &regs, vector, siginfo.si_code, SIGTRAP) in ia64_fault()
587 siginfo.si_signo = SIGTRAP; in ia64_fault()
593 force_sig_info(SIGTRAP, &siginfo, current); in ia64_fault()
/Linux-v4.19/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, current); in illegal_op()
185 3, SIGTRAP) != NOTIFY_STOP) in illegal_op()
/Linux-v4.19/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()
Dsignal.c22 [SIGTRAP] = relay_signal,
154 [SIGTRAP] = sig_handler,
/Linux-v4.19/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-v4.19/arch/arm64/kernel/
Dkgdb.c247 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_brk_fn()
255 kgdb_handle_exception(1, SIGTRAP, 0, regs); in NOKPROBE_SYMBOL()
266 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_step_brk_fn()
Ddebug-monitors.c216 info.si_signo = SIGTRAP; in send_user_sigtrap()
376 hook_debug_fault_code(DBG_ESR_EVT_HWSS, single_step_handler, SIGTRAP, in debug_traps_init()
378 hook_debug_fault_code(DBG_ESR_EVT_BRK, brk_handler, SIGTRAP, in debug_traps_init()
/Linux-v4.19/arch/powerpc/kernel/
Dtraps.c107 case SIGTRAP: return "unhandled trap"; in signame()
313 info->si_signo = SIGTRAP; in user_single_step_siginfo()
1003 _exception(SIGTRAP, regs, TRAP_UNK, 0); in unknown_exception()
1013 5, SIGTRAP) == NOTIFY_STOP) in instruction_breakpoint_exception()
1017 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in instruction_breakpoint_exception()
1025 _exception(SIGTRAP, regs, TRAP_UNK, 0); in RunModeException()
1039 5, SIGTRAP) == NOTIFY_STOP) in single_step_exception()
1044 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in single_step_exception()
1395 if (notify_die(DIE_BPT, "breakpoint", regs, 5, 5, SIGTRAP) in program_check_exception()
1411 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in program_check_exception()
[all …]
/Linux-v4.19/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-v4.19/tools/testing/selftests/x86/
Dmov_ss_trap.c113 [SIGTRAP] = "SIGTRAP",
155 sethandler(SIGTRAP, sigtrap, 0); in main()
Dsigreturn.c486 if (asm_ss != sig_ss && sig == SIGTRAP) { in sigtrap()
537 clearhandler(SIGTRAP); in test_nonstrict_ss()
776 sethandler(SIGTRAP, sigtrap, SA_ONSTACK); in main()
826 clearhandler(SIGTRAP); in main()
Dsyscall_nt.c89 sethandler(SIGTRAP, sigtrap, 0); in main()
/Linux-v4.19/arch/h8300/kernel/
Dptrace_s.c43 force_sig(SIGTRAP, current); in trace_trap()
/Linux-v4.19/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_killable.h40 #define SHUTDOWN_SIGS (sigmask(SIGKILL) | sigmask(SIGINT) | sigmask(SIGQUIT) | sigmask(SIGTRAP) |…
/Linux-v4.19/arch/arm64/mm/
Dfault.c808 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware breakpoint" },
809 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware single-step" },
810 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware watchpoint" },
812 { do_bad, SIGTRAP, TRAP_BRKPT, "aarch32 BKPT" },
814 { early_brk64, SIGTRAP, TRAP_BRKPT, "aarch64 BRK" },
/Linux-v4.19/arch/mips/kernel/
Dtraps.c886 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
891 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
911 force_sig(SIGTRAP, current); in do_trap_or_bp()
926 force_sig(SIGTRAP, current); in do_trap_or_bp()
932 force_sig_fault(SIGTRAP, si_code, NULL, current); in do_trap_or_bp()
934 force_sig(SIGTRAP, current); in do_trap_or_bp()
993 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
999 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1005 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1011 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
[all …]
/Linux-v4.19/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-v4.19/security/apparmor/include/
Dsig_names.h18 [SIGTRAP] = 5, /* -, 5, - */
/Linux-v4.19/arch/ia64/include/uapi/asm/
Dsignal.h17 #define SIGTRAP 5 macro
/Linux-v4.19/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