]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Make tracing_update_buffers() take NULL for global_trace
authorSteven Rostedt <rostedt@goodmis.org>
Sun, 8 Feb 2026 03:24:23 +0000 (22:24 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 9 Feb 2026 02:01:12 +0000 (21:01 -0500)
commit93c88d06accdeceee4fbd243b084d3749bcd96d7
tree86864fbd04d9c13042080573bc5b0a5139e71bfd
parent1c53d781d42541adc5ba76b4f843a3ff382e01fb
tracing: Make tracing_update_buffers() take NULL for global_trace

The trace.c file has become a dumping ground for all tracing code and has
become quite large. In order to move the trace_printk functions out of it
these functions can not access global_trace directly, as that is something
that needs to stay static in trace.c.

Have tracing_update_buffers() take NULL for its trace_array to denote it
should work on the global_trace top level trace_array allows that function
to be used outside of trace.c and still update the global_trace
trace_array.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://patch.msgid.link/20260208032450.318864210@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c