mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
move aoc dump to gs-common
Bug: 248426917 Test: adb bugreport Change-Id: Ib387f304c062d19e181e771e5432bf9493c504bc
This commit is contained in:
@@ -19,6 +19,7 @@ include device/google/gs-common/gs_watchdogd/watchdog.mk
|
||||
include device/google/gs-common/ramdump/ramdump.mk
|
||||
include device/google/gs-common/soc/soc.mk
|
||||
include device/google/gs-common/modem/modem.mk
|
||||
include device/google/gs-common/aoc/aoc.mk
|
||||
|
||||
TARGET_BOARD_PLATFORM := gs201
|
||||
|
||||
|
||||
@@ -230,7 +230,6 @@ Dumpstate::Dumpstate()
|
||||
{ "touch", [this](int fd) { dumpTouchSection(fd); } },
|
||||
{ "display", [this](int fd) { dumpDisplaySection(fd); } },
|
||||
{ "sensors-usf", [this](int fd) { dumpSensorsUSFSection(fd); } },
|
||||
{ "aoc", [this](int fd) { dumpAoCSection(fd); } },
|
||||
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
||||
{ "led", [this](int fd) { dumpLEDSection(fd); } },
|
||||
},
|
||||
@@ -967,40 +966,6 @@ void Dumpstate::dumpDisplaySection(int fd) {
|
||||
}
|
||||
}
|
||||
|
||||
// Dump items related to AoC
|
||||
void Dumpstate::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");
|
||||
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)",
|
||||
{"/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());
|
||||
}
|
||||
|
||||
// Dump items related to sensors usf.
|
||||
void Dumpstate::dumpSensorsUSFSection(int fd) {
|
||||
CommandOptions options = CommandOptions::WithTimeout(2).Build();
|
||||
|
||||
@@ -61,7 +61,6 @@ class Dumpstate : public BnDumpstateDevice {
|
||||
void dumpMemorySection(int fd);
|
||||
void dumpDisplaySection(int fd);
|
||||
void dumpSensorsUSFSection(int fd);
|
||||
void dumpAoCSection(int fd);
|
||||
void dumpMiscSection(int fd);
|
||||
void dumpLEDSection(int fd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user