dma-debug: Expose nr_total_entries in debugfs
authorRobin Murphy <robin.murphy@arm.com>
Mon, 10 Dec 2018 14:00:28 +0000 (14:00 +0000)
committerChristoph Hellwig <hch@lst.de>
Tue, 11 Dec 2018 13:31:17 +0000 (14:31 +0100)
commit9f191555ba4ba8fc82e589670e46a7f79b72a157
treebcebdb4a6936baa0b76afc0fcb2af283a8f9c889
parent7c703e54cc71df5baa962e24a5663d88173bba5c
dma-debug: Expose nr_total_entries in debugfs

Expose nr_total_entries in debugfs, so that {num,min}_free_entries
become even more meaningful to users interested in current/maximum
utilisation. This becomes even more relevant once nr_total_entries
may change at runtime beyond just the existing AMD GART debug code.

Suggested-by: John Garry <john.garry@huawei.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Qian Cai <cai@lca.pw>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Documentation/DMA-API.txt
kernel/dma/debug.c