move modem dump to gs-common

Bug: 250475732
Test: adb bugreport
Change-Id: I4b3e1ab273abe0f8cc46cc976cf6e765ff737d2d
This commit is contained in:
Adam Shih 2022-10-07 09:29:24 +08:00
parent b7dda6c697
commit 01f4dc4226
3 changed files with 1 additions and 14 deletions

View file

@ -18,6 +18,7 @@ include device/google/gs-common/device.mk
include device/google/gs-common/gs_watchdogd/watchdog.mk include device/google/gs-common/gs_watchdogd/watchdog.mk
include device/google/gs-common/ramdump/ramdump.mk include device/google/gs-common/ramdump/ramdump.mk
include device/google/gs-common/soc/soc.mk include device/google/gs-common/soc/soc.mk
include device/google/gs-common/modem/modem.mk
TARGET_BOARD_PLATFORM := gs201 TARGET_BOARD_PLATFORM := gs201

View file

@ -222,7 +222,6 @@ void endSection(int fd, const std::string &sectionName, timepoint_t startTime) {
Dumpstate::Dumpstate() Dumpstate::Dumpstate()
: mTextSections{ : mTextSections{
{ "wlan", [this](int fd) { dumpWlanSection(fd); } }, { "wlan", [this](int fd) { dumpWlanSection(fd); } },
{ "modem", [this](int fd) { dumpModemSection(fd); } },
{ "memory", [this](int fd) { dumpMemorySection(fd); } }, { "memory", [this](int fd) { dumpMemorySection(fd); } },
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } }, { "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
{ "cpu", [this](int fd) { dumpCpuSection(fd); } }, { "cpu", [this](int fd) { dumpCpuSection(fd); } },
@ -1045,18 +1044,6 @@ void Dumpstate::dumpLEDSection(int fd) {
} }
} }
void Dumpstate::dumpModemSection(int fd) {
DumpFileToFd(fd, "Modem Stat", "/data/vendor/modem_stat/debug.txt");
RunCommandToFd(fd, "Modem SSR history", {"/vendor/bin/sh", "-c",
"for f in $(ls /data/vendor/ssrdump/crashinfo_modem*); do "
"echo $f ; cat $f ; done"},
CommandOptions::WithTimeout(2).Build());
RunCommandToFd(fd, "RFSD error log", {"/vendor/bin/sh", "-c",
"for f in $(ls /data/vendor/log/rfsd/rfslog_*); do "
"echo $f ; cat $f ; done"},
CommandOptions::WithTimeout(2).Build());
}
void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) { void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) {
std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY; std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY;

View file

@ -53,7 +53,6 @@ class Dumpstate : public BnDumpstateDevice {
// Text sections that can be dumped individually on the command line in // Text sections that can be dumped individually on the command line in
// addition to being included in full dumps // addition to being included in full dumps
void dumpWlanSection(int fd); void dumpWlanSection(int fd);
void dumpModemSection(int fd);
void dumpPowerSection(int fd); void dumpPowerSection(int fd);
void dumpThermalSection(int fd); void dumpThermalSection(int fd);
void dumpTouchSection(int fd); void dumpTouchSection(int fd);