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 <vmazumdar@google.com>
This commit is contained in:
Vishvam Mazumdar 2024-06-17 20:06:47 +00:00
parent e252dc733c
commit 95dc4cb9ed

View file

@ -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