diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index d4af35b0..de973669 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -242,7 +242,6 @@ void endSection(int fd, const std::string §ionName, timepoint_t startTime) { Dumpstate::Dumpstate() : mTextSections{ { "power", [this](int fd) { dumpPowerSection(fd); } }, - { "camera", [this](int fd) { dumpCameraSection(fd); } }, } { } @@ -491,14 +490,6 @@ void Dumpstate::dumpPowerSection(int fd) { } -// Dump essential camera debugging logs -void Dumpstate::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()); -} - static void *dumpModemThread(void *data) { ATRACE_ASYNC_BEGIN("dumpModemThread", 0); std::string modemLogDir = MODEM_LOG_DIRECTORY; diff --git a/dumpstate/Dumpstate.h b/dumpstate/Dumpstate.h index cfad9f97..cfca5a15 100644 --- a/dumpstate/Dumpstate.h +++ b/dumpstate/Dumpstate.h @@ -49,7 +49,6 @@ class Dumpstate : public BnDumpstateDevice { // addition to being included in full dumps void dumpPowerSection(int fd); void dumpMemorySection(int fd); - void dumpCameraSection(int fd); }; } // namespace dumpstate diff --git a/dumpstate/dump_gs101.sh b/dumpstate/dump_gs101.sh index 211140ca..c37b2bfb 100644 --- a/dumpstate/dump_gs101.sh +++ b/dumpstate/dump_gs101.sh @@ -12,3 +12,10 @@ for d in $(ls -d /sys/kernel/pixel_stat/mm/cma/*); do fi done + +echo "------ Camera HAL Graph State Dump ------" +for f in $(ls -t /data/vendor/camera/hal_graph_state*.txt |head -1); do + echo $f + cat $f +done +