dumpstate: Sync features from P20

- Create thread to collect modem related logs into dumpstate_board.bin.
- Reference verbose logging property

Bug: 176176656
Bug: 190329829

Change-Id: I514ae6d00599239238d0f1a2a2ec0cc2c8c15043
This commit is contained in:
SalmaxChang 2021-05-26 17:03:41 +08:00 committed by TreeHugger Robot
parent d19326ae76
commit 0979e06146
3 changed files with 156 additions and 132 deletions

View file

@ -60,9 +60,6 @@ struct DumpstateDevice : public IDumpstateDevice {
std::vector<std::pair<std::string, std::function<void(int)>>> mTextSections;
void dumpLogs(int fd, std::string srcDir, std::string destDir, int maxFileNum,
const char *logPrefix);
void dumpTextSection(int fd, std::string const& sectionName);
// Text sections that can be dumped individually on the command line in
@ -84,11 +81,7 @@ struct DumpstateDevice : public IDumpstateDevice {
void dumpGscSection(int fd);
void dumpCameraSection(int fd);
void dumpTrustySection(int fd);
// Hybrid and binary sections that require an additional file descriptor
void dumpModem(int fd, int fdModem);
void dumpRilLogs(int fd, std::string destDir);
void dumpGpsLogs(int fd, std::string destDir);
void dumpModemSection(int fd);
};
} // namespace implementation