Merge "move gxp dump to gs-common" into udc-dev am: a759a55943
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/21647082 Change-Id: Ie32b6da066d0c3221a5743055f244687ff6cbf6e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
cfd9b05e30
3 changed files with 1 additions and 18 deletions
|
@ -28,6 +28,7 @@ include device/google/gs-common/performance/perf.mk
|
|||
include device/google/gs-common/soc/freq.mk
|
||||
include device/google/gs-common/gps/dump/log.mk
|
||||
include device/google/gs-common/display/dump.mk
|
||||
include device/google/gs-common/gxp/dump.mk
|
||||
|
||||
include device/google/zuma/dumpstate/item.mk
|
||||
|
||||
|
|
|
@ -210,7 +210,6 @@ Dumpstate::Dumpstate()
|
|||
{ "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } },
|
||||
{ "radio", [this](int fd, const std::string &destDir) { dumpRadioLogs(fd, destDir); } },
|
||||
{ "camera", [this](int fd, const std::string &destDir) { dumpCameraLogs(fd, destDir); } },
|
||||
{ "gxp", [this](int fd, const std::string &destDir) { dumpGxpLogs(fd, destDir); } },
|
||||
} {
|
||||
}
|
||||
|
||||
|
@ -340,22 +339,6 @@ void Dumpstate::dumpCameraLogs(int fd, const std::string &destDir) {
|
|||
dumpLogs(fd, kCameraLogDir, cameraDestDir, 5, "camera-ended-");
|
||||
}
|
||||
|
||||
void Dumpstate::dumpGxpLogs(int fd, const std::string &destDir) {
|
||||
bool gxpDumpEnabled = ::android::base::GetBoolProperty("vendor.gxp.attach_to_bugreport", false);
|
||||
|
||||
if (gxpDumpEnabled) {
|
||||
const int maxGxpDebugDumps = 8;
|
||||
const std::string gxpCoredumpOutputDir = destDir + "/gxp_ssrdump";
|
||||
const std::string gxpCoredumpInputDir = "/data/vendor/ssrdump";
|
||||
|
||||
RunCommandToFd(fd, "MKDIR GXP COREDUMP", {"/vendor/bin/mkdir", "-p", gxpCoredumpOutputDir}, CommandOptions::WithTimeout(2).Build());
|
||||
|
||||
// Copy GXP coredumps and crashinfo to the output directory.
|
||||
dumpLogs(fd, gxpCoredumpInputDir + "/coredump", gxpCoredumpOutputDir, maxGxpDebugDumps, "coredump_gxp_platform");
|
||||
dumpLogs(fd, gxpCoredumpInputDir, gxpCoredumpOutputDir, maxGxpDebugDumps, "crashinfo_gxp_platform");
|
||||
}
|
||||
}
|
||||
|
||||
void Dumpstate::dumpLogSection(int fd, int fd_bin)
|
||||
{
|
||||
std::string logDir = MODEM_LOG_DIRECTORY;
|
||||
|
|
|
@ -60,7 +60,6 @@ class Dumpstate : public BnDumpstateDevice {
|
|||
void dumpModemLogs(int fd, const std::string &destDir);
|
||||
void dumpRadioLogs(int fd, const std::string &destDir);
|
||||
void dumpCameraLogs(int fd, const std::string &destDir);
|
||||
void dumpGxpLogs(int fd, const std::string &destDir);
|
||||
|
||||
// Hybrid and binary sections that require an additional file descriptor
|
||||
void dumpRilLogs(int fd, std::string destDir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue