mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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>
This commit is contained in:
parent
fa9ac2fdb6
commit
47f570fcfd
|
|
@ -953,7 +953,7 @@ static int spi_engine_transfer_one_message(struct spi_controller *host,
|
|||
struct spi_transfer *xfer;
|
||||
|
||||
list_for_each_entry(xfer, &msg->transfers, transfer_list)
|
||||
trace_spi_transfer_start(msg, xfer);
|
||||
trace_call__spi_transfer_start(msg, xfer);
|
||||
}
|
||||
|
||||
spin_lock_irqsave(&spi_engine->lock, flags);
|
||||
|
|
@ -987,7 +987,7 @@ static int spi_engine_transfer_one_message(struct spi_controller *host,
|
|||
struct spi_transfer *xfer;
|
||||
|
||||
list_for_each_entry(xfer, &msg->transfers, transfer_list)
|
||||
trace_spi_transfer_stop(msg, xfer);
|
||||
trace_call__spi_transfer_stop(msg, xfer);
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user