move modem dump to gs-common
Bug: 250475732 Test: adb bugreport Change-Id: I4b3e1ab273abe0f8cc46cc976cf6e765ff737d2d
This commit is contained in:
parent
b7dda6c697
commit
01f4dc4226
3 changed files with 1 additions and 14 deletions
|
@ -222,7 +222,6 @@ void endSection(int fd, const std::string §ionName, timepoint_t startTime) {
|
|||
Dumpstate::Dumpstate()
|
||||
: mTextSections{
|
||||
{ "wlan", [this](int fd) { dumpWlanSection(fd); } },
|
||||
{ "modem", [this](int fd) { dumpModemSection(fd); } },
|
||||
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
||||
{ "Devfreq", [this](int fd) { dumpDevfreqSection(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) {
|
||||
std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue