diff options
author | Sunil Ravi <sunilravi@google.com> | 2018-11-14 22:41:55 -0800 |
---|---|---|
committer | Sunil Ravi <sunilravi@google.com> | 2018-12-13 19:00:11 -0800 |
commit | 292ab9f414afde5006cb010b3f92c7dfaca93966 (patch) | |
tree | cd3e0d89bb43a8af3eef2ae64812bbb5085c6d7e | |
parent | 2e2b5cb006e2bcd181f47d652662c8ee7e10866b (diff) | |
download | crosshatch-292ab9f414afde5006cb010b3f92c7dfaca93966.tar.gz |
WiFi: Add WiFi Debug info in dumpstate_board.txt
Add below Wifi stats to bugreport:dumpstate_board.txt file.
1. DP trace from /d/wlan/dpt_stats/dump_set_dpt_logs
2. Connect info from /d/wlan0/connect_info
2. Offload info from /d/wlan0/offload_info
2. Roaming stats from /d/wlan0/roam_stats
Bug: 118484169
Test: collected bug report and verified newly added stats
in dumpstate_board.txt
Change-Id: I1ccccd1d86b091417beb168b4b1ae17a0cdb3cab
-rwxr-xr-x | dumpstate/DumpstateDevice.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 94538c6e..b595ab55 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -309,6 +309,9 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) { DumpFileToFd(fd, "Power Management Stats", "/sys/power/rpmh_stats/master_stats"); DumpFileToFd(fd, "WLAN Power Stats", "/d/wlan0/power_stats"); DumpFileToFd(fd, "LL-Stats", "/d/wlan0/ll_stats"); + DumpFileToFd(fd, "WLAN Connect Info", "/d/wlan0/connect_info"); + DumpFileToFd(fd, "WLAN Offload Info", "/d/wlan0/offload_info"); + DumpFileToFd(fd, "WLAN Roaming Stats", "/d/wlan0/roam_stats"); DumpFileToFd(fd, "ICNSS Stats", "/d/icnss/stats"); DumpFileToFd(fd, "SMD Log", "/d/ipc_logging/smd/log"); RunCommandToFd(fd, "ION HEAPS", {"/vendor/bin/sh", "-c", "for d in $(ls -d /d/ion/*); do for f in $(ls $d); do echo --- $d/$f; cat $d/$f; done; done"}); @@ -354,6 +357,9 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) { RunCommandToFd(fd, "Citadel SELFTEST", {"/vendor/bin/hw/citadel_updater", "--selftest"}); } + // Dump various events in WiFi data path + DumpFileToFd(fd, "WLAN DP Trace", "/d/wlan/dpt_stats/dump_set_dpt_logs"); + // Keep this at the end as very long on not for humans DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc"); |