tracing: Add trace_array_puts() to write into instance
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 7 Feb 2023 17:28:52 +0000 (12:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:35:12 +0000 (12:35 +0200)
commit5620eeb379d100f6b6879540de1fbf8fd80a6e56
treeadf4c8cb29cdc0a16b8ffdc18a1ab2d293ecbc50
parent41afd2473dc432d5dbfa253ac5c507bdfe215ab6
tracing: Add trace_array_puts() to write into instance

[ Upstream commit d503b8f7474fe7ac616518f7fc49773cbab49f36 ]

Add a generic trace_array_puts() that can be used to "trace_puts()" into
an allocated trace_array instance. This is just another variant of
trace_array_printk().

Link: https://lkml.kernel.org/r/20230207173026.584717290@goodmis.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Ross Zwisler <zwisler@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Stable-dep-of: 9d52727f8043 ("tracing: Have tracing_snapshot_instance_cond() write errors to the appropriate instance")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/trace.h
kernel/trace/trace.c