summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZiyi Cui <ziyic@google.com>2022-11-14 19:19:14 -0800
committerZiyi Cui <ziyic@google.com>2022-12-01 06:27:22 +0000
commit78f9096a34cfc03741b9e801a306a10cdfd25c7e (patch)
treea268a25d661e800064816ba6d6ce16570c911393
parent980362e77d5f23e3d2d570debf9b375ec71d95bb (diff)
downloadgs201-78f9096a34cfc03741b9e801a306a10cdfd25c7e.tar.gz
[DO NOT MERGE] dumpstate: Dump Temperature Residency at bugreport
At the bugreport, capture Temperature Residency metrics Bug: 246799997 Test: Test: "adb bugreport" includes temp residency metrics capture. Signed-off-by: Ziyi Cui <ziyic@google.com> Merged-In: I49ffdcadce89e3dc8859819576998df56928a75a Change-Id: I360b7d26c94556f43945a0c3c0e942fb0c48fa5d
-rw-r--r--dumpstate/Dumpstate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp
index 1a06d9e..0720e4d 100644
--- a/dumpstate/Dumpstate.cpp
+++ b/dumpstate/Dumpstate.cpp
@@ -520,6 +520,7 @@ void Dumpstate::dumpThermalSection(int fd) {
DumpFileToFd(fd, "TMU_TOP fall thresholds:", "/sys/module/gs_thermal/parameters/tmu_top_reg_dump_fall_thres");
DumpFileToFd(fd, "TMU_SUB rise thresholds:", "/sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres");
DumpFileToFd(fd, "TMU_SUB fall thresholds:", "/sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres");
+ DumpFileToFd(fd, "Temperature Residency Metrics:", "/sys/kernel/metrics/temp_residency/temp_residency_all/stats");
}
// Dump items related to touch