diff options
author | George Lee <geolee@google.com> | 2023-10-31 02:54:32 +0000 |
---|---|---|
committer | George Lee <geolee@google.com> | 2023-10-31 17:05:58 +0000 |
commit | 6c78c45aaec9e4c94739b493f1da040e28cbc6ce (patch) | |
tree | 2e0b3879caead6a7693c3f96c3c4f78fa9cb7286 | |
parent | 96a9ee2a1824f8877dc32eb6916bc8de997b0215 (diff) | |
download | gs201-6c78c45aaec9e4c94739b493f1da040e28cbc6ce.tar.gz |
pixelstats: Add brownout detection path
Bug: 307392882
Test: Local generate brownout for data upload
Change-Id: I06b846b9a0a9d8eb4edd5e1636248a44940f0683
Signed-off-by: George Lee <geolee@google.com>
-rw-r--r-- | pixelstats/service.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pixelstats/service.cpp b/pixelstats/service.cpp index 7c53cb2..5d739b1 100644 --- a/pixelstats/service.cpp +++ b/pixelstats/service.cpp @@ -44,6 +44,10 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = { .ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance", .CodecPath = "/sys/devices/platform/audiometrics/codec_state", .EEPROMPath = "/dev/battery_history", + .MitigationPath = "/sys/devices/virtual/pmic/mitigation", + .MitigationDurationPath = "/sys/devices/virtual/pmic/mitigation/irq_dur_cnt", + .BrownoutReasonProp = "vendor.brownout_reason", + .BrownoutLogPath = "/data/vendor/mitigation/lastmeal.txt", .SpeakerTemperaturePath = "/sys/devices/platform/audiometrics/speaker_temp", .SpeakerExcursionPath = "/sys/devices/platform/audiometrics/speaker_excursion", .SpeakerHeartBeatPath = "/sys/devices/platform/audiometrics/speaker_heartbeat", |