move camera dump to gs-common
Bug: 240530709 Test: adb bugreport Change-Id: I9ffb7f1fd93462237e4610592d0589cedbc3d1ab
This commit is contained in:
parent
a759a55943
commit
5ed79e55dc
3 changed files with 1 additions and 22 deletions
|
@ -29,6 +29,7 @@ include device/google/gs-common/soc/freq.mk
|
||||||
include device/google/gs-common/gps/dump/log.mk
|
include device/google/gs-common/gps/dump/log.mk
|
||||||
include device/google/gs-common/display/dump.mk
|
include device/google/gs-common/display/dump.mk
|
||||||
include device/google/gs-common/gxp/dump.mk
|
include device/google/gs-common/gxp/dump.mk
|
||||||
|
include device/google/gs-common/camera/dump.mk
|
||||||
|
|
||||||
include device/google/zuma/dumpstate/item.mk
|
include device/google/zuma/dumpstate/item.mk
|
||||||
|
|
||||||
|
|
|
@ -209,7 +209,6 @@ Dumpstate::Dumpstate()
|
||||||
mLogSections{
|
mLogSections{
|
||||||
{ "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } },
|
{ "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } },
|
||||||
{ "radio", [this](int fd, const std::string &destDir) { dumpRadioLogs(fd, destDir); } },
|
{ "radio", [this](int fd, const std::string &destDir) { dumpRadioLogs(fd, destDir); } },
|
||||||
{ "camera", [this](int fd, const std::string &destDir) { dumpCameraLogs(fd, destDir); } },
|
|
||||||
} {
|
} {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -319,26 +318,6 @@ void Dumpstate::dumpRadioLogs(int fd, const std::string &destDir) {
|
||||||
dumpNetmgrLogs(destDir);
|
dumpNetmgrLogs(destDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Dumpstate::dumpCameraLogs(int fd, const std::string &destDir) {
|
|
||||||
bool cameraLogsEnabled = ::android::base::GetBoolProperty(
|
|
||||||
"vendor.camera.debug.camera_performance_analyzer.attach_to_bugreport", true);
|
|
||||||
if (!cameraLogsEnabled) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const std::string kCameraLogDir = "/data/vendor/camera/profiler";
|
|
||||||
const std::string cameraDestDir = destDir + "/camera";
|
|
||||||
|
|
||||||
RunCommandToFd(fd, "MKDIR CAMERA LOG", {"/vendor/bin/mkdir", "-p", cameraDestDir.c_str()},
|
|
||||||
CommandOptions::WithTimeout(2).Build());
|
|
||||||
// Attach multiple latest sessions (in case the user is running concurrent
|
|
||||||
// sessions or starts a new session after the one with performance issues).
|
|
||||||
dumpLogs(fd, kCameraLogDir, cameraDestDir, 10, "session-ended-");
|
|
||||||
dumpLogs(fd, kCameraLogDir, cameraDestDir, 5, "high-drop-rate-");
|
|
||||||
dumpLogs(fd, kCameraLogDir, cameraDestDir, 5, "watchdog-");
|
|
||||||
dumpLogs(fd, kCameraLogDir, cameraDestDir, 5, "camera-ended-");
|
|
||||||
}
|
|
||||||
|
|
||||||
void Dumpstate::dumpLogSection(int fd, int fd_bin)
|
void Dumpstate::dumpLogSection(int fd, int fd_bin)
|
||||||
{
|
{
|
||||||
std::string logDir = MODEM_LOG_DIRECTORY;
|
std::string logDir = MODEM_LOG_DIRECTORY;
|
||||||
|
|
|
@ -59,7 +59,6 @@ class Dumpstate : public BnDumpstateDevice {
|
||||||
// Log sections to be dumped individually into dumpstate_board.bin
|
// Log sections to be dumped individually into dumpstate_board.bin
|
||||||
void dumpModemLogs(int fd, const std::string &destDir);
|
void dumpModemLogs(int fd, const std::string &destDir);
|
||||||
void dumpRadioLogs(int fd, const std::string &destDir);
|
void dumpRadioLogs(int fd, const std::string &destDir);
|
||||||
void dumpCameraLogs(int fd, const std::string &destDir);
|
|
||||||
|
|
||||||
// Hybrid and binary sections that require an additional file descriptor
|
// Hybrid and binary sections that require an additional file descriptor
|
||||||
void dumpRilLogs(int fd, std::string destDir);
|
void dumpRilLogs(int fd, std::string destDir);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue