[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
This commit is contained in:
Ziyi Cui 2022-11-14 19:19:14 -08:00
parent 980362e77d
commit 78f9096a34

View file

@ -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_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 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, "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 // Dump items related to touch