dumpstate: add additional AoC entries am: 7a185ef62c

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/17337339

Change-Id: I42055766738bc1b9b024d02184e0b8066c03ce05
This commit is contained in:
Luigi Zevola 2022-03-23 02:41:01 +00:00 committed by Automerger Merge Worker
commit afb098082d

View file

@ -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.