diff options
Diffstat (limited to 'kernel/module.c')
| -rw-r--r-- | kernel/module.c | 13 | 
1 files changed, 2 insertions, 11 deletions
diff --git a/kernel/module.c b/kernel/module.c index 1f4cc00e0c20..dd2a54155b54 100644 --- a/kernel/module.c +++ b/kernel/module.c  | |||
| @@ -2184,24 +2184,15 @@ static noinline struct module *load_module(void __user *umod, | |||
| 2184 | struct mod_debug *debug; | 2184 | struct mod_debug *debug; | 
| 2185 | unsigned int num_debug; | 2185 | unsigned int num_debug; | 
| 2186 | 2186 | ||
| 2187 | #ifdef CONFIG_MARKERS | ||
| 2188 | marker_update_probe_range(mod->markers, | ||
| 2189 | mod->markers + mod->num_markers); | ||
| 2190 | #endif | ||
| 2191 | debug = section_objs(hdr, sechdrs, secstrings, "__verbose", | 2187 | debug = section_objs(hdr, sechdrs, secstrings, "__verbose", | 
| 2192 | sizeof(*debug), &num_debug); | 2188 | sizeof(*debug), &num_debug); | 
| 2193 | dynamic_printk_setup(debug, num_debug); | 2189 | dynamic_printk_setup(debug, num_debug); | 
| 2194 | |||
| 2195 | #ifdef CONFIG_TRACEPOINTS | ||
| 2196 | tracepoint_update_probe_range(mod->tracepoints, | ||
| 2197 | mod->tracepoints + mod->num_tracepoints); | ||
| 2198 | #endif | ||
| 2199 | } | 2190 | } | 
| 2200 | 2191 | ||
| 2201 | /* sechdrs[0].sh_size is always zero */ | 2192 | /* sechdrs[0].sh_size is always zero */ | 
| 2202 | mseg = section_objs(hdr, sechdrs, secstrings, "__mcount_loc", | 2193 | mseg = section_objs(hdr, sechdrs, secstrings, "__mcount_loc", | 
| 2203 | sizeof(*mseg), &num_mcount); | 2194 | sizeof(*mseg), &num_mcount); | 
| 2204 | ftrace_init_module(mseg, mseg + num_mcount); | 2195 | ftrace_init_module(mod, mseg, mseg + num_mcount); | 
| 2205 | 2196 | ||
| 2206 | err = module_finalize(hdr, sechdrs, mod); | 2197 | err = module_finalize(hdr, sechdrs, mod); | 
| 2207 | if (err < 0) | 2198 | if (err < 0) | 
| @@ -2713,7 +2704,7 @@ int is_module_address(unsigned long addr) | |||
| 2713 | 2704 | ||
| 2714 | 2705 | ||
| 2715 | /* Is this a valid kernel address? */ | 2706 | /* Is this a valid kernel address? */ | 
| 2716 | struct module *__module_text_address(unsigned long addr) | 2707 | __notrace_funcgraph struct module *__module_text_address(unsigned long addr) | 
| 2717 | { | 2708 | { | 
| 2718 | struct module *mod; | 2709 | struct module *mod; | 
| 2719 | 2710 | ||
