dma-mapping: use trace_dma_alloc for dma_alloc* instead of using trace_dma_map
[ Upstream commit c4484ab8 ] In some cases, we use trace_dma_map to trace dma_alloc* functions. This generally follows dma_debug. However, this does not record all of the relevant information for allocations, such as GFP flags. Create new dma_alloc tracepoints for these functions. Note that while dma_alloc_noncontiguous may allocate discontiguous pages (from the CPU's point of view), the device will only see one contiguous mapping. Therefore, we just need to trace dma_addr and size. Signed-off-by:Sean Anderson <sean.anderson@linux.dev> Reviewed-by:
Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by:
Christoph Hellwig <hch@lst.de> Stable-dep-of: 7e2368a2 ("dma-debug: don't enforce dma mapping check on noncoherent allocations") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading