From 78f9096a34cfc03741b9e801a306a10cdfd25c7e Mon Sep 17 00:00:00 2001 From: Ziyi Cui Date: Mon, 14 Nov 2022 19:19:14 -0800 Subject: [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 Merged-In: I49ffdcadce89e3dc8859819576998df56928a75a Change-Id: I360b7d26c94556f43945a0c3c0e942fb0c48fa5d --- dumpstate/Dumpstate.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3