mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
dumpstate: Collect PCIe link stats [DO NOT MERGE]
Collect PCIe link statistics in dumpstate.
DO NOT MERGE because the same functionality is already
implemented in dump_pcie.sh in upstream branches.
Test: adb bugreport && unzip bugreport*.zip &&
grep link_stats dumpstate_board.txt
Bug: 266561593
Change-Id: I5b530b68f8c8cd6ed2bc5016d5aef55c3caafbd8
Signed-off-by: Doug Zobel <zobel@google.com>
This commit is contained in:
@@ -1210,6 +1210,10 @@ void Dumpstate::dumpLEDSection(int fd) {
|
||||
void Dumpstate::dumpPCIeSection(int fd) {
|
||||
DumpFileToFd(fd, "PCIe0 Logs", "/dev/logbuffer_pcie0");
|
||||
DumpFileToFd(fd, "PCIe1 Logs", "/dev/logbuffer_pcie1");
|
||||
RunCommandToFd(fd, "PCIe Link Statistics", {"/vendor/bin/sh", "-c",
|
||||
"for f in ls /sys/devices/platform/14520000.pcie/link_stats/* "
|
||||
" /sys/devices/platform/11920000.pcie/link_stats/*; do "
|
||||
" echo \"$f: `cat $f`\"; done"});
|
||||
}
|
||||
|
||||
void Dumpstate::dumpModemSection(int fd) {
|
||||
|
||||
Reference in New Issue
Block a user