Lines Matching refs:esr
181 void do_el0_softstep(unsigned long esr, struct pt_regs *regs) in do_el0_softstep() argument
183 if (uprobe_single_step_handler(regs, esr) == DBG_HOOK_HANDLED) in do_el0_softstep()
196 void do_el1_softstep(unsigned long esr, struct pt_regs *regs) in do_el1_softstep() argument
198 if (kgdb_single_step_handler(regs, esr) == DBG_HOOK_HANDLED) in do_el1_softstep()
210 static int call_el1_break_hook(struct pt_regs *regs, unsigned long esr) in call_el1_break_hook() argument
212 if (esr_brk_comment(esr) == BUG_BRK_IMM) in call_el1_break_hook()
213 return bug_brk_handler(regs, esr); in call_el1_break_hook()
215 if (IS_ENABLED(CONFIG_CFI) && esr_is_cfi_brk(esr)) in call_el1_break_hook()
216 return cfi_brk_handler(regs, esr); in call_el1_break_hook()
218 if (esr_brk_comment(esr) == FAULT_BRK_IMM) in call_el1_break_hook()
219 return reserved_fault_brk_handler(regs, esr); in call_el1_break_hook()
222 (esr_brk_comment(esr) & ~KASAN_BRK_MASK) == KASAN_BRK_IMM) in call_el1_break_hook()
223 return kasan_brk_handler(regs, esr); in call_el1_break_hook()
225 if (IS_ENABLED(CONFIG_UBSAN_TRAP) && esr_is_ubsan_brk(esr)) in call_el1_break_hook()
226 return ubsan_brk_handler(regs, esr); in call_el1_break_hook()
229 if (esr_brk_comment(esr) == KGDB_DYN_DBG_BRK_IMM) in call_el1_break_hook()
230 return kgdb_brk_handler(regs, esr); in call_el1_break_hook()
231 if (esr_brk_comment(esr) == KGDB_COMPILED_DBG_BRK_IMM) in call_el1_break_hook()
232 return kgdb_compiled_brk_handler(regs, esr); in call_el1_break_hook()
236 if (esr_brk_comment(esr) == KPROBES_BRK_IMM) in call_el1_break_hook()
237 return kprobe_brk_handler(regs, esr); in call_el1_break_hook()
238 if (esr_brk_comment(esr) == KPROBES_BRK_SS_IMM) in call_el1_break_hook()
239 return kprobe_ss_brk_handler(regs, esr); in call_el1_break_hook()
243 esr_brk_comment(esr) == KRETPROBES_BRK_IMM) in call_el1_break_hook()
244 return kretprobe_brk_handler(regs, esr); in call_el1_break_hook()
254 void do_el0_brk64(unsigned long esr, struct pt_regs *regs) in do_el0_brk64() argument
257 esr_brk_comment(esr) == UPROBES_BRK_IMM && in do_el0_brk64()
258 uprobe_brk_handler(regs, esr) == DBG_HOOK_HANDLED) in do_el0_brk64()
264 void do_el1_brk64(unsigned long esr, struct pt_regs *regs) in do_el1_brk64() argument
266 if (call_el1_break_hook(regs, esr) == DBG_HOOK_HANDLED) in do_el1_brk64()
269 die("Oops - BRK", regs, esr); in do_el1_brk64()
274 void do_bkpt32(unsigned long esr, struct pt_regs *regs) in do_bkpt32() argument
276 arm64_notify_die("aarch32 BKPT", regs, SIGTRAP, TRAP_BRKPT, regs->pc, esr); in do_bkpt32()