Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Vineeth Pillai (Google) and committed by
Steven Rostedt (Google)
47f570fc fa9ac2fd

+2 -2
+2 -2
drivers/spi/spi-axi-spi-engine.c
··· 953 953 struct spi_transfer *xfer; 954 954 955 955 list_for_each_entry(xfer, &msg->transfers, transfer_list) 956 - trace_spi_transfer_start(msg, xfer); 956 + trace_call__spi_transfer_start(msg, xfer); 957 957 } 958 958 959 959 spin_lock_irqsave(&spi_engine->lock, flags); ··· 987 987 struct spi_transfer *xfer; 988 988 989 989 list_for_each_entry(xfer, &msg->transfers, transfer_list) 990 - trace_spi_transfer_stop(msg, xfer); 990 + trace_call__spi_transfer_stop(msg, xfer); 991 991 } 992 992 993 993 out: