summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorKelly Rossmoyer <krossmo@google.com>2018-02-16 20:00:16 -0800
committerKelly Rossmoyer <krossmo@google.com>2018-03-15 16:31:01 -0700
commitaf8837e10fb360038fc4900186fb6cd638310ac2 (patch)
tree145c140d3cf75ca87e9e11b16eb12c9cee80bde1 /dumpstate
parentf11b253979b85fdf9fe0fc474abf74eac06c11c1 (diff)
2018 PowerHAL support for master stats
Implementation of PowerHAL stats collection for 2018 subsystems/ masters. Adds support for SOC masters: APSS, MPSS, ADSP, SLPI, CDSP, GPU, and DISPLAY (though the last 3 do not currently provide any stats from the rpmh_master_stats driver). Also adds support for the two new system power states: AOSD and CXSD. In a change from earlier devices, getPlatformLowPowerStats() now only returns stats for those two power states, since there are no matter "voting" stats. The stats for all masters and subsystems (e.g. WLAN) are now retrieved through getSubsystemLowPowerStats(). Also updates (or removes) old stale sepolicy entries related to low power stats files that no longer exist, updates device dumpstate support to add one of the two stats files that does exist but isn't currently included, and pulls in the wahoo fix to ensure that stats are available even in user builds. Also fixes build-breaking bug from original CL with incorrect print conversion string used for logging size_t values. Bug: 67381845 Bug: 74405843 Test: Confirmed divisor for RPMh stats is the same as old RPM divisor (19200 to get msecs) by checking logged clock frequency and manually manipulating the sleeping of an easily influenced master (ADSP) and comparing entry and exit times. Test: Built and ran a user build and verified that low power stats are properly accessible by collecting a bugreport. Test: Added test code to rpmh_master_stats driver to populate bogus data for masters that don't have data available and used that to verify that parsing of stats for all sections is working correctly. Test: Compared audit2allow output from bugreport generation on before and after builds to verify that no new sepolicy issues were introduced. Test: Previous build-breaking print conversion string fix verified by building checkbuild on aosp_cf_x86_phone before and after fix. Change-Id: Id2c0bf43e28257db084ecb1d18425a349017c8e4
Diffstat (limited to 'dumpstate')
-rwxr-xr-xdumpstate/DumpstateDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp
index 7a39cf6..bb298c8 100755
--- a/dumpstate/DumpstateDevice.cpp
+++ b/dumpstate/DumpstateDevice.cpp
@@ -266,7 +266,7 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status");
DumpFileToFd(fd, "INTERRUPTS", "/proc/interrupts");
DumpFileToFd(fd, "Sleep Stats", "/sys/power/system_sleep/stats");
- DumpFileToFd(fd, "Power Management Stats", "/d/rpm_master_stats");
+ DumpFileToFd(fd, "Power Management Stats", "/sys/power/rpmh_stats/master_stats");
DumpFileToFd(fd, "WLAN Power Stats", "/d/wlan0/power_stats");
DumpFileToFd(fd, "LL-Stats", "/d/wlan0/ll_stats");
DumpFileToFd(fd, "ICNSS Stats", "/d/icnss/stats");