Move power dump text section out of hal_dumpstate_default

Bug: 273380985
Test: adb bugreport
Change-Id: I5e104880d38c1a1b2dda4b48b0b3576b14a5ea8e
This commit is contained in:
Adam Shih 2023-03-28 14:50:31 +08:00
parent f2432e1c92
commit c08f948ee3
3 changed files with 304 additions and 216 deletions

View file

@ -28,8 +28,6 @@ namespace dumpstate {
class Dumpstate : public BnDumpstateDevice {
public:
Dumpstate();
::ndk::ScopedAStatus dumpstateBoard(const std::vector<::ndk::ScopedFileDescriptor>& in_fds,
IDumpstateDevice::DumpstateMode in_mode,
int64_t in_timeoutMillis) override;
@ -41,14 +39,7 @@ class Dumpstate : public BnDumpstateDevice {
private:
const std::string kAllSections = "all";
std::vector<std::pair<std::string, std::function<void(int)>>> mTextSections;
void dumpTextSection(int fd, std::string const& sectionName);
// Text sections that can be dumped individually on the command line in
// addition to being included in full dumps
void dumpPowerSection(int fd);
void dumpMemorySection(int fd);
};
} // namespace dumpstate