Lines Matching refs:hook
189 void register_step_hook(struct step_hook *hook) in register_step_hook() argument
192 list_add_rcu(&hook->node, &step_hook); in register_step_hook()
196 void unregister_step_hook(struct step_hook *hook) in unregister_step_hook() argument
199 list_del_rcu(&hook->node); in unregister_step_hook()
212 struct step_hook *hook; in call_step_hook() local
217 list_for_each_entry_rcu(hook, &step_hook, node) { in call_step_hook()
218 retval = hook->fn(regs, esr); in call_step_hook()
277 void register_break_hook(struct break_hook *hook) in register_break_hook() argument
280 list_add_rcu(&hook->node, &break_hook); in register_break_hook()
284 void unregister_break_hook(struct break_hook *hook) in unregister_break_hook() argument
287 list_del_rcu(&hook->node); in unregister_break_hook()
294 struct break_hook *hook; in call_break_hook() local
298 list_for_each_entry_rcu(hook, &break_hook, node) in call_break_hook()
299 if ((esr & hook->esr_mask) == hook->esr_val) in call_break_hook()
300 fn = hook->fn; in call_break_hook()