summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorAdam Shih <adamshih@google.com>2023-03-01 08:07:51 +0800
committerAdam Shih <adamshih@google.com>2023-03-01 21:58:41 +0000
commitcb302d9794531cd634328061c3375e63a8e237a8 (patch)
tree3ac8e0e6809f90414d7a1067d09bbec184fa30c2 /dumpstate
parentc4b1ded167e72260775c555aa124bc40c103650b (diff)
downloadzuma-cb302d9794531cd634328061c3375e63a8e237a8.tar.gz
move gxp dump to gs-common
ag/21644929 is where the operation lives in the future. Bug: 240530709 Test: adb bugreport Change-Id: I6e621228a1964ec0b83afe02cd0059c7ee361b20
Diffstat (limited to 'dumpstate')
-rw-r--r--dumpstate/Dumpstate.cpp17
-rw-r--r--dumpstate/Dumpstate.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp
index b20aafe..8b7d54f 100644
--- a/dumpstate/Dumpstate.cpp
+++ b/dumpstate/Dumpstate.cpp
@@ -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;
diff --git a/dumpstate/Dumpstate.h b/dumpstate/Dumpstate.h
index 9aebf5d..20ba4d0 100644
--- a/dumpstate/Dumpstate.h
+++ b/dumpstate/Dumpstate.h
@@ -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);