diff options
author | Minchan Kim <minchan@google.com> | 2022-11-14 19:52:49 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-11-14 19:52:49 +0000 |
commit | b5ae9d29fab52856bd294c0654c2a6576c688824 (patch) | |
tree | 10d0c5de787779462cf93b95249c7d0dec76f50b /dumpstate | |
parent | 02b1cd417378476672457fa781b3ff85c2317c07 (diff) | |
parent | a206af9907f5f17cd401c1592986487d696489b3 (diff) | |
download | gs201-b5ae9d29fab52856bd294c0654c2a6576c688824.tar.gz |
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>
Diffstat (limited to 'dumpstate')
-rw-r--r-- | dumpstate/Dumpstate.cpp | 5 | ||||
-rw-r--r-- | dumpstate/Dumpstate.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index e42e187..bf4b8ac 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 a198364..acd4b8b 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); |