From feba5c00e356f0e1ff2ea2a3f235d96bc3ea3e27 Mon Sep 17 00:00:00 2001 From: Max Kogan Date: Wed, 14 Jul 2021 14:59:02 -0700 Subject: [PATCH] Add AoC wakeup stats to dump state Need wakeup stats to track AoC to AP messages resulting in frequent wake-ups. Bug: 192988670 Signed-off-by: Max Kogan Change-Id: Id13a99e5ffcafdf8a2c2ac830bc833f8c89f5fc8 --- dumpstate/DumpstateDevice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index e5d53785..99e58a65 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -866,6 +866,12 @@ void DumpstateDevice::dumpAoCSection(int fd) { DumpFileToFd(fd, "AoC Service Status", "/sys/devices/platform/19000000.aoc/services"); DumpFileToFd(fd, "AoC Restarts", "/sys/devices/platform/19000000.aoc/restart_count"); DumpFileToFd(fd, "AoC Coredumps", "/sys/devices/platform/19000000.aoc/coredump_count"); + DumpFileToFd(fd, "AoC ring buf wake", "/sys/devices/platform/19000000.aoc/control/ring_buffer_wakeup"); + DumpFileToFd(fd, "AoC host ipc wake", "/sys/devices/platform/19000000.aoc/control/host_ipc_wakeup"); + DumpFileToFd(fd, "AoC usf wake", "/sys/devices/platform/19000000.aoc/control/usf_wakeup"); + DumpFileToFd(fd, "AoC audio wake", "/sys/devices/platform/19000000.aoc/control/audio_wakeup"); + DumpFileToFd(fd, "AoC logging wake", "/sys/devices/platform/19000000.aoc/control/logging_wakeup"); + DumpFileToFd(fd, "AoC hotword wake", "/sys/devices/platform/19000000.aoc/control/hotword_wakeup"); } // Dump items related to sensors usf.