SELinux policy for reading system ion heap size
The policy is only for userdebug or eng builds to verify usefulness of
ion heap size measuring in practice.
The size of the system ion heap is read by the system server similarly
to other memory measurements.
Example /sys/kernel/debug/ion/heaps/system (repeated lines removed):
client pid size
----------------------------------------------------
audio@2.0-servi 765 4096
audio@2.0-servi 765 61440
audio@2.0-servi 765 4096
voip_client 96 8192
voip_client 96 4096
system_server 1232 16728064
surfaceflinger 611 50642944
----------------------------------------------------
orphaned allocations (info is from last known client):
----------------------------------------------------
total orphaned 0
total 55193600
deferred free 0
----------------------------------------------------
0 order 4 highmem pages in uncached pool = 0 total
0 order 4 lowmem pages in uncached pool = 0 total
1251 order 4 lowmem pages in cached pool = 81985536 total
VMID 8: 0 order 4 highmem pages in secure pool = 0 total
Test: m -j
Test: Pulling statsd metric returns non-zero value
Bug: 128412961
Change-Id: If123071d253235c4dcaf18474b9db5f2eef84d12
3 files changed