]> Gentwo Git Trees - linux/.git/commit
tracing: Have add_tracer_options() error pass up to callers
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 5 Nov 2025 16:19:11 +0000 (11:19 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 10 Nov 2025 19:28:31 +0000 (14:28 -0500)
commit5aa0d18df08a87c1d71a39c4a84c5ec63ada67c0
tree01bac50fd123c62441636df22dc95b99938c4d86
parentc7bed15ccf238fb2e47938c522a49ddc4a919f7d
tracing: Have add_tracer_options() error pass up to callers

The function add_tracer_options() can fail, but currently it is ignored.
Pass the status of add_tracer_options() up to adding a new tracer as well
as when an instance is created. Have the instance creation fail if the
add_tracer_options() fail.

Only print a warning for the top level instance, like it does with other
failures.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://patch.msgid.link/20251105161935.375299297@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c