Merge "thermal: Update path reading for temperature residency metrics" into udc-d1-dev

This commit is contained in:
TreeHugger Robot 2023-05-25 05:28:46 +00:00 committed by Android (Google) Code Review
commit 8a9d96e1d5
2 changed files with 10 additions and 1 deletions

View file

@ -971,6 +971,9 @@ on early-boot && property:ro.boot.hardware.sku=GGH2X
on post-fs-data
mkdir /data/vendor/powerstats 0771 system system
chown system system /data/vendor/powerstats
# Thermal Residency Stats (write 1 to reset)
chown system system /sys/kernel/metrics/thermal/tr_by_group/tmu/stats_reset
chown system system /sys/kernel/metrics/thermal/tr_by_group/spmic/stats_reset
on property:vendor.thermal.link_ready=1
# BCL

View file

@ -70,9 +70,15 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
},
.ResumeLatencyMetricsPath = "/sys/kernel/metrics/resume_latency/resume_latency_metrics",
.LongIRQMetricsPath = "/sys/kernel/metrics/irq/long_irq_metrics",
.TempResidencyPaths = {
.TempResidencyAndResetPaths = {
{
"/sys/kernel/metrics/thermal/tr_by_group/tmu/stats",
"/sys/kernel/metrics/thermal/tr_by_group/tmu/stats_reset"
},
{
"/sys/kernel/metrics/thermal/tr_by_group/spmic/stats",
"/sys/kernel/metrics/thermal/tr_by_group/spmic/stats_reset"
}
},
.ModemPcieLinkStatsPath = "/sys/devices/platform/12100000.pcie/link_stats",
.WifiPcieLinkStatsPath = "/sys/devices/platform/13120000.pcie/link_stats",