diff options
author | Steven Rostedt (Google) <[email protected]> | 2024-02-22 16:14:19 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-03-18 10:33:04 -0400 |
commit | 70a6ed553f7d3504febac467cb4a0bae621ba3c6 (patch) | |
tree | 63e10fa3046cd59537fcd2556dc8cedccc869787 /tools/perf/util/trace-event-scripting.c | |
parent | 916849860fa9c7d3caeb144cb5dec8831cf23bfc (diff) |
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/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Chuck Lever <[email protected]>
Suggested-by: Mathieu Desnoyers <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions