]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: Use trace_call__##name() at guarded tracepoint call sites
authorVineeth Pillai (Google) <vineeth@bitbyteword.org>
Mon, 23 Mar 2026 16:00:32 +0000 (12:00 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 26 Mar 2026 14:24:39 +0000 (10:24 -0400)
commit47f570fcfd5a5a8c58913fee8fa2db2f99591ae9
treee50e6c90fe36edb823bb5b063b0cf5c958a982b2
parentfa9ac2fdb605bbf318bb2cbbc76b855341b7c115
spi: Use trace_call__##name() at guarded tracepoint call sites

Replace trace_foo() with the new trace_call__foo() at sites already
guarded by trace_foo_enabled(), avoiding a redundant
static_branch_unlikely() re-evaluation inside the tracepoint.
trace_call__foo() calls the tracepoint callbacks directly without
utilizing the static branch again.

Cc: Michael Hennerich <michael.hennerich@analog.com>
Cc: Nuno Sá <nuno.sa@analog.com>
Cc: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20260323160052.17528-14-vineeth@bitbyteword.org
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Vineeth Pillai (Google) <vineeth@bitbyteword.org>
Assisted-by: Claude:claude-sonnet-4-6
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
drivers/spi/spi-axi-spi-engine.c