Home
last modified time | relevance | path

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

1234567

/OK3568_Linux_fs/kernel/arch/sh/kernel/
H A 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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-sigreturn-nt.c39 sigaction(SIGTRAP, &trap_sa, NULL); in tm_signal_sigreturn_nt()
41 raise(SIGTRAP); in tm_signal_sigreturn_nt()
/OK3568_Linux_fs/kernel/arch/s390/kernel/
H A Dtraps.c69 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()
/OK3568_Linux_fs/kernel/arch/um/os-Linux/
H A 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()
/OK3568_Linux_fs/kernel/arch/ia64/kernel/
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/include/linux/
H A Dtracehook.h66 ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0)); in ptrace_report_syscall()
146 ptrace_notify(SIGTRAP); in tracehook_signal_handler()
H A 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_report()
/OK3568_Linux_fs/kernel/arch/um/os-Linux/skas/
H A Dprocess.c54 #define STUB_DONE_MASK (1 << SIGTRAP)
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()
/OK3568_Linux_fs/kernel/arch/powerpc/kernel/
H A Dtraps.c103 case SIGTRAP: return "unhandled trap"; in signame()
306 force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)regs->nip); in user_single_step_report()
1103 _exception(SIGTRAP, regs, TRAP_UNK, 0); in unknown_exception()
1113 5, SIGTRAP) == NOTIFY_STOP) in instruction_breakpoint_exception()
1117 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in instruction_breakpoint_exception()
1125 _exception(SIGTRAP, regs, TRAP_UNK, 0); in RunModeException()
1139 5, SIGTRAP) == NOTIFY_STOP) in single_step_exception()
1144 _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); in single_step_exception()
1495 if (notify_die(DIE_BPT, "breakpoint", regs, 5, 5, SIGTRAP) in program_check_exception()
1511 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->nip); in program_check_exception()
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A 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(0, SIGTRAP, 0, regs); in kgdb_step_brk_fn()
H A Ddebug-monitors.c237 arm64_force_sig_fault(SIGTRAP, si_code, instruction_pointer(regs), in send_user_sigtrap()
384 hook_debug_fault_code(DBG_ESR_EVT_HWSS, single_step_handler, SIGTRAP, in debug_traps_init()
386 hook_debug_fault_code(DBG_ESR_EVT_BRK, brk_handler, SIGTRAP, in debug_traps_init()
/OK3568_Linux_fs/kernel/tools/testing/selftests/x86/
H A Dfsgsbase.c464 raise(SIGTRAP); in test_ptrace_write_gs_read_base()
470 if (WSTOPSIG(status) == SIGTRAP) { in test_ptrace_write_gs_read_base()
524 raise(SIGTRAP); in test_ptrace_write_gsbase()
530 if (WSTOPSIG(status) == SIGTRAP) { in test_ptrace_write_gsbase()
H A Dsingle_step_syscall.c95 [SIGTRAP] = "SIGTRAP",
152 sethandler(SIGTRAP, sigtrap, 0); in main()
H A Dsigreturn.c491 if (asm_ss != sig_ss && sig == SIGTRAP) { in sigtrap()
542 clearhandler(SIGTRAP); in test_nonstrict_ss()
781 sethandler(SIGTRAP, sigtrap, SA_ONSTACK); in main()
831 clearhandler(SIGTRAP); in main()
H A Dmov_ss_trap.c113 [SIGTRAP] = "SIGTRAP",
155 sethandler(SIGTRAP, sigtrap, 0); in main()
/OK3568_Linux_fs/kernel/kernel/debug/kdb/
H A Dkdb_debugger.c72 if (ks->err_code == KDB_REASON_SYSTEM_NMI && ks->signo == SIGTRAP) in kdb_stub()
110 ks->signo == SIGTRAP) { in kdb_stub()
/OK3568_Linux_fs/kernel/arch/riscv/kernel/
H A Dtraps.c153 force_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *)regs->epc); in do_trap_break()
155 else if (notify_die(DIE_TRAP, "EBREAK", regs, 0, regs->cause, SIGTRAP) in do_trap_break()
/OK3568_Linux_fs/u-boot/arch/powerpc/lib/
H A Dkgdb.c56 { 0x700, SIGTRAP }, /* breakpoint trap */
62 { 0xd00, SIGTRAP }, /* single-step/watch */
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dtraps.c967 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
972 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
992 force_sig(SIGTRAP); in do_trap_or_bp()
1007 force_sig(SIGTRAP); in do_trap_or_bp()
1013 force_sig_fault(SIGTRAP, si_code, NULL); in do_trap_or_bp()
1015 force_sig(SIGTRAP); in do_trap_or_bp()
1074 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1080 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1086 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1092 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
[all …]
/OK3568_Linux_fs/kernel/arch/csky/kernel/
H A Dasm-offsets.c82 DEFINE(SIGTRAP, SIGTRAP); in main()
H A Dtraps.c181 send_sig(SIGTRAP, current, 0); in do_trap_bkpt()
203 send_sig(SIGTRAP, current, 0); in do_trap_illinsn()
/OK3568_Linux_fs/kernel/arch/arm64/mm/
H A Dfault.c889 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware breakpoint" },
890 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware single-step" },
891 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware watchpoint" },
893 { do_bad, SIGTRAP, TRAP_BRKPT, "aarch32 BKPT" },
895 { early_brk64, SIGTRAP, TRAP_BRKPT, "aarch64 BRK" },
/OK3568_Linux_fs/kernel/arch/arm64/include/asm/
H A Dsignal.h18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
/OK3568_Linux_fs/kernel/arch/parisc/kernel/
H A Dtraps.c278 force_sig_fault(SIGTRAP, wot, in handle_gdb_break()
310 kgdb_handle_exception(9, SIGTRAP, 0, regs); in handle_break()
418 (void)notify_die(DIE_OOPS, msg, regs, 0, code, SIGTRAP); in parisc_terminate()
548 kgdb_handle_exception(0, SIGTRAP, 0, regs); in handle_interruption()

1234567