Re: [PATCH 1/4] tracing: Add creation of instances at boot command line

From: Randy Dunlap
Date: Wed Jan 11 2023 - 11:34:10 EST




On 1/11/23 06:56, Steven Rostedt wrote:
> From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx>
>
> Add kernel command line to add tracing instances. This only creates
> instances at boot but still does not enable any events to them. Later
> changes will extend this command line to add enabling of events, filters,
> and triggers. As well as possibly redirecting trace_printk()!
>
> Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
> ---
> .../admin-guide/kernel-parameters.txt | 6 +++
> kernel/trace/trace.c | 51 +++++++++++++++++++
> 2 files changed, 57 insertions(+)
>
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index 6cfa6e3996cf..cec486217ccc 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -6272,6 +6272,12 @@
> comma-separated list of trace events to enable. See
> also Documentation/trace/events.rst
>
> + trace_instance=[instance-info]
> + [FTRACE] Create an ring buffer instance early in boot up.

s/an/a/

> + This will be listed in:
> +
> + /sys/kernel/tracing/instances
> +
> trace_options=[option-list]
> [FTRACE] Enable or disable tracer options at boot.
> The option-list is a comma delimited list of options


--
~Randy