Add AoC specific logs to dumpstate
Bug: 187961753 Change-Id: I871912c8b5e49618935f347476ca5cce9ad233aa
This commit is contained in:
parent
185653e3a2
commit
be26bc083e
2 changed files with 9 additions and 0 deletions
|
@ -243,6 +243,7 @@ DumpstateDevice::DumpstateDevice()
|
||||||
{ "touch", [this](int fd) { dumpTouchSection(fd); } },
|
{ "touch", [this](int fd) { dumpTouchSection(fd); } },
|
||||||
{ "display", [this](int fd) { dumpDisplaySection(fd); } },
|
{ "display", [this](int fd) { dumpDisplaySection(fd); } },
|
||||||
{ "sensors-usf", [this](int fd) { dumpSensorsUSFSection(fd); } },
|
{ "sensors-usf", [this](int fd) { dumpSensorsUSFSection(fd); } },
|
||||||
|
{ "aoc", [this](int fd) { dumpAoCSection(fd); } },
|
||||||
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
|
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
|
||||||
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
||||||
{ "gsc", [this](int fd) { dumpGscSection(fd); } },
|
{ "gsc", [this](int fd) { dumpGscSection(fd); } },
|
||||||
|
@ -775,6 +776,13 @@ void DumpstateDevice::dumpDisplaySection(int fd) {
|
||||||
CommandOptions::WithTimeout(2).Build());
|
CommandOptions::WithTimeout(2).Build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dump items related to AoC
|
||||||
|
void DumpstateDevice::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");
|
||||||
|
}
|
||||||
|
|
||||||
// Dump items related to sensors usf.
|
// Dump items related to sensors usf.
|
||||||
void DumpstateDevice::dumpSensorsUSFSection(int fd) {
|
void DumpstateDevice::dumpSensorsUSFSection(int fd) {
|
||||||
CommandOptions options = CommandOptions::WithTimeout(2).Build();
|
CommandOptions options = CommandOptions::WithTimeout(2).Build();
|
||||||
|
|
|
@ -78,6 +78,7 @@ struct DumpstateDevice : public IDumpstateDevice {
|
||||||
void dumpStorageSection(int fd);
|
void dumpStorageSection(int fd);
|
||||||
void dumpDisplaySection(int fd);
|
void dumpDisplaySection(int fd);
|
||||||
void dumpSensorsUSFSection(int fd);
|
void dumpSensorsUSFSection(int fd);
|
||||||
|
void dumpAoCSection(int fd);
|
||||||
void dumpRamdumpSection(int fd);
|
void dumpRamdumpSection(int fd);
|
||||||
void dumpMiscSection(int fd);
|
void dumpMiscSection(int fd);
|
||||||
void dumpGscSection(int fd);
|
void dumpGscSection(int fd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue