Home
last modified time | relevance | path

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

1234

/linux/tools/testing/selftests/x86/
H A Dint_signal.c94 TEST(short_int3, SIGTRAP, 3, 0, 1, 0, SI_KERNEL),
95 TEST(long_int3, SIGTRAP, 3, 0, 2, 0, SI_KERNEL),
111 if (seen && single_step && sig == SIGTRAP) { in handler()
216 if (!WIFSTOPPED(status) || WSTOPSIG(status) != SIGTRAP) in test_ptrace()
232 step = resume_to(child, &status, PTRACE_SINGLESTEP, SIGTRAP, int2d_step, in test_ptrace()
245 cont = resume_to(child, &status, PTRACE_CONT, SIGTRAP, int2d_step, in test_ptrace()
276 sethandler(SIGTRAP, handler, 0); in main()
H A Dsigtrap_loop.c63 sethandler(SIGTRAP, sigtrap, 0); in main()
/linux/arch/sh/kernel/
H A Dtraps.c143 SIGTRAP) == NOTIFY_STOP) in BUILD_TRAP_HANDLER()
146 force_sig(SIGTRAP); in BUILD_TRAP_HANDLER()
160 SIGTRAP) == NOTIFY_STOP) in BUILD_TRAP_HANDLER()
172 force_sig(SIGTRAP); in BUILD_TRAP_HANDLER()
H A 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/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()
H A Dsigtrap_threads.c130 ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0); in FIXTURE_SETUP()
146 sigaction(SIGTRAP, &self->oldact, NULL); in FIXTURE_TEARDOWN()
/linux/arch/arm64/kernel/
H A Dkgdb.c235 kgdb_handle_exception(1, SIGTRAP, 0, regs); in kgdb_brk_handler()
243 kgdb_handle_exception(1, SIGTRAP, 0, regs); in NOKPROBE_SYMBOL()
254 kgdb_handle_exception(0, SIGTRAP, 0, regs); in kgdb_single_step_handler()
/linux/arch/um/os-Linux/skas/
H A Dprocess.c115 #define STUB_DONE_MASK (1 << SIGTRAP)
145 printk(UM_KERN_ERR "%s : failed to wait for SIGTRAP, pid = %d, n = %d, errno = %d, status = 0x%x\n", in wait_stub_done()
614 if (sig == SIGTRAP && proc_data->err != 0) { in userspace()
726 case SIGTRAP: in userspace()
762 case SIGTRAP + 0x80: in userspace()
765 case SIGTRAP: in userspace()
766 relay_signal(SIGTRAP, (struct siginfo *)si, regs, NULL); in userspace()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dperf_skip.c50 if (!ASSERT_OK(sigaction(SIGTRAP, &action, &previous_sigtrap), "sigaction")) in serial_test_perf_skip()
136 sigaction(SIGTRAP, &previous_sigtrap, NULL); in serial_test_perf_skip()
/linux/arch/s390/kernel/
H A Dtraps.c89 if (notify_die(DIE_SSTEP, "sstep", regs, 0, 0, SIGTRAP) == NOTIFY_STOP) in do_per_trap()
93 force_sig_fault(SIGTRAP, TRAP_HWBKPT, (void __force __user *)current->thread.per_event.address); in do_per_trap()
167 force_sig_fault(SIGTRAP, TRAP_BRKPT, location); in illegal_op()
184 if (notify_die(DIE_BPT, "bpt", regs, 0, 3, SIGTRAP) != NOTIFY_STOP) in illegal_op()
/linux/arch/um/os-Linux/
H A Dstart_up.c163 (WSTOPSIG(status) == (SIGTRAP|0x80))) { in check_sysemu()
176 else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP)) in check_sysemu()
216 (WSTOPSIG(status) != (SIGTRAP | 0x80))) in check_ptrace()
/linux/arch/mips/kernel/
H A Dtraps.c976 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
981 SIGTRAP) == NOTIFY_STOP) in do_trap_or_bp()
1001 force_sig(SIGTRAP); in do_trap_or_bp()
1016 force_sig(SIGTRAP); in do_trap_or_bp()
1022 force_sig_fault(SIGTRAP, si_code, NULL); in do_trap_or_bp()
1024 force_sig(SIGTRAP); in do_trap_or_bp()
1079 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1085 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1091 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
1097 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp()
[all …]
/linux/arch/csky/kernel/
H A Dasm-offsets.c81 DEFINE(SIGTRAP, SIGTRAP); in main()
H A Dtraps.c180 send_sig(SIGTRAP, current, 0); in do_trap_bkpt()
202 send_sig(SIGTRAP, current, 0); in do_trap_illinsn()
/linux/arch/arm64/include/asm/
H A Dsignal.h18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
/linux/security/apparmor/include/
H A Dsig_names.h14 [SIGTRAP] = 5, /* -, 5, - */
/linux/arch/parisc/kernel/
H A Dtraps.c279 force_sig_fault(SIGTRAP, wot, in handle_gdb_break()
314 kgdb_handle_exception(9, SIGTRAP, 0, regs); in handle_break()
425 (void)notify_die(DIE_OOPS, msg, regs, 0, code, SIGTRAP); in parisc_terminate()
544 kgdb_handle_exception(0, SIGTRAP, 0, regs); in handle_interruption()
/linux/arch/m68k/include/uapi/asm/
H A Dsignal.h22 #define SIGTRAP 5 macro
/linux/arch/parisc/include/uapi/asm/
H A Dsignal.h9 #define SIGTRAP 5 macro
/linux/include/uapi/asm-generic/
H A Dsignal.h15 #define SIGTRAP 5 macro
/linux/arch/s390/include/uapi/asm/
H A Dsignal.h30 #define SIGTRAP 5 macro
/linux/arch/arm/include/uapi/asm/
H A Dsignal.h22 #define SIGTRAP 5 macro
/linux/arch/xtensa/include/uapi/asm/
H A Dsignal.h39 #define SIGTRAP 5 macro
/linux/arch/mips/include/uapi/asm/
H A Dsignal.h29 #define SIGTRAP 5 /* Trace trap (POSIX). */ macro
/linux/arch/powerpc/include/uapi/asm/
H A Dsignal.h25 #define SIGTRAP 5 macro

1234