dumpstate: Dump pixel specific trace events at bugreport
At the bugreport, capture pixel tracee vents. It's useful to know what happened in kernel side at that time. Test: "adb bugreport" includes the pixel trace dump. Bug: 238728493 Change-Id: I43a0b0bc51fc9aae7149e461761b798da9fce5e8 Signed-off-by: Minchan Kim <minchan@google.com>
This commit is contained in:
parent
4af3fad2e9
commit
31883f3edc
2 changed files with 6 additions and 0 deletions
|
@ -241,6 +241,7 @@ Dumpstate::Dumpstate()
|
||||||
{ "gsc", [this](int fd) { dumpGscSection(fd); } },
|
{ "gsc", [this](int fd) { dumpGscSection(fd); } },
|
||||||
{ "trusty", [this](int fd) { dumpTrustySection(fd); } },
|
{ "trusty", [this](int fd) { dumpTrustySection(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); } },
|
||||||
|
@ -1308,6 +1309,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) {
|
||||||
|
|
|
@ -70,6 +70,7 @@ class Dumpstate : public BnDumpstateDevice {
|
||||||
void dumpGscSection(int fd);
|
void dumpGscSection(int fd);
|
||||||
void dumpTrustySection(int fd);
|
void dumpTrustySection(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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue