diff options
| author | Hridya Valsaraju <hridya@google.com> | 2021-01-27 13:02:56 -0800 |
|---|---|---|
| committer | Hridya Valsaraju <hridya@google.com> | 2021-02-10 06:05:02 +0000 |
| commit | 363d44d7a04ab4ab1a5c50fc0583cd5ff971ce2a (patch) | |
| tree | 5340597dfe2c47bb9f63487636b4322ff2fd08ba /core/java/android | |
| parent | 6ae0be89b95a775c423b03d4a5ef6792bd7cc097 (diff) | |
Add total size of DMA-BUFs exported to 'dumpsys meminfo'
When ION support is not detected, print the total size of DMA-BUFs
exported as part of dumpsys meminfo.
Bug: 167709539
Test: dumpsys meminfo
Change-Id: I3439a8f00cf1aef37e5043b505ed53d47a8a4756
Merged-In: I3439a8f00cf1aef37e5043b505ed53d47a8a4756
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/os/Debug.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index c06c2ce5f01b..5b2bef31d1ed 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -2551,6 +2551,14 @@ public final class Debug public static native long getZramFreeKb(); /** + * Return total memory size in kilobytes for exported DMA-BUFs or -1 if + * the DMA-BUF sysfs stats at /sys/kernel/dmabuf/buffers could not be read. + * + * @hide + */ + public static native long getDmabufTotalExportedKb(); + + /** * Return memory size in kilobytes allocated for ION heaps or -1 if * /sys/kernel/ion/total_heaps_kb could not be read. * |
