ANDROID: dma-buf: heaps: Add a sysfs file to report total pool size.
In order to help with memory accounting, expose the total pool size of all DMA-BUF heaps at /sys/kernel/dma_heap/total_pools_kb. This information will be exposed as part of Android Bugreport[1]. [1]: https://android-review.googlesource.com/q/topic:%22b%252F167709539%22+(status:open%20OR%20status:merged) Bug: 167709539 Change-Id: I6a1b52517e73103122690f6567f4f295db9ca1ad Signed-off-by: Hridya Valsaraju <hridya@google.com>
This commit is contained in:
7
Documentation/ABI/testing/sysfs-kernel-dmaheap
Normal file
7
Documentation/ABI/testing/sysfs-kernel-dmaheap
Normal file
@@ -0,0 +1,7 @@
|
||||
What: /sys/kernel/dma_heap/total_pools_kb
|
||||
Date: Feb 2021
|
||||
KernelVersion: 5.10
|
||||
Contact: Hridya Valsaraju <hridya@google.com>,
|
||||
Description:
|
||||
The total_pools_kb file is read-only and specifies how much
|
||||
memory in Kb is allocated to DMA-BUF heap pools.
|
||||
Reference in New Issue
Block a user