/arch/microblaze/kernel/ |
D | exceptions.c | 76 type, user_mode(regs) ? "user" : "kernel", fsr, in full_exception() 82 if (user_mode(regs)) { in full_exception() 91 if (user_mode(regs)) { in full_exception() 100 if (user_mode(regs)) { in full_exception() 109 if (user_mode(regs)) { in full_exception()
|
/arch/nds32/mm/ |
D | fault.c | 98 if (user_mode(regs)) in do_page_fault() 111 if (user_mode(regs)) in do_page_fault() 132 if (!user_mode(regs) && in do_page_fault() 144 if (!user_mode(regs) && in do_page_fault() 219 if (!user_mode(regs)) in do_page_fault() 259 if (user_mode(regs)) { in do_page_fault() 314 if (!user_mode(regs)) in do_page_fault() 323 if (!user_mode(regs)) in do_page_fault()
|
/arch/nios2/mm/ |
D | fault.c | 68 if (user_mode(regs)) in do_page_fault() 84 if (user_mode(regs)) in do_page_fault() 90 if (!user_mode(regs) && !search_exception_tables(regs->ea)) in do_page_fault() 178 if (user_mode(regs)) { in do_page_fault() 213 if (!user_mode(regs)) in do_page_fault() 222 if (!user_mode(regs)) in do_page_fault()
|
/arch/openrisc/mm/ |
D | fault.c | 79 !user_mode(regs)) in do_page_fault() 83 if (user_mode(regs)) { in do_page_fault() 122 if (user_mode(regs)) { in do_page_fault() 209 if (user_mode(regs)) { in do_page_fault() 263 if (!user_mode(regs)) in do_page_fault() 278 if (!user_mode(regs)) in do_page_fault()
|
/arch/xtensa/mm/ |
D | fault.c | 52 if (address >= TASK_SIZE && !user_mode(regs)) in do_page_fault() 73 if (user_mode(regs)) in do_page_fault() 116 if (!user_mode(regs)) in do_page_fault() 151 if (user_mode(regs)) { in do_page_fault() 166 if (!user_mode(regs)) in do_page_fault() 182 if (!user_mode(regs)) in do_page_fault()
|
/arch/alpha/mm/ |
D | fault.c | 118 if (user_mode(regs)) in do_page_fault() 190 if (user_mode(regs)) in do_page_fault() 213 if (!user_mode(regs)) in do_page_fault() 223 if (!user_mode(regs)) in do_page_fault() 233 if (user_mode(regs)) in do_page_fault()
|
/arch/csky/mm/ |
D | fault.c | 82 if (!user_mode(regs)) { in mm_fault_error() 90 if (!user_mode(regs)) { in mm_fault_error() 108 if (user_mode(regs)) { in bad_area() 125 if (user_mode(regs)) { in vmalloc_fault() 233 if (user_mode(regs)) in do_page_fault() 283 if (!user_mode(regs)) in do_page_fault()
|
/arch/s390/kernel/ |
D | traps.c | 52 if (user_mode(regs)) { in do_report_trap() 85 if (user_mode(regs)) { in default_trap_handler() 160 if (user_mode(regs)) { in illegal_op() 180 if (is_uprobe_insn || !user_mode(regs)) { in illegal_op() 239 if (user_mode(regs)) in space_switch_exception() 249 if (user_mode(regs)) in monitor_event_exception() 312 if (user_mode(regs)) { in __do_pgm_check() 326 if (user_mode(regs)) { in __do_pgm_check()
|
D | perf_event.c | 38 if (user_mode(regs)) in is_in_guest() 76 flags = user_mode(regs) ? PERF_RECORD_MISC_GUEST_USER in perf_misc_flags_sf() 79 flags = user_mode(regs) ? PERF_RECORD_MISC_USER in perf_misc_flags_sf() 97 return user_mode(regs) ? PERF_RECORD_MISC_USER in perf_misc_flags()
|
D | perf_regs.c | 19 if (!user_mode(regs)) in perf_reg_value() 65 if (user_mode(regs_user->regs)) in perf_get_regs_user()
|
/arch/riscv/mm/ |
D | fault.c | 68 if (!user_mode(regs)) { in mm_fault_error() 76 if (!user_mode(regs)) { in mm_fault_error() 94 if (user_mode(regs)) { in bad_area() 113 if (user_mode(regs)) in vmalloc_fault() 271 if (user_mode(regs)) in do_page_fault() 274 if (!user_mode(regs) && addr < TASK_SIZE && unlikely(!(regs->status & SR_SUM))) { in do_page_fault()
|
/arch/nds32/kernel/ |
D | traps.c | 137 if (!user_mode(regs) || in_interrupt()) { in die() 151 if (user_mode(regs)) in die_if_kernel() 228 if (user_mode(regs)) { in do_debug_trap() 242 if (!user_mode(regs)) in unhandled_interruption() 253 if (!user_mode(regs)) in unhandled_exceptions() 280 if (!user_mode(regs)) in do_revinsn() 298 if (user_mode(regs) && unalign_access_mode) { in do_dispatch_general()
|
/arch/arc/mm/ |
D | fault.c | 88 if (address >= VMALLOC_START && !user_mode(regs)) { in do_page_fault() 109 if (user_mode(regs)) in do_page_fault() 144 if (!user_mode(regs)) in do_page_fault() 169 if (!user_mode(regs)) in do_page_fault()
|
/arch/m68k/mm/ |
D | fault.c | 32 if (user_mode(regs)) { in send_fault_sig() 86 if (user_mode(regs)) in do_page_fault() 102 if (user_mode(regs)) { in do_page_fault() 179 if (!user_mode(regs)) in do_page_fault()
|
/arch/microblaze/mm/ |
D | fault.c | 122 if (user_mode(regs)) in do_page_fault() 266 if (user_mode(regs)) { in do_page_fault() 280 if (!user_mode(regs)) in do_page_fault() 288 if (user_mode(regs)) { in do_page_fault()
|
/arch/x86/kernel/ |
D | traps.c | 114 } else if (!user_mode(regs)) { in do_trap_no_signal() 259 if (!user_mode(regs) && handle_bug(regs)) in DEFINE_IDTENTRY_RAW() 300 if (!user_mode(regs)) in DEFINE_IDTENTRY_ERRORCODE() 478 if (!user_mode(regs)) in DEFINE_IDTENTRY() 573 if (user_mode(regs) && fixup_umip_exception(regs)) in DEFINE_IDTENTRY_ERRORCODE() 586 if (user_mode(regs)) { in DEFINE_IDTENTRY_ERRORCODE() 691 if (user_mode(regs)) { in DEFINE_IDTENTRY_RAW() 788 BUG_ON(!user_mode(new_stack)); in fixup_bad_iret() 900 WARN_ON_ONCE(user_mode(regs)); in exc_debug_kernel() 961 WARN_ON_ONCE(!user_mode(regs)); in exc_debug_user() [all …]
|
/arch/mips/include/asm/ |
D | ptrace.h | 141 #define user_mode(regs) (((regs)->cp0_status & KU_MASK) == KU_USER) macro 150 if (is_syscall_success(regs) || !user_mode(regs)) in regs_return_value() 166 if (unlikely(!user_mode(regs))) in die_if_kernel()
|
/arch/hexagon/mm/ |
D | vm_fault.c | 55 if (user_mode(regs)) in do_page_fault() 115 if (!user_mode(regs)) in do_page_fault() 141 if (user_mode(regs)) { in do_page_fault()
|
/arch/powerpc/mm/ |
D | fault.c | 61 if (!user_mode(regs)) in __bad_area_nosemaphore() 124 if (!user_mode(regs)) in bad_access_pkey() 140 if (!user_mode(regs)) in do_sigbus() 172 if (fatal_signal_pending(current) && !user_mode(regs)) in mm_fault_error() 181 if (!user_mode(regs)) in mm_fault_error() 393 int is_user = user_mode(regs); in ___do_page_fault() 505 return user_mode(regs) ? 0 : SIGBUS; in ___do_page_fault() 574 return user_mode(regs) ? 0 : SIGBUS; in ___do_page_fault()
|
/arch/x86/mm/ |
D | fault.c | 90 return (!user_mode(regs) || user_64bit_mode(regs)); in check_prefetch_opcode() 151 if (user_mode(regs)) { in is_prefetch() 424 if (user_mode(regs)) in is_errata93() 532 if (address < PAGE_SIZE && !user_mode(regs)) in show_fault_oops() 544 user_mode(regs) ? "user" : "kernel"); in show_fault_oops() 551 if (!(error_code & X86_PF_USER) && user_mode(regs)) { in show_fault_oops() 641 if (user_mode(regs)) { in page_fault_oops() 716 WARN_ON_ONCE(user_mode(regs)); in kernelmode_fixup_or_oops() 805 if (!user_mode(regs)) { in __bad_area_nosemaphore() 938 if (!user_mode(regs)) { in do_sigbus() [all …]
|
/arch/mips/mm/ |
D | fault.c | 97 if (user_mode(regs)) in __do_page_fault() 160 if (!user_mode(regs)) in __do_page_fault() 200 if (user_mode(regs)) { in __do_page_fault() 249 if (!user_mode(regs)) in __do_page_fault() 258 if (!user_mode(regs)) in __do_page_fault()
|
/arch/openrisc/kernel/ |
D | traps.c | 66 if (user_mode(regs)) in show_registers() 221 if (user_mode(regs)) in die_if_kernel() 241 if (user_mode(regs)) { in do_unaligned_access() 254 if (user_mode(regs)) { in do_bus_fault() 360 if (user_mode(regs)) { in simulate_lwa() 407 if (user_mode(regs)) { in simulate_swa() 449 if (user_mode(regs)) { in do_illegal_instruction()
|
/arch/sh/kernel/ |
D | traps.c | 40 if (!user_mode(regs) || in_interrupt()) in die() 65 if (!user_mode(regs)) in die_if_kernel() 77 if (!user_mode(regs)) { in die_if_no_fixup()
|
/arch/arm/mm/ |
D | fault.c | 176 if (user_mode(regs)) in do_bad_area() 265 if (user_mode(regs)) in do_page_fault() 278 if (!user_mode(regs) && !search_exception_tables(regs->ARM_pc)) in do_page_fault() 290 if (!user_mode(regs) && in do_page_fault() 303 if (!user_mode(regs)) in do_page_fault() 327 if (!user_mode(regs)) in do_page_fault() 403 if (user_mode(regs)) in do_translation_fault()
|
/arch/nios2/kernel/ |
D | traps.c | 48 if (!user_mode(regs)) in _exception() 132 if (!user_mode(fp)) { in handle_unaligned_c() 175 cause, user_mode(regs) ? "user" : "kernel", addr); in unhandled_exception()
|