From 93e624ad3f0438a2ab2417ecf4ebbcd4b817a5f1 Mon Sep 17 00:00:00 2001 From: Robb Glasser Date: Thu, 18 Aug 2022 16:52:54 -0700 Subject: [PATCH] Dump usf stats history in bugreports. USF saves a stat buffer to the filesystem periodically. Dump this as part of bugreports. Bug: 242320914 Test: Stats are visible in a bugreport. Change-Id: If609d76b224228061021fdc1463b6e8dfb6170ca --- dumpstate/DumpstateDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index e20065ae..540e12cb 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -1009,6 +1009,9 @@ void DumpstateDevice::dumpSensorsUSFSection(int fd) { RunCommandToFd(fd, "USF Registry", {"/vendor/bin/sh", "-c", "usf_reg_edit save -"}, options); + RunCommandToFd(fd, "USF Last Stat Buffer", + {"/vendor/bin/sh", "-c", "cat /data/vendor/sensors/debug/stats.history"}, + options); } } }