Re: [PATCH] dma: Trace dma_map/unmap_page

From: Christoph Hellwig
Date: Thu Aug 22 2024 - 00:20:30 EST


On Mon, Aug 12, 2024 at 04:43:57PM -0400, Sean Anderson wrote:
> When debugging drivers, it can often be useful to trace when memory gets
> (un)mapped for DMA (and can be accessed by the device). Add some
> tracepoints for this purpose. While there are many other interesting DMA
> functions, this is a useful start for simpler drivers.

Just dma_map/unmap_page seems a bit too limited and asymmetric. Can
you please also add tracing for ->map/unmap_sg and ->map/unmap_resoure
so that we at least cover all the dyanmic DMA mapping interfaces?