From 569092bc54ca24da867d981918f97f8642253c66 Mon Sep 17 00:00:00 2001 From: Vishvam Mazumdar Date: Mon, 17 Jun 2024 20:54:55 +0000 Subject: [PATCH] Defaultly enable cpu idle histogram stats collection for 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: Collect histogram log Bug: 344908619 Flag: EXEMPT bugfix Change-Id: Ib6e4772737a8c1f22ac8ba31c40099baeab43853 Signed-off-by: Vishvam Mazumdar --- conf/init.zuma.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index f98001b3..c4ad2d7d 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -360,6 +360,9 @@ on init chown root system /sys/devices/platform/16490000.gsa-ns/log_main chown root system /sys/devices/platform/16490000.gsa-ns/log_intermediate + # Enable CPU Idle histograms + write /sys/kernel/metrics/cpuidle_histogram/enable 1 + on init && property:ro.boot.hardware.cpu.pagesize=4096 write /sys/block/zram0/comp_algorithm lz77eh