Merge "create an empty dump for wlan"
This commit is contained in:
commit
eeb47d0d4e
6 changed files with 13 additions and 11 deletions
|
@ -24,6 +24,8 @@ include device/google/gs-common/trusty/trusty.mk
|
||||||
include device/google/gs-common/storage/storage.mk
|
include device/google/gs-common/storage/storage.mk
|
||||||
include device/google/gs-common/thermal/thermal.mk
|
include device/google/gs-common/thermal/thermal.mk
|
||||||
|
|
||||||
|
include device/google/zuma/dumpstate/item.mk
|
||||||
|
|
||||||
ifneq ($(BOARD_WITHOUT_RADIO),true)
|
ifneq ($(BOARD_WITHOUT_RADIO),true)
|
||||||
include device/google/gs-common/gps/brcm/device.mk
|
include device/google/gs-common/gps/brcm/device.mk
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -2,6 +2,13 @@ package {
|
||||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sh_binary {
|
||||||
|
name: "dump_wlan.sh",
|
||||||
|
src: "dump_wlan.sh",
|
||||||
|
vendor: true,
|
||||||
|
sub_dir: "dump",
|
||||||
|
}
|
||||||
|
|
||||||
cc_binary {
|
cc_binary {
|
||||||
name: "android.hardware.dumpstate-service.zuma",
|
name: "android.hardware.dumpstate-service.zuma",
|
||||||
srcs: [
|
srcs: [
|
||||||
|
|
|
@ -221,7 +221,6 @@ void endSection(int fd, const std::string §ionName, timepoint_t startTime) {
|
||||||
|
|
||||||
Dumpstate::Dumpstate()
|
Dumpstate::Dumpstate()
|
||||||
: mTextSections{
|
: mTextSections{
|
||||||
{ "wlan", [this](int fd) { dumpWlanSection(fd); } },
|
|
||||||
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
||||||
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
|
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
|
||||||
{ "power", [this](int fd) { dumpPowerSection(fd); } },
|
{ "power", [this](int fd) { dumpPowerSection(fd); } },
|
||||||
|
@ -296,15 +295,6 @@ void Dumpstate::dumpTextSection(int fd, const std::string §ionName) {
|
||||||
"not avalable from the command line.\n", fd);
|
"not avalable from the command line.\n", fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump items related to wlan
|
|
||||||
void Dumpstate::dumpWlanSection(int fd) {
|
|
||||||
RunCommandToFd(fd, "WLAN Debug Dump", {"/vendor/bin/sh", "-c",
|
|
||||||
"cat /sys/wifi/dump_start"});
|
|
||||||
|
|
||||||
// Dump firmware symbol table for firmware log decryption
|
|
||||||
DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dump items related to power and battery
|
// Dump items related to power and battery
|
||||||
void Dumpstate::dumpPowerSection(int fd) {
|
void Dumpstate::dumpPowerSection(int fd) {
|
||||||
struct stat buffer;
|
struct stat buffer;
|
||||||
|
|
|
@ -52,7 +52,6 @@ class Dumpstate : public BnDumpstateDevice {
|
||||||
|
|
||||||
// Text sections that can be dumped individually on the command line in
|
// Text sections that can be dumped individually on the command line in
|
||||||
// addition to being included in full dumps
|
// addition to being included in full dumps
|
||||||
void dumpWlanSection(int fd);
|
|
||||||
void dumpPowerSection(int fd);
|
void dumpPowerSection(int fd);
|
||||||
void dumpDevfreqSection(int fd);
|
void dumpDevfreqSection(int fd);
|
||||||
void dumpMemorySection(int fd);
|
void dumpMemorySection(int fd);
|
||||||
|
|
3
dumpstate/dump_wlan.sh
Normal file
3
dumpstate/dump_wlan.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/vendor/bin/sh
|
||||||
|
echo "--- wlan WIP ---"
|
||||||
|
|
1
dumpstate/item.mk
Normal file
1
dumpstate/item.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
PRODUCT_PACKAGES += dump_wlan.sh
|
Loading…
Add table
Add a link
Reference in a new issue