mbox series

[v2,0/4] dma-mapping: Trace more error paths

Message ID 20241018150036.2878190-1-sean.anderson@linux.dev (mailing list archive)
Headers show
Series dma-mapping: Trace more error paths | expand

Message

Sean Anderson Oct. 18, 2024, 3 p.m. UTC
Some DMA functions are not traced when they fail. I found this pretty
confusing, since it seems like the device skips calling the DMA function
and fails anyway. This series adds some additional tracepoints to
address this.

Changes in v2:
- Use macros to define events in a class

Sean Anderson (4):
  dma-mapping: Use macros to define events in a class
  dma-mapping: Trace dma_alloc/free direction
  dma-mapping: Use trace_dma_alloc for dma_alloc* instead of using
    trace_dma_map
  dma-mapping: Trace more error paths

 include/trace/events/dma.h | 213 ++++++++++++++++++++++++++++++-------
 kernel/dma/mapping.c       |  37 ++++---
 2 files changed, 198 insertions(+), 52 deletions(-)

Comments

Christoph Hellwig Oct. 23, 2024, 5:30 a.m. UTC | #1
Hi Sean,

the patches looks fine to me.  I'll wait a bit for more feedback but
plan to pick them up for Linux 6.13.