dumpstate: Add logbuffer support for pcie driver [DO NOT MERGE] am: fd2a8ca06b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21077873 Change-Id: Ib67cfb16aaf28264f4c4b556e2960167369daae7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
aec4604122
3 changed files with 9 additions and 0 deletions
|
@ -479,6 +479,8 @@ on early-boot
|
||||||
chown system system /dev/logbuffer_cpm
|
chown system system /dev/logbuffer_cpm
|
||||||
chown system system /dev/logbuffer_bd
|
chown system system /dev/logbuffer_bd
|
||||||
chown system system /dev/logbuffer_dual_batt
|
chown system system /dev/logbuffer_dual_batt
|
||||||
|
chown system system /dev/logbuffer_pcie0
|
||||||
|
chown system system /dev/logbuffer_pcie1
|
||||||
|
|
||||||
on boot
|
on boot
|
||||||
|
|
||||||
|
|
|
@ -244,6 +244,7 @@ Dumpstate::Dumpstate()
|
||||||
{ "led", [this](int fd) { dumpLEDSection(fd); } },
|
{ "led", [this](int fd) { dumpLEDSection(fd); } },
|
||||||
{ "pixel-trace", [this](int fd) { dumpPixelTraceSection(fd); } },
|
{ "pixel-trace", [this](int fd) { dumpPixelTraceSection(fd); } },
|
||||||
{ "perf-metrics", [this](int fd) { dumpPerfMetricsSection(fd); } },
|
{ "perf-metrics", [this](int fd) { dumpPerfMetricsSection(fd); } },
|
||||||
|
{ "pcie", [this](int fd) { dumpPCIeSection(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); } },
|
||||||
|
@ -1197,6 +1198,11 @@ void Dumpstate::dumpLEDSection(int fd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Dumpstate::dumpPCIeSection(int fd) {
|
||||||
|
DumpFileToFd(fd, "PCIe0 Logs", "/dev/logbuffer_pcie0");
|
||||||
|
DumpFileToFd(fd, "PCIe1 Logs", "/dev/logbuffer_pcie1");
|
||||||
|
}
|
||||||
|
|
||||||
void Dumpstate::dumpModemSection(int fd) {
|
void Dumpstate::dumpModemSection(int fd) {
|
||||||
DumpFileToFd(fd, "Modem Stat", "/data/vendor/modem_stat/debug.txt");
|
DumpFileToFd(fd, "Modem Stat", "/data/vendor/modem_stat/debug.txt");
|
||||||
RunCommandToFd(fd, "Modem SSR history", {"/vendor/bin/sh", "-c",
|
RunCommandToFd(fd, "Modem SSR history", {"/vendor/bin/sh", "-c",
|
||||||
|
|
|
@ -72,6 +72,7 @@ class Dumpstate : public BnDumpstateDevice {
|
||||||
void dumpLEDSection(int fd);
|
void dumpLEDSection(int fd);
|
||||||
void dumpPixelTraceSection(int fd);
|
void dumpPixelTraceSection(int fd);
|
||||||
void dumpPerfMetricsSection(int fd);
|
void dumpPerfMetricsSection(int fd);
|
||||||
|
void dumpPCIeSection(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