[DO NOT MERGE] gs101:dumpstate: Dump long irq metrics, resume latency metrics at bugreport am: b9fd6571c1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20590798 Change-Id: Ibf17f3730d3996004eb2065111adccb9028d40a8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
6f0ec9f01e
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