Move camera text dump to dump_gs101

Bug: 273380985
Test: adb bugreport
Change-Id: Ie82c87ba87d175cb861d36f7e4a94c0e730da0d2
This commit is contained in:
Adam Shih 2023-03-27 10:35:44 +08:00
parent 4cec3fd2e2
commit a9207eff25
3 changed files with 7 additions and 10 deletions

View file

@ -242,7 +242,6 @@ void endSection(int fd, const std::string &sectionName, timepoint_t startTime) {
Dumpstate::Dumpstate() Dumpstate::Dumpstate()
: mTextSections{ : mTextSections{
{ "power", [this](int fd) { dumpPowerSection(fd); } }, { "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) { static void *dumpModemThread(void *data) {
ATRACE_ASYNC_BEGIN("dumpModemThread", 0); ATRACE_ASYNC_BEGIN("dumpModemThread", 0);
std::string modemLogDir = MODEM_LOG_DIRECTORY; std::string modemLogDir = MODEM_LOG_DIRECTORY;

View file

@ -49,7 +49,6 @@ class Dumpstate : public BnDumpstateDevice {
// addition to being included in full dumps // addition to being included in full dumps
void dumpPowerSection(int fd); void dumpPowerSection(int fd);
void dumpMemorySection(int fd); void dumpMemorySection(int fd);
void dumpCameraSection(int fd);
}; };
} // namespace dumpstate } // namespace dumpstate

View file

@ -12,3 +12,10 @@ for d in $(ls -d /sys/kernel/pixel_stat/mm/cma/*); do
fi fi
done 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