From 1dac9a172686892bc13164ab2c11537e3e830245 Mon Sep 17 00:00:00 2001 From: Vishvam Mazumdar Date: Tue, 4 Jun 2024 18:28:01 +0000 Subject: [PATCH] Add SELinux policy to allow CPU Idle Histogram Stats in dumpstate. This change is to allow the CPU Idle Histogram Stats to be dumped in bugreports so that there is more insight into the idle behavior of devices in the field. Test: build/flash Test: adb bugreport Bug: 344908619 Flag: EXEMPT bugfix Change-Id: Ic1096564423a009a0180d7f771da8184688c1842 Signed-off-by: Vishvam Mazumdar --- vendor/genfs_contexts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/genfs_contexts b/vendor/genfs_contexts index ddc44e42..d46d80a6 100644 --- a/vendor/genfs_contexts +++ b/vendor/genfs_contexts @@ -327,3 +327,7 @@ genfscon sysfs /devices/platform/155d0000.serial/uart_dbg u:o # OTA genfscon sysfs /devices/platform/13200000.ufs/pixel/boot_lun_enabled u:object_r:sysfs_ota:s0 + +# CPU +genfscon sysfs /kernel/metrics/cpuidle_histogram/cpuidle_histogram u:object_r:sysfs_cpu:s0 +genfscon sysfs /kernel/metrics/cpuidle_histogram/cpucluster_histogram u:object_r:sysfs_cpu:s0