[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230111145636.450953217@goodmis.org>
Date: Wed, 11 Jan 2023 09:56:36 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org
Cc: Masami Hiramatsu <mhiramat@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Ross Zwisler <zwisler@...gle.com>
Subject: [PATCH 0/4] tracing: Addition of tracing instances via kernel command line
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(-)
Powered by blists - more mailing lists