]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tracing: Use EVENT_NULL_STR macro instead of open coding "(null)"
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 22 Feb 2024 21:14:19 +0000 (16:14 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 18 Mar 2024 14:33:04 +0000 (10:33 -0400)
commit70a6ed553f7d3504febac467cb4a0bae621ba3c6
tree63e10fa3046cd59537fcd2556dc8cedccc869787
parent916849860fa9c7d3caeb144cb5dec8831cf23bfc
tracing: Use EVENT_NULL_STR macro instead of open coding "(null)"

The TRACE_EVENT macros has some dependency if a __string() field is NULL,
where it will save "(null)" as the string. This string is also used by
__assign_str(). It's better to create a single macro instead of having
something that will not be caught by the compiler if there is an
unfortunate typo.

Link: https://lore.kernel.org/linux-trace-kernel/20240222211443.106216915@goodmis.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Chuck Lever <chuck.lever@oracle.com>
Suggested-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/trace_events.h
include/trace/events/sunrpc.h
include/trace/stages/stage5_get_offsets.h
include/trace/stages/stage6_event_callback.h