]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing/osnoise: Array printk init and cleanup
authorCrystal Wood <crwood@redhat.com>
Mon, 11 May 2026 22:30:35 +0000 (17:30 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 29 May 2026 14:40:27 +0000 (10:40 -0400)
commit9cb99c598643ba78638dfd668cf020544159cf70
tree528ce29811d62220ddf2e485ef98d3b71e4bfd2c
parente11c9c8365cd7655e81c4e6611492f1b15850aa5
tracing/osnoise: Array printk init and cleanup

None of the calls to trace_array_printk_buf() will do anything
if we don't initialize the buffer on instance creation (unless
some other tracer called it), so do that.

Add an osnoise_print() function to facilitate adding debug prints
(without tainting).

Use trace_array_printk() instead of trace_array_printk_buf(), as we're
only writing to the main buffer (of a non-main instance) anyway -- and
trace_array_printk_buf() skips the check to make sure we're not printing
to the global instance.

Link: https://patch.msgid.link/20260511223035.1475676-1-crwood@redhat.com
Signed-off-by: Crystal Wood <crwood@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_osnoise.c