tracing: Add warning if string in __assign_str() does not match __string()
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 23 Feb 2024 21:13:56 +0000 (16:13 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 18 Mar 2024 14:33:05 +0000 (10:33 -0400)
commitcf986e57d606849288eecf572800f2bd476fb1ab
tree7a19828fb593b131c873a500a9e1a2eb5e9dae36
parentdd6ae6d90a84d4bec49887c7aa2b22aa1c8b2897
tracing: Add warning if string in __assign_str() does not match __string()

In preparation to remove the second parameter of __assign_str(), make sure
it is really a duplicate of __string() by adding a WARN_ON_ONCE().

Link: https://lore.kernel.org/linux-trace-kernel/20240223161356.63b72403@gandalf.local.home
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/trace/stages/stage6_event_callback.h