OSDN Git Service

tracing: Allow boot instances to have snapshot buffers
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 7 Feb 2023 17:28:53 +0000 (12:28 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 7 Feb 2023 17:49:56 +0000 (12:49 -0500)
commit9c1c251d670bc107b9ce600a2c20adb08b4849e9
treecbb72fefb66e2fa9beac6e392afb5c82a704fd3f
parentd503b8f7474fe7ac616518f7fc49773cbab49f36
tracing: Allow boot instances to have snapshot buffers

Add to ftrace_boot_snapshot, "=<instance>" name, where the instance will
get a snapshot buffer, and will take a snapshot at the end of boot (which
will save the boot traces).

Link: https://lkml.kernel.org/r/20230207173026.792774721@goodmis.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Ross Zwisler <zwisler@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/trace/trace.c