Lines Matching refs:mod
2581 static void add_module_kprobe_blacklist(struct module *mod) in add_module_kprobe_blacklist() argument
2586 if (mod->kprobe_blacklist) { in add_module_kprobe_blacklist()
2587 for (i = 0; i < mod->num_kprobe_blacklist; i++) in add_module_kprobe_blacklist()
2588 kprobe_add_ksym_blacklist(mod->kprobe_blacklist[i]); in add_module_kprobe_blacklist()
2591 start = (unsigned long)mod->kprobes_text_start; in add_module_kprobe_blacklist()
2593 end = start + mod->kprobes_text_size; in add_module_kprobe_blacklist()
2597 start = (unsigned long)mod->noinstr_text_start; in add_module_kprobe_blacklist()
2599 end = start + mod->noinstr_text_size; in add_module_kprobe_blacklist()
2604 static void remove_module_kprobe_blacklist(struct module *mod) in remove_module_kprobe_blacklist() argument
2609 if (mod->kprobe_blacklist) { in remove_module_kprobe_blacklist()
2610 for (i = 0; i < mod->num_kprobe_blacklist; i++) in remove_module_kprobe_blacklist()
2611 kprobe_remove_ksym_blacklist(mod->kprobe_blacklist[i]); in remove_module_kprobe_blacklist()
2614 start = (unsigned long)mod->kprobes_text_start; in remove_module_kprobe_blacklist()
2616 end = start + mod->kprobes_text_size; in remove_module_kprobe_blacklist()
2620 start = (unsigned long)mod->noinstr_text_start; in remove_module_kprobe_blacklist()
2622 end = start + mod->noinstr_text_size; in remove_module_kprobe_blacklist()
2631 struct module *mod = data; in kprobes_module_callback() local
2639 add_module_kprobe_blacklist(mod); in kprobes_module_callback()
2655 if (within_module_init((unsigned long)p->addr, mod) || in kprobes_module_callback()
2657 within_module_core((unsigned long)p->addr, mod))) { in kprobes_module_callback()
2673 remove_module_kprobe_blacklist(mod); in kprobes_module_callback()