]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: spi-mem: Trace exec_op
authorSean Anderson <sean.anderson@linux.dev>
Tue, 21 Oct 2025 14:47:03 +0000 (10:47 -0400)
committerMark Brown <broonie@kernel.org>
Mon, 27 Oct 2025 11:10:50 +0000 (11:10 +0000)
commit77a58ba7c64ccca20616aa03599766ccb0d1a330
treeb106ed70cc065132b0176fa3ea321d40738e2395
parentfd5ef3d69f8975bad16c437a337b5cb04c8217a2
spi: spi-mem: Trace exec_op

The spi subsystem has tracing, which is very convenient when debugging
problems. Add tracing for spi-mem too so that accesses that skip the spi
subsystem can still be seen.

The format is roughly based on the existing spi tracing. We don't bother
tracing the op's address because the tracing happens while the memory is
locked, so there can be no confusion about the matching of start and
stop. The conversion of cmd/addr/dummy to an array is directly analogous
to the conversion in the latter half of spi_mem_exec_op.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Link: https://patch.msgid.link/20251021144702.1582397-1-sean.anderson@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
MAINTAINERS
drivers/spi/spi-mem.c
include/trace/events/spi-mem.h [new file with mode: 0644]