init/main.c: log initcall level when initcall_debug is used
authorFrancesco Valla <francesco@valla.it>
Sun, 16 Mar 2025 20:50:15 +0000 (21:50 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:54:04 +0000 (17:54 -0700)
commit3330dc1b2074629c74008ea0ee0b4fb279ce8992
treece9888c28d1d0e1c26015212e1b31a5a3bb3152a
parent3ca55ca225d7627e76fcfe2894740c4f615ff2e0
init/main.c: log initcall level when initcall_debug is used

When initcall_debug is specified on the command line, the start and return
point for each initcall is printed.  However, no information on the
initcall level is reported.

Add to the initcall_debug infrastructure an additional print that informs
when a new initcall level is entered.  This is particularly useful when
debugging dependency chains and/or working on boot time reduction.

Link: https://lkml.kernel.org/r/20250316205014.2830071-2-francesco@valla.it
Signed-off-by: Francesco Valla <francesco@valla.it>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tim Bird <tim.bird@sony.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
init/main.c