ftrace: Join functions ftrace_module_init() and ftrace_init_module()
Simple cleanup. No need for two functions here. The whole work can simply be done inside 'ftrace_module_init'. Link: http://lkml.kernel.org/r/1449067197-5718-1-git-send-email-abelvesa@linux.com Signed-off-by: Abel Vesa <abelvesa@linux.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
2701121b8f
commit
b6b71f66a1
|
@ -4980,19 +4980,16 @@ void ftrace_release_mod(struct module *mod)
|
||||||
mutex_unlock(&ftrace_lock);
|
mutex_unlock(&ftrace_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ftrace_init_module(struct module *mod,
|
|
||||||
unsigned long *start, unsigned long *end)
|
|
||||||
{
|
|
||||||
if (ftrace_disabled || start == end)
|
|
||||||
return;
|
|
||||||
ftrace_process_locs(mod, start, end);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ftrace_module_init(struct module *mod)
|
void ftrace_module_init(struct module *mod)
|
||||||
{
|
{
|
||||||
ftrace_init_module(mod, mod->ftrace_callsites,
|
unsigned long *start = mod->ftrace_callsites;
|
||||||
mod->ftrace_callsites +
|
unsigned long *end = mod->ftrace_callsites +
|
||||||
mod->num_ftrace_callsites);
|
mod->num_ftrace_callsites;
|
||||||
|
|
||||||
|
if (ftrace_disabled || start == end)
|
||||||
|
return;
|
||||||
|
|
||||||
|
ftrace_process_locs(mod, start, end);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ftrace_module_notify_exit(struct notifier_block *self,
|
static int ftrace_module_notify_exit(struct notifier_block *self,
|
||||||
|
|
Loading…
Reference in New Issue