dma-debug: add dumping facility via debugfs

While debugging a DMA mapping leak, I needed to access
debug_dma_dump_mappings() but easily from user space.

This patch adds a /sys/kernel/debug/dma-api/dump file which contain all
current DMA mapping.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Corentin Labbe 2019-01-18 13:44:18 +00:00 • committed by Christoph Hellwig
commit 0a3b192c26
2 changed files with 31 additions and 0 deletions