init, tracing: Have printk come through the trace events for initcall_debug
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 26 Mar 2018 17:31:07 +0000 (13:31 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 6 Apr 2018 12:56:55 +0000 (08:56 -0400)
commit4e37958d1288ce90e8b8eb526ed93d6b2ee6cf54
treeabd0f239b3edf0e87faec7d76a0fd5b0edad96c8
parent58eacfffc41735c9155becc73cb7f4dcc60a46a9
init, tracing: Have printk come through the trace events for initcall_debug

With trace events set before and after the initcall function calls, instead
of having a separate routine for printing out the initcalls when
initcall_debug is specified on the kernel command line, have the code
register a callback to the tracepoints where the initcall trace events are.

This removes the need for having a separate function to do the initcalls as
the tracepoint callbacks can handle the printk. It also includes other
initcalls that are not called by the do_one_initcall() which includes
console and security initcalls.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
init/main.c