Home
last modified time | relevance | path

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

12345

/openbmc/linux/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()
/openbmc/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-sigreturn-nt.c40 sigaction(SIGTRAP, &trap_sa, NULL); in tm_signal_sigreturn_nt()
42 raise(SIGTRAP); in tm_signal_sigreturn_nt()
/openbmc/linux/include/linux/
H A Dptrace.h151 ptrace_notify((event << 8) | SIGTRAP, message); 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()
/openbmc/linux/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()
/openbmc/linux/tools/testing/selftests/perf_events/
H A Dremove_on_exec.c86 ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0); in FIXTURE_SETUP()
96 sigaction(SIGTRAP, &self->oldact, NULL); in FIXTURE_TEARDOWN()
238 if (sigaction(SIGTRAP, &action, NULL)) in exec_child()
/openbmc/linux/arch/powerpc/kernel/
H A Dtraps.c105 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, regs, TRAP_TRACE, regs->nip); in __single_step_exception()
[all …]
/openbmc/linux/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()
/openbmc/linux/arch/um/os-Linux/skas/
H A Dprocess.c105 #define STUB_DONE_MASK (1 << SIGTRAP)
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()
/openbmc/linux/arch/s390/kernel/
H A Dtraps.c73 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()
/openbmc/qemu/tests/tcg/m68k/
H A Dtrap.c46 sigaction(SIGTRAP, &act, NULL); in main()
123 expect_sig = SIGTRAP; in main()
/openbmc/linux/arch/arm64/kernel/
H A Dkgdb.c239 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_brk_fn()
247 kgdb_handle_exception(1, SIGTRAP, 0, regs); in NOKPROBE_SYMBOL()
258 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()
383 hook_debug_fault_code(DBG_ESR_EVT_HWSS, single_step_handler, SIGTRAP, in debug_traps_init()
385 hook_debug_fault_code(DBG_ESR_EVT_BRK, brk_handler, SIGTRAP, in debug_traps_init()
/openbmc/linux/tools/testing/selftests/x86/
H A Dfsgsbase.c472 raise(SIGTRAP); in test_ptrace_write_gs_read_base()
478 if (WSTOPSIG(status) == SIGTRAP) { in test_ptrace_write_gs_read_base()
532 raise(SIGTRAP); in test_ptrace_write_gsbase()
538 if (WSTOPSIG(status) == SIGTRAP) { in test_ptrace_write_gsbase()
H A Dsingle_step_syscall.c94 [SIGTRAP] = "SIGTRAP",
151 sethandler(SIGTRAP, sigtrap, 0); in main()
H A Dsigreturn.c488 if (asm_ss != sig_ss && sig == SIGTRAP) { in sigtrap()
539 clearhandler(SIGTRAP); in test_nonstrict_ss()
779 sethandler(SIGTRAP, sigtrap, SA_ONSTACK); in main()
829 clearhandler(SIGTRAP); in main()
H A Dmov_ss_trap.c112 [SIGTRAP] = "SIGTRAP",
154 sethandler(SIGTRAP, sigtrap, 0); in main()
/openbmc/linux/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()
/openbmc/u-boot/arch/powerpc/lib/
H A Dkgdb.c56 { 0x700, SIGTRAP }, /* breakpoint trap */
62 { 0xd00, SIGTRAP }, /* single-step/watch */
/openbmc/linux/arch/csky/kernel/
H A Dasm-offsets.c80 DEFINE(SIGTRAP, SIGTRAP); in main()
H A Dtraps.c179 send_sig(SIGTRAP, current, 0); in do_trap_bkpt()
201 send_sig(SIGTRAP, current, 0); in do_trap_illinsn()
/openbmc/linux/arch/arm64/include/asm/
H A Dsignal.h18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
/openbmc/linux/tools/perf/tests/
H A Dsigtrap.c192 if (sigaction(SIGTRAP, &action, &oldact)) { in test__sigtrap()
221 sigaction(SIGTRAP, &oldact, NULL); in test__sigtrap()
/openbmc/linux/arch/mips/kernel/
H A Dtraps.c974 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
979 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
999 force_sig(SIGTRAP); in do_trap_or_bp()
1014 force_sig(SIGTRAP); in do_trap_or_bp()
1020 force_sig_fault(SIGTRAP, si_code, NULL); in do_trap_or_bp()
1022 force_sig(SIGTRAP); in do_trap_or_bp()
1077 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1083 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1089 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1095 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
[all …]
/openbmc/linux/arch/arm64/mm/
H A Dfault.c874 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware breakpoint" },
875 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware single-step" },
876 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware watchpoint" },
878 { do_bad, SIGTRAP, TRAP_BRKPT, "aarch32 BKPT" },
880 { early_brk64, SIGTRAP, TRAP_BRKPT, "aarch64 BRK" },

12345