[PATCH 0/4] tracing: Addition of tracing instances via kernel command line

From: Steven Rostedt
Date: Wed Jan 11 2023 - 09:59:33 EST


Instance creation can happen with the bootconfig but there's currently
no way to create and enable instances via the normal command line.

This series fixes that.

trace_instance=foo,sched_switch,sched_waking ftrace_boot_snapshot=foo

The above creates a "foo" instance at early start up and enables
the sched_switch and sched_waking events. Then at the end of boot up
a snapshot is taken so that user space does not overwrite the boot
up data.


Steven Rostedt (Google) (4):
tracing: Add creation of instances at boot command line
tracing: Add enabling of events to boot instances
tracing: Add trace_array_puts() to write into instance
tracing: Allow boot instances to have snapshot buffers

----
Documentation/admin-guide/kernel-parameters.txt | 29 +++++
include/linux/trace.h | 13 ++
kernel/trace/trace.c | 159 +++++++++++++++++++++---
kernel/trace/trace.h | 2 +
kernel/trace/trace_events.c | 9 +-
5 files changed, 190 insertions(+), 22 deletions(-)