]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Make printk_trace global for tracing system
authorSteven Rostedt <rostedt@goodmis.org>
Sun, 8 Feb 2026 03:24:22 +0000 (22:24 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 9 Feb 2026 02:01:12 +0000 (21:01 -0500)
commit1c53d781d42541adc5ba76b4f843a3ff382e01fb
tree782f06c46325b005cb9ccf4397a038316a0c2bd4
parent3e6c8f80e5ddd0644e509547c61366a2c09117b0
tracing: Make printk_trace global for tracing system

The printk_trace is used to determine which trace_array trace_printk()
writes to. By making it a global variable among the tracing subsystem it
will allow the trace_printk functions to be moved out of trace.c and still
have direct access to that variable.

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.144525891@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h