From 95dc4cb9ed5f38b6aeb3c23ed97d8fc186464c29 Mon Sep 17 00:00:00 2001 From: Vishvam Mazumdar Date: Mon, 17 Jun 2024 20:06:47 +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: I3a670060048b620c9d20f1a4dedbd4d992e925ca Signed-off-by: Vishvam Mazumdar --- conf/init.zumapro.board.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.zumapro.board.rc b/conf/init.zumapro.board.rc index dcee57a..eab4b41 100644 --- a/conf/init.zumapro.board.rc +++ b/conf/init.zumapro.board.rc @@ -183,6 +183,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 post-fs # Ensure device is ready and start storageproxyd wait /dev/sg1