diff options
author | Luigi Zevola <zevola@google.com> | 2022-03-20 01:11:31 +0000 |
---|---|---|
committer | Luigi Zevola <zevola@google.com> | 2022-03-22 22:51:18 +0000 |
commit | 7a185ef62c8fbcf99b23bbf71ec7fac7cdb6e68c (patch) | |
tree | 4023bfee37426e9ba1ab9131cf1654cfc73a22c1 /dumpstate | |
parent | d7ce913606618c3668547c75f03b86fa2a5d56c2 (diff) | |
download | gs101-7a185ef62c8fbcf99b23bbf71ec7fac7cdb6e68c.tar.gz |
dumpstate: add additional AoC entries
Add additional AoC Entries to dumpstate to improve debuggability
Bug: 225576718
Test: On R4/O6
Signed-off-by: Luigi Zevola <zevola@google.com>
Change-Id: I1eda56f2e98f60ff6056e9cf7549dc598d1c35f2
(cherry picked from commit f7227d95d7e7760cbecc887fd075e6e8ac19a604)
Diffstat (limited to 'dumpstate')
-rw-r--r-- | dumpstate/DumpstateDevice.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 797a3c97..64a6aacc 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -966,6 +966,15 @@ void DumpstateDevice::dumpAoCSection(int fd) { 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"); + 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)", {"/vendor/bin/sh", "-c", "echo 'dbg heap -c 2' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"}, CommandOptions::WithTimeout(1).Build()); + RunCommandToFd(fd, "AoC Heap Stats (HF0)", {"/vendor/bin/sh", "-c", "echo 'dbg heap -c 3' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"}, CommandOptions::WithTimeout(1).Build()); + 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 Tasks Stats (A32)", {"/vendor/bin/sh", "-c", "echo 'dbg tasks -c 1' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"}, CommandOptions::WithTimeout(1).Build()); + RunCommandToFd(fd, "AoC Tasks Stats (F1)", {"/vendor/bin/sh", "-c", "echo 'dbg tasks -c 2' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"}, CommandOptions::WithTimeout(1).Build()); + RunCommandToFd(fd, "AoC Tasks Stats (HF0)", {"/vendor/bin/sh", "-c", "echo 'dbg tasks -c 3' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"}, CommandOptions::WithTimeout(1).Build()); + RunCommandToFd(fd, "AoC Tasks Stats (HF1)", {"/vendor/bin/sh", "-c", "echo 'dbg tasks -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. |