/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | uprobes.c | 56 autask->saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 57 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 79 * sets thread.trap_nr != UINT_MAX. 81 * arch_uprobe_pre_xol/arch_uprobe_post_xol save/restore thread.trap_nr, 82 * arch_uprobe_xol_was_trapped() simply checks that ->trap_nr is not equal to 87 if (t->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped() 104 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 106 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 159 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol()
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | uprobes.c | 42 utask->autask.saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 43 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 54 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 55 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 71 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol() 78 if (t->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped()
|
H A D | traps.c | 381 current->thread.trap_nr, SIGSEGV); in die() 487 if (notify_die(DIE_FP, "FP exception", regs, 0, current->thread.trap_nr, in do_fpe() 594 current->thread.trap_nr = read_csr_excode(); in do_bce() 718 current->thread.trap_nr = read_csr_excode(); in do_bp() 720 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 817 current->thread.trap_nr = read_csr_excode(); in do_ri() 819 if (notify_die(DIE_RI, "RI Fault", regs, 0, current->thread.trap_nr, in do_ri()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | uprobes.c | 68 autask->saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 69 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 91 * sets thread.trap_nr != UINT_MAX. 93 * arch_uprobe_pre_xol/arch_uprobe_post_xol save/restore thread.trap_nr, 94 * arch_uprobe_xol_was_trapped() simply checks that ->trap_nr is not equal to 99 if (t->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped() 116 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 118 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 172 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol()
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | uprobes.c | 119 utask->autask.saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 120 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 130 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 140 * like do_page_fault/do_trap/etc sets thread.trap_nr != -1. 142 * arch_uprobe_pre_xol/arch_uprobe_post_xol save/restore thread.trap_nr, 143 * arch_uprobe_xol_was_trapped() simply checks that ->trap_nr is not equal to 148 if (tsk->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped() 194 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol()
|
H A D | traps.c | 401 if (notify_die(DIE_OOPS, str, regs, 0, current->thread.trap_nr, in die() 487 if (notify_die(DIE_OOPS, "bus error", regs, 0, current->thread.trap_nr, in do_be() 881 if (notify_die(DIE_FP, "FP exception", regs, 0, current->thread.trap_nr, in do_fpe() 973 if (kgdb_ll_trap(DIE_TRAP, str, regs, code, current->thread.trap_nr, in do_trap_or_bp() 978 if (notify_die(DIE_TRAP, str, regs, code, current->thread.trap_nr, in do_trap_or_bp() 1035 current->thread.trap_nr = (regs->cp0_cause >> 2) & 0x1f; in do_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, SIGTRA in do_bp() [all...] |
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | uprobes.c | 98 utask->autask.saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 99 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 109 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 122 * like do_page_fault/do_trap/etc sets thread.trap_nr != -1. 124 * arch_uprobe_pre_xol/arch_uprobe_post_xol save/restore thread.trap_nr, 125 * arch_uprobe_xol_was_trapped() simply checks that ->trap_nr is not equal to 130 if (tsk->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped()
|
H A D | traps.c | 412 if (notify_die(DIE_OOPS, str, regs, 0, current->thread.trap_nr, in die() 519 if (notify_die(DIE_FP, "FP exception", regs, 0, current->thread.trap_nr, in do_fpe() 626 current->thread.trap_nr = read_csr_excode(); in do_bce() 712 current->thread.trap_nr = read_csr_excode(); in do_bp() 719 if (kgdb_ll_trap(DIE_TRAP, str, regs, code, current->thread.trap_nr, in do_bp() 731 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 737 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 743 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 749 current->thread.trap_nr, SIGTRAP) == NOTIFY_STOP) in do_bp() 755 current->thread.trap_nr, SIGTRA in do_bp() [all...] |
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | uprobes.c | 119 utask->autask.saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 120 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 130 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 140 * like do_page_fault/do_trap/etc sets thread.trap_nr != -1. 142 * arch_uprobe_pre_xol/arch_uprobe_post_xol save/restore thread.trap_nr, 143 * arch_uprobe_xol_was_trapped() simply checks that ->trap_nr is not equal to 148 if (tsk->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped()
|
H A D | traps.c | 392 if (notify_die(DIE_OOPS, str, regs, 0, current->thread.trap_nr, in die() 478 if (notify_die(DIE_OOPS, "bus error", regs, 0, current->thread.trap_nr, in do_be() 874 if (notify_die(DIE_FP, "FP exception", regs, 0, current->thread.trap_nr, in do_fpe() 966 if (kgdb_ll_trap(DIE_TRAP, str, regs, code, current->thread.trap_nr, in do_trap_or_bp() 971 if (notify_die(DIE_TRAP, str, regs, code, current->thread.trap_nr, in do_trap_or_bp() 1032 current->thread.trap_nr = (regs->cp0_cause >> 2) & 0x1f; in do_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, SIGTRA in do_bp() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | traps.c | 118 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 123 * We want error_code and trap_nr set for userspace faults and in do_trap_no_signal() 132 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 414 tsk->thread.trap_nr = X86_TRAP_DF; in DEFINE_IDTENTRY_DF() 586 tsk->thread.trap_nr = X86_TRAP_GP; in DEFINE_IDTENTRY_ERRORCODE() 597 tsk->thread.trap_nr = X86_TRAP_GP; in DEFINE_IDTENTRY_ERRORCODE() 1063 task->thread.trap_nr = trapnr; in math_error() 1076 task->thread.trap_nr = trapnr; in math_error()
|
H A D | uprobes.c | 927 utask->autask.saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 928 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 942 * like do_page_fault/do_trap/etc sets thread.trap_nr != -1. 944 * arch_uprobe_pre_xol/arch_uprobe_post_xol save/restore thread.trap_nr, 945 * arch_uprobe_xol_was_trapped() simply checks that ->trap_nr is not equal to 950 if (t->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped() 969 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 970 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 1041 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol()
|
/kernel/linux/linux-5.10/arch/loongarch/mm/ |
H A D | fault.c | 81 current->thread.trap_nr = read_csr_excode(); in do_sigbus() 103 current->thread.trap_nr = read_csr_excode(); in do_sigsegv() 143 current->thread.trap_nr, SIGSEGV) == NOTIFY_STOP) in __do_page_fault()
|
/kernel/linux/linux-5.10/arch/mips/mm/ |
H A D | fault.c | 62 current->thread.trap_nr, SIGSEGV) == NOTIFY_STOP) in __do_page_fault() 216 current->thread.trap_nr = (regs->cp0_cause >> 2) & 0x1f; in __do_page_fault() 271 current->thread.trap_nr = (regs->cp0_cause >> 2) & 0x1f; in __do_page_fault()
|
/kernel/linux/linux-6.6/arch/loongarch/mm/ |
H A D | fault.c | 87 current->thread.trap_nr = read_csr_excode(); in do_sigbus() 109 current->thread.trap_nr = read_csr_excode(); in do_sigsegv() 144 if (kprobe_page_fault(regs, current->thread.trap_nr)) in __do_page_fault()
|
/kernel/linux/linux-6.6/arch/mips/mm/ |
H A D | fault.c | 62 current->thread.trap_nr, SIGSEGV) == NOTIFY_STOP) in __do_page_fault() 214 current->thread.trap_nr = (regs->cp0_cause >> 2) & 0x1f; in __do_page_fault() 269 current->thread.trap_nr = (regs->cp0_cause >> 2) & 0x1f; in __do_page_fault()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | uprobes.c | 927 utask->autask.saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 928 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 942 * like do_page_fault/do_trap/etc sets thread.trap_nr != -1. 944 * arch_uprobe_pre_xol/arch_uprobe_post_xol save/restore thread.trap_nr, 945 * arch_uprobe_xol_was_trapped() simply checks that ->trap_nr is not equal to 950 if (t->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped() 969 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 970 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 1043 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol()
|
H A D | traps.c | 111 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 119 * We want error_code and trap_nr set for userspace faults and in do_trap_no_signal() 128 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 420 tsk->thread.trap_nr = X86_TRAP_DF; in DEFINE_IDTENTRY_DF() 620 current->thread.trap_nr = trapnr; in gp_try_fixup_and_notify() 637 current->thread.trap_nr = trapnr; in gp_user_force_sig_segv() 1129 task->thread.trap_nr = trapnr; in math_error() 1143 task->thread.trap_nr = trapnr; in math_error()
|
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | processor.h | 141 unsigned long trap_nr; member 186 .trap_nr = 0, \
|
/kernel/linux/linux-6.6/arch/loongarch/include/asm/ |
H A D | processor.h | 128 unsigned long trap_nr; member 174 .trap_nr = 0, \
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | hw_breakpoint.h | 32 unsigned int trap_nr; member
|
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | hw_breakpoint.h | 32 unsigned int trap_nr; member
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | processor.h | 282 unsigned long trap_nr; member 360 .trap_nr = 0, \
|
/kernel/linux/linux-5.10/arch/x86/kernel/fpu/ |
H A D | core.c | 427 int fpu__exception_code(struct fpu *fpu, int trap_nr) in fpu__exception_code() argument 431 if (trap_nr == X86_TRAP_MF) { in fpu__exception_code()
|
/kernel/linux/linux-6.6/arch/mips/include/asm/ |
H A D | processor.h | 265 unsigned long trap_nr; member 343 .trap_nr = 0, \
|