/* * kgdb_arch_init - Perform any architecture specific initialization. * This function will handle the initialization of any architecture * specific callbacks. */ int kgdb_arch_init(void) { int ret = register_die_notifier(&kgdb_notifier); if (ret != 0) return ret; register_break_hook(&kgdb_brkpt_hook); register_break_hook(&kgdb_compiled_brkpt_hook); register_step_hook(&kgdb_step_hook); return 0; }
static int __init arch_init_uprobes(void) { register_break_hook(&uprobes_break_hook); register_step_hook(&uprobes_step_hook); return 0; }
/* This registration must happen early, before debug_traps_init(). */ void __init trap_init(void) { register_break_hook(&bug_break_hook); }