[DO NOT MERGE] gs201:dumpstate: Dump long irq metrics, resume latency metrics at bugreport am: ead189b0f8

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

Change-Id: I68d5f482975fdb93dd384615d6c0c1683857803e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ziyi Cui 2022-12-01 07:03:18 +00:00 committed by Automerger Merge Worker
commit 7eb65a1c13
2 changed files with 7 additions and 0 deletions

View file

@ -243,6 +243,7 @@ Dumpstate::Dumpstate()
{ "trusty", [this](int fd) { dumpTrustySection(fd); } },
{ "led", [this](int fd) { dumpLEDSection(fd); } },
{ "pixel-trace", [this](int fd) { dumpPixelTraceSection(fd); } },
{ "perf-metrics", [this](int fd) { dumpPerfMetricsSection(fd); } },
},
mLogSections{
{ "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } },
@ -1320,6 +1321,11 @@ void Dumpstate::dumpPixelTraceSection(int fd) {
DumpFileToFd(fd, "Pixel trace", "/sys/kernel/tracing/instances/pixel/trace");
}
void Dumpstate::dumpPerfMetricsSection(int fd) {
DumpFileToFd(fd, "Long running IRQ metrics", "/sys/kernel/metrics/irq/long_irq_metrics");
DumpFileToFd(fd, "Resume latency metrics", "/sys/kernel/metrics/resume_latency/resume_latency_metrics");
}
ndk::ScopedAStatus Dumpstate::dumpstateBoard(const std::vector<::ndk::ScopedFileDescriptor>& in_fds,
IDumpstateDevice::DumpstateMode in_mode,
int64_t in_timeoutMillis) {

View file

@ -71,6 +71,7 @@ class Dumpstate : public BnDumpstateDevice {
void dumpTrustySection(int fd);
void dumpLEDSection(int fd);
void dumpPixelTraceSection(int fd);
void dumpPerfMetricsSection(int fd);
void dumpLogSection(int fd, int fdModem);