Move camera text dump to dump_gs101 am: a9207eff25
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/22244836 Change-Id: I22284f23737b38db1780c8ac837825a85add8800 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
43c4a3d7bd
3 changed files with 7 additions and 10 deletions
|
@ -242,7 +242,6 @@ void endSection(int fd, const std::string §ionName, 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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue