Loading cmds/dumpstate/Android.mk +6 −2 Original line number Diff line number Diff line Loading @@ -3,6 +3,10 @@ ifneq ($(TARGET_SIMULATOR),true) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) ifdef BOARD_WLAN_DEVICE LOCAL_CFLAGS := -DFWDUMP_$(BOARD_WLAN_DEVICE) endif LOCAL_SRC_FILES := dumpstate.c utils.c LOCAL_MODULE := dumpstate Loading cmds/dumpstate/dumpstate.c +4 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,10 @@ static void dumpstate(int full) { PRINT(""); PRINT("Routes:"); DUMP("/proc/net/route"); #ifdef FWDUMP_bcm4329 PRINT("Dump wlan FW log"); EXEC_XBIN6("su", "root","dhdutil","-i","eth0","upload","/data/local/tmp/wlan_crash.dump"); #endif PRINT("------ SYSTEM PROPERTIES ------"); print_properties(); PRINT("------ KERNEL LOG ------"); Loading cmds/dumpstate/dumpstate.h +9 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,15 @@ run_command(&c, TIMEOUT); \ } #define EXEC_XBIN6(cmd, a1, a2, a3, a4, a5, a6) \ { \ static struct Command c = { \ "/system/xbin/" cmd, \ { cmd, a1, a2, a3, a4, a5, a6, 0 } \ }; \ run_command(&c, TIMEOUT); \ } #define PROPERTY(name) print_property(name) struct Command { Loading Loading
cmds/dumpstate/Android.mk +6 −2 Original line number Diff line number Diff line Loading @@ -3,6 +3,10 @@ ifneq ($(TARGET_SIMULATOR),true) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) ifdef BOARD_WLAN_DEVICE LOCAL_CFLAGS := -DFWDUMP_$(BOARD_WLAN_DEVICE) endif LOCAL_SRC_FILES := dumpstate.c utils.c LOCAL_MODULE := dumpstate Loading
cmds/dumpstate/dumpstate.c +4 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,10 @@ static void dumpstate(int full) { PRINT(""); PRINT("Routes:"); DUMP("/proc/net/route"); #ifdef FWDUMP_bcm4329 PRINT("Dump wlan FW log"); EXEC_XBIN6("su", "root","dhdutil","-i","eth0","upload","/data/local/tmp/wlan_crash.dump"); #endif PRINT("------ SYSTEM PROPERTIES ------"); print_properties(); PRINT("------ KERNEL LOG ------"); Loading
cmds/dumpstate/dumpstate.h +9 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,15 @@ run_command(&c, TIMEOUT); \ } #define EXEC_XBIN6(cmd, a1, a2, a3, a4, a5, a6) \ { \ static struct Command c = { \ "/system/xbin/" cmd, \ { cmd, a1, a2, a3, a4, a5, a6, 0 } \ }; \ run_command(&c, TIMEOUT); \ } #define PROPERTY(name) print_property(name) struct Command { Loading