From 5d912313d78efb3e0d4258b2d1fc53bd41423c8d Mon Sep 17 00:00:00 2001 From: JJ Lee Date: Wed, 3 Aug 2022 14:26:40 +0800 Subject: [PATCH] dumpstate: Add aoc memory vote dump Bug: 223674292 Test: Boot test, taking bugreport is not blocked Change-Id: I514d04de5808e22e3927f9534a5b710b7abc045d Signed-off-by: JJ Lee --- dumpstate/Dumpstate.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index 7c314604..7956e7ec 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -1032,9 +1032,16 @@ void Dumpstate::dumpAoCSection(int fd) { 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"); - RunCommandToFd(fd, "AoC memory exception wake", {"/vendor/bin/sh", "-c", "cat /sys/devices/platform/19000000.aoc/control/memory_exception"}, CommandOptions::WithTimeout(2).Build()); - RunCommandToFd(fd, "AoC memory votes", {"/vendor/bin/sh", "-c", "cat /sys/devices/platform/19000000.aoc/control/memory_votes"}, CommandOptions::WithTimeout(2).Build()); - RunCommandToFd(fd, "AoC Heap Stats (A32)", + RunCommandToFd(fd, "AoC memory exception wake", + {"/vendor/bin/sh", "-c", "cat /sys/devices/platform/19000000.aoc/control/memory_exception"}, + CommandOptions::WithTimeout(2).Build()); + RunCommandToFd(fd, "AoC memory votes A32", + {"/vendor/bin/sh", "-c", "cat /sys/devices/platform/19000000.aoc/control/memory_votes_a32"}, + CommandOptions::WithTimeout(2).Build()); + RunCommandToFd(fd, "AoC memory votes FF1", + {"/vendor/bin/sh", "-c", "cat /sys/devices/platform/19000000.aoc/control/memory_votes_ff1"}, + CommandOptions::WithTimeout(2).Build()); + 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()); RunCommandToFd(fd, "AoC Heap Stats (F1)", @@ -1046,9 +1053,6 @@ void Dumpstate::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.