Lines Matching refs:esr
191 static int call_step_hook(struct pt_regs *regs, unsigned int esr) in call_step_hook() argument
199 retval = hook->fn(regs, esr); in call_step_hook()
230 static int single_step_handler(unsigned long addr, unsigned int esr, in single_step_handler() argument
243 if (kprobe_single_step_handler(regs, esr) == DBG_HOOK_HANDLED) in single_step_handler()
246 if (!handler_found && call_step_hook(regs, esr) == DBG_HOOK_HANDLED) in single_step_handler()
295 static int call_break_hook(struct pt_regs *regs, unsigned int esr) in call_break_hook() argument
298 int (*fn)(struct pt_regs *regs, unsigned int esr) = NULL; in call_break_hook()
302 if ((esr & hook->esr_mask) == hook->esr_val) in call_break_hook()
306 return fn ? fn(regs, esr) : DBG_HOOK_ERROR; in call_break_hook()
310 static int brk_handler(unsigned long addr, unsigned int esr, in brk_handler() argument
316 if ((esr & BRK64_ESR_MASK) == BRK64_ESR_KPROBES) { in brk_handler()
317 if (kprobe_breakpoint_handler(regs, esr) == DBG_HOOK_HANDLED) in brk_handler()
321 if (!handler_found && call_break_hook(regs, esr) == DBG_HOOK_HANDLED) in brk_handler()