]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Add __string_len() example
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 23 Feb 2024 20:28:27 +0000 (15:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:50:36 +0000 (07:50 +0200)
commit896e30f76840c9cc196927ee69109745fb23d499
treecd360f566860b3a865a6a988c8e26db1a6c9bcd9
parent5724654a084f701dc64b08d34a0e800f22f0e6e4
tracing: Add __string_len() example

[ Upstream commit dd6ae6d90a84d4bec49887c7aa2b22aa1c8b2897 ]

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>
Stable-dep-of: ea8d7647f9dd ("tracing: Verify event formats that have "%*p.."")
Signed-off-by: Sasha Levin <sashal@kernel.org>
samples/trace_events/trace-events-sample.h