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-12 17:32:14 -0700
commit4d40822b371f9ba76ad7dfd9702284c1d8869f8d (patch)
tree5422e05125dd11072d01987de63ad2334e220b32 /dumpstate
parentde87183acda0f7d1516fc722252cfdd16797e345 (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. 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. Change-Id: I39fb1aa9ec13f2fbc34bed8f7ee90c5c4aa40e64
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");