diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index e42e187a..bf4b8ac6 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -233,6 +233,7 @@ Dumpstate::Dumpstate() { "display", [this](int fd) { dumpDisplaySection(fd); } }, { "misc", [this](int fd) { dumpMiscSection(fd); } }, { "led", [this](int fd) { dumpLEDSection(fd); } }, + { "pixel-trace", [this](int fd) { dumpPixelTraceSection(fd); } }, }, mLogSections{ { "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()); } +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, IDumpstateDevice::DumpstateMode in_mode, int64_t in_timeoutMillis) { diff --git a/dumpstate/Dumpstate.h b/dumpstate/Dumpstate.h index a1983649..acd4b8b7 100644 --- a/dumpstate/Dumpstate.h +++ b/dumpstate/Dumpstate.h @@ -62,6 +62,7 @@ class Dumpstate : public BnDumpstateDevice { void dumpDisplaySection(int fd); void dumpMiscSection(int fd); void dumpLEDSection(int fd); + void dumpPixelTraceSection(int fd); void dumpLogSection(int fd, int fdModem);