mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00:00
ftrace: Have function tracing start in early boot up
Register the function tracer right after the tracing buffers are initialized in early boot up. This will allow function tracing to begin early if it is enabled via the kernel command line. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
9afecfbb95
commit
dbeafd0d61
3 changed files with 6 additions and 2 deletions
|
@ -687,9 +687,8 @@ static inline int init_func_cmd_traceon(void)
|
|||
}
|
||||
#endif /* CONFIG_DYNAMIC_FTRACE */
|
||||
|
||||
static __init int init_function_trace(void)
|
||||
__init int init_function_trace(void)
|
||||
{
|
||||
init_func_cmd_traceon();
|
||||
return register_tracer(&function_trace);
|
||||
}
|
||||
core_initcall(init_function_trace);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue