From 03270401424d49f301a5f7cf69e5938afc1aeaa1 Mon Sep 17 00:00:00 2001 From: JJ Lee Date: Thu, 25 Aug 2022 11:49:53 +0800 Subject: [PATCH] dumpstate: Add aoc memory vote dump for a32 and ff1 Bug: 223674292 Test: Boot test, taking bugreport is not blocked Change-Id: I2b88004ba641b8ef339826130e7aa4e61f5b0d11 Signed-off-by: JJ Lee --- dumpstate/DumpstateDevice.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 540e12cb..cbe997ed 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -976,7 +976,8 @@ void DumpstateDevice::dumpAoCSection(int fd) { 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"); DumpFileToFd(fd, "AoC memory exception wake", "/sys/devices/platform/19000000.aoc/control/memory_exception"); - DumpFileToFd(fd, "AoC memory votes", "/sys/devices/platform/19000000.aoc/control/memory_votes"); + DumpFileToFd(fd, "AoC memory votes", "/sys/devices/platform/19000000.aoc/control/memory_votes_a32"); + DumpFileToFd(fd, "AoC memory votes", "/sys/devices/platform/19000000.aoc/control/memory_votes_ff1"); RunCommandToFd(fd, "AoC Heap Stats (A32)", {"/vendor/bin/sh", "-c", "echo 'dbg heap -c 1' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"}, CommandOptions::WithTimeout(1).Build()); @@ -989,9 +990,6 @@ void DumpstateDevice::dumpAoCSection(int fd) { RunCommandToFd(fd, "AoC Heap Stats (HF1)", {"/vendor/bin/sh", "-c", "echo 'dbg heap -c 4' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"}, CommandOptions::WithTimeout(1).Build()); - RunCommandToFd(fd, "AoC MIF Stats", - {"/vendor/bin/sh", "-c", "echo 'mif details' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"}, - CommandOptions::WithTimeout(1).Build()); } // Dump items related to sensors usf.