[DO NOT MERGE] gs101:dumpstate: Dump long irq metrics, resume latency metrics at bugreport
At the bugreport, capture long irq metrics and resume latency metrics Bug: 227809911 Bug: 232541623 Test: "adb bugreport" includes metrics capture. Change-Id: Ic60cb29b4e58996e7db1dc8fa406b46840ccd446 Signed-off-by: Ziyi Cui <ziyic@google.com>
This commit is contained in:
parent
f57fca197d
commit
b9fd6571c1
2 changed files with 7 additions and 0 deletions
|
@ -270,6 +270,7 @@ DumpstateDevice::DumpstateDevice()
|
||||||
{ "camera", [this](int fd) { dumpCameraSection(fd); } },
|
{ "camera", [this](int fd) { dumpCameraSection(fd); } },
|
||||||
{ "trusty", [this](int fd) { dumpTrustySection(fd); } },
|
{ "trusty", [this](int fd) { dumpTrustySection(fd); } },
|
||||||
{ "modem", [this](int fd) { dumpModemSection(fd); } },
|
{ "modem", [this](int fd) { dumpModemSection(fd); } },
|
||||||
|
{ "perf-metrics", [this](int fd) { dumpPerfMetricsSection(fd); } },
|
||||||
} {
|
} {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1192,6 +1193,11 @@ static void *dumpModemThread(void *data) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DumpstateDevice::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");
|
||||||
|
}
|
||||||
|
|
||||||
// Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow.
|
// Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow.
|
||||||
Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle &handle) {
|
Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle &handle) {
|
||||||
// Ignore return value, just return an empty status.
|
// Ignore return value, just return an empty status.
|
||||||
|
|
|
@ -79,6 +79,7 @@ struct DumpstateDevice : public IDumpstateDevice {
|
||||||
void dumpCameraSection(int fd);
|
void dumpCameraSection(int fd);
|
||||||
void dumpTrustySection(int fd);
|
void dumpTrustySection(int fd);
|
||||||
void dumpModemSection(int fd);
|
void dumpModemSection(int fd);
|
||||||
|
void dumpPerfMetricsSection(int fd);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace implementation
|
} // namespace implementation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue