]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6f4adccfafcb4a6eebe8a53d4f3505f5fe1e668
treebcebdb4a6936baa0b76afc0fcb2af283a8f9c889
parentf82e686a5d45f8e91f1bcce77d7aa53f7e3f5eb6
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