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

Sean Anderson posted 4 patches 1 month, 1 week ago
include/trace/events/dma.h | 213 ++++++++++++++++++++++++++++++-------
kernel/dma/mapping.c       |  37 ++++---
2 files changed, 198 insertions(+), 52 deletions(-)
[PATCH v2 0/4] dma-mapping: Trace more error paths
Posted by Sean Anderson 1 month, 1 week ago
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(-)

-- 
2.35.1.1320.gc452695387.dirty
Re: [PATCH v2 0/4] dma-mapping: Trace more error paths
Posted by Christoph Hellwig 1 month ago
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.