tracing: Add __string_len() example
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 23 Feb 2024 20:28:27 +0000 (15:28 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 18 Mar 2024 14:33:05 +0000 (10:33 -0400)
commitdd6ae6d90a84d4bec49887c7aa2b22aa1c8b2897
treebd1d405a43397778b194c8631175df5f5d583136
parentc759e609030ca37e59866cbc849fdc611cc56292
tracing: Add __string_len() example

There's no example code that uses __string_len(), and since the sample
code is used for testing the event logic, add a use case.

Link: https://lore.kernel.org/linux-trace-kernel/20240223152827.5f9f78e2@gandalf.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
samples/trace_events/trace-events-sample.h