dumpstate: Dump pixel specific trace events at bugreport am: 31883f3edc am: a206af9907

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20413970

Change-Id: Ibfa19e668a916893915ef96073d23d317ed8726c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Minchan Kim 2022-11-14 19:52:49 +00:00 committed by Automerger Merge Worker
commit b5ae9d29fa
2 changed files with 6 additions and 0 deletions

View file

@ -233,6 +233,7 @@ Dumpstate::Dumpstate()
{ "display", [this](int fd) { dumpDisplaySection(fd); } }, { "display", [this](int fd) { dumpDisplaySection(fd); } },
{ "misc", [this](int fd) { dumpMiscSection(fd); } }, { "misc", [this](int fd) { dumpMiscSection(fd); } },
{ "led", [this](int fd) { dumpLEDSection(fd); } }, { "led", [this](int fd) { dumpLEDSection(fd); } },
{ "pixel-trace", [this](int fd) { dumpPixelTraceSection(fd); } },
}, },
mLogSections{ mLogSections{
{ "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } }, { "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } },
@ -1150,6 +1151,10 @@ void Dumpstate::dumpLogSection(int fd, int fd_bin)
RunCommandToFd(fd, "RM LOG", { "/vendor/bin/rm", logCombined.c_str()}, CommandOptions::WithTimeout(2).Build()); RunCommandToFd(fd, "RM LOG", { "/vendor/bin/rm", logCombined.c_str()}, CommandOptions::WithTimeout(2).Build());
} }
void Dumpstate::dumpPixelTraceSection(int fd) {
DumpFileToFd(fd, "Pixel trace", "/sys/kernel/tracing/instances/pixel/trace");
}
ndk::ScopedAStatus Dumpstate::dumpstateBoard(const std::vector<::ndk::ScopedFileDescriptor>& in_fds, ndk::ScopedAStatus Dumpstate::dumpstateBoard(const std::vector<::ndk::ScopedFileDescriptor>& in_fds,
IDumpstateDevice::DumpstateMode in_mode, IDumpstateDevice::DumpstateMode in_mode,
int64_t in_timeoutMillis) { int64_t in_timeoutMillis) {

View file

@ -62,6 +62,7 @@ class Dumpstate : public BnDumpstateDevice {
void dumpDisplaySection(int fd); void dumpDisplaySection(int fd);
void dumpMiscSection(int fd); void dumpMiscSection(int fd);
void dumpLEDSection(int fd); void dumpLEDSection(int fd);
void dumpPixelTraceSection(int fd);
void dumpLogSection(int fd, int fdModem); void dumpLogSection(int fd, int fdModem);