Lines Matching refs:hook
179 void register_user_step_hook(struct step_hook *hook) in register_user_step_hook() argument
181 register_debug_hook(&hook->node, &user_step_hook); in register_user_step_hook()
184 void unregister_user_step_hook(struct step_hook *hook) in unregister_user_step_hook() argument
186 unregister_debug_hook(&hook->node); in unregister_user_step_hook()
189 void register_kernel_step_hook(struct step_hook *hook) in register_kernel_step_hook() argument
191 register_debug_hook(&hook->node, &kernel_step_hook); in register_kernel_step_hook()
194 void unregister_kernel_step_hook(struct step_hook *hook) in unregister_kernel_step_hook() argument
196 unregister_debug_hook(&hook->node); in unregister_kernel_step_hook()
207 struct step_hook *hook; in call_step_hook() local
217 list_for_each_entry_rcu(hook, list, node) { in call_step_hook()
218 retval = hook->fn(regs, esr); in call_step_hook()
282 void register_user_break_hook(struct break_hook *hook) in register_user_break_hook() argument
284 register_debug_hook(&hook->node, &user_break_hook); in register_user_break_hook()
287 void unregister_user_break_hook(struct break_hook *hook) in unregister_user_break_hook() argument
289 unregister_debug_hook(&hook->node); in unregister_user_break_hook()
292 void register_kernel_break_hook(struct break_hook *hook) in register_kernel_break_hook() argument
294 register_debug_hook(&hook->node, &kernel_break_hook); in register_kernel_break_hook()
297 void unregister_kernel_break_hook(struct break_hook *hook) in unregister_kernel_break_hook() argument
299 unregister_debug_hook(&hook->node); in unregister_kernel_break_hook()
304 struct break_hook *hook; in call_break_hook() local
314 list_for_each_entry_rcu(hook, list, node) { in call_break_hook()
317 if ((comment & ~hook->mask) == hook->imm) in call_break_hook()
318 fn = hook->fn; in call_break_hook()