dumpstate: add camera hal graph state dump am: 5b24450f66 am: e43cd9d5df
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14605098 Change-Id: I9788f6c4036a0a0d1092a7a90b158c9de3e64c59
This commit is contained in:
commit
3c0e464e12
2 changed files with 10 additions and 0 deletions
|
@ -247,6 +247,7 @@ DumpstateDevice::DumpstateDevice()
|
|||
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
|
||||
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
||||
{ "gsc", [this](int fd) { dumpGscSection(fd); } },
|
||||
{ "camera", [this](int fd) { dumpCameraSection(fd); } },
|
||||
} {
|
||||
}
|
||||
|
||||
|
@ -848,6 +849,14 @@ void DumpstateDevice::dumpGscSection(int fd) {
|
|||
RunCommandToFd(fd, "Citadel STATS", {"vendor/bin/hw/citadel_updater", "--stats"});
|
||||
}
|
||||
|
||||
// Dump essential camera debugging logs
|
||||
void DumpstateDevice::dumpCameraSection(int fd) {
|
||||
RunCommandToFd(fd, "Camera HAL Graph State Dump", {"/vendor/bin/sh", "-c",
|
||||
"for f in $(ls -t /data/vendor/camera/hal_graph_state*.txt |head -1); do "
|
||||
"echo $f ; cat $f ; done"},
|
||||
CommandOptions::WithTimeout(4).Build());
|
||||
}
|
||||
|
||||
void DumpstateDevice::dumpModem(int fd, int fdModem)
|
||||
{
|
||||
std::string modemLogDir = MODEM_LOG_DIRECTORY;
|
||||
|
|
|
@ -82,6 +82,7 @@ struct DumpstateDevice : public IDumpstateDevice {
|
|||
void dumpRamdumpSection(int fd);
|
||||
void dumpMiscSection(int fd);
|
||||
void dumpGscSection(int fd);
|
||||
void dumpCameraSection(int fd);
|
||||
|
||||
// Hybrid and binary sections that require an additional file descriptor
|
||||
void dumpModem(int fd, int fdModem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue