]> 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:46:49 +0000 (07:46 +0200)
commit247feaa17419eb25b1354a3071334aac6f8e0ebd
treed73944c349701ba4f414b56a2f525d7084024844
parent41abc05ab8cd44a51f8ef3c7fe252be730c871d7
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