Lines Matching refs:hook
191 void register_step_hook(struct step_hook *hook) in register_step_hook() argument
194 list_add_rcu(&hook->node, &step_hook); in register_step_hook()
198 void unregister_step_hook(struct step_hook *hook) in unregister_step_hook() argument
201 list_del_rcu(&hook->node); in unregister_step_hook()
214 struct step_hook *hook; in call_step_hook() local
219 list_for_each_entry_rcu(hook, &step_hook, node) { in call_step_hook()
220 retval = hook->fn(regs, esr); in call_step_hook()
279 void register_break_hook(struct break_hook *hook) in register_break_hook() argument
282 list_add_rcu(&hook->node, &break_hook); in register_break_hook()
286 void unregister_break_hook(struct break_hook *hook) in unregister_break_hook() argument
289 list_del_rcu(&hook->node); in unregister_break_hook()
296 struct break_hook *hook; in call_break_hook() local
300 list_for_each_entry_rcu(hook, &break_hook, node) in call_break_hook()
301 if ((esr & hook->esr_mask) == hook->esr_val) in call_break_hook()
302 fn = hook->fn; in call_break_hook()