tracing/boot: Add ftrace.instance.*.alloc_snapshot option
authorMasami Hiramatsu <mhiramat@kernel.org>
Sat, 10 Oct 2020 15:28:09 +0000 (00:28 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 15 Oct 2020 16:01:13 +0000 (12:01 -0400)
commitc16340971949ba6560c8e7c985bad8a180c57aa3
treea8a959ed2bf24c5d29fd049d4fca213f04817a75
parentbbeb97464eefc65f506084fd9f18f21653e01137
tracing/boot: Add ftrace.instance.*.alloc_snapshot option

Add ftrace.instance.*.alloc_snapshot option.

This option has been described in Documentation/trace/boottime-trace.rst
but not implemented yet.

ftrace.[instance.INSTANCE.]alloc_snapshot
   Allocate snapshot buffer.

The difference from kernel.alloc_snapshot is that the kernel.alloc_snapshot
will allocate the buffer only for the main instance, but this can allocate
buffer for any new instances.

Link: https://lkml.kernel.org/r/160234368948.400560.15313384470765915015.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_boot.c