]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing: Move __trace_buffer_{un}lock_*() functions to trace.h
authorSteven Rostedt <rostedt@goodmis.org>
Sun, 8 Feb 2026 03:24:20 +0000 (22:24 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 9 Feb 2026 02:01:11 +0000 (21:01 -0500)
commit0e730bc067e7a790d61344dbf6d9dfdce7f99ea3
tree10b9f1500729593fe727cde30fd6c9c417569d1f
parenta4f77ffc8eb6247ad00c53d297a145e47594ce76
tracing: Move __trace_buffer_{un}lock_*() functions to trace.h

The file trace.c has become a catchall for most things tracing. Start
making it smaller by breaking out various aspects into their own files.

Move the __always_inline functions __trace_buffer_lock_reserve(),
__trace_buffer_unlock_commit() and trace_event_setup() into trace.h.

The trace.c file will be split up and these functions will be used in more
than one of these files. As they are already __always_inline they can
easily be moved into the trace.h header file.

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