diff options
author | JP Abgrall <jpa@google.com> | 2011-09-19 22:29:18 -0700 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2011-09-19 22:29:26 -0700 |
commit | 20e93c0507b66e697d23c58c138484d652a1b810 (patch) | |
tree | 542febb60578c69afe91c9a77e18885e7a87b9fa /cmds/dumpstate | |
parent | 88b18eb8c2034e9de35482cc737ef8d608d55867 (diff) | |
download | frameworks_base-20e93c0507b66e697d23c58c138484d652a1b810.zip frameworks_base-20e93c0507b66e697d23c58c138484d652a1b810.tar.gz frameworks_base-20e93c0507b66e697d23c58c138484d652a1b810.tar.bz2 |
dumpstate: collect /proc/net/dev and /proc/net/xt_qtaguid/iface_stat_all
Add extra network interface statistics.
Bug:5322407
Change-Id: I9441b2ca2517d8380b2c9f5bb5bd077a48438d04
Signed-off-by: JP Abgrall <jpa@google.com>
Diffstat (limited to 'cmds/dumpstate')
-rw-r--r-- | cmds/dumpstate/dumpstate.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c index 0b08c5e..7460b48 100644 --- a/cmds/dumpstate/dumpstate.c +++ b/cmds/dumpstate/dumpstate.c @@ -81,8 +81,6 @@ static void dumpstate() { dump_file("ZONEINFO", "/proc/zoneinfo"); dump_file("PAGETYPEINFO", "/proc/pagetypeinfo"); dump_file("BUDDYINFO", "/proc/buddyinfo"); - dump_file("QTAGUID CTRL INFO", "/proc/net/xt_qtaguid/ctrl"); - run_command("QTAGUID STATS INFO", 10, "su", "root", "cat", "/proc/net/xt_qtaguid/stats", NULL); if (screenshot_path[0]) { LOGI("taking screenshot\n"); @@ -114,6 +112,11 @@ static void dumpstate() { run_command("RADIO LOG", 20, "logcat", "-b", "radio", "-v", "threadtime", "-d", "*:v", NULL); run_command("NETWORK INTERFACES", 10, "su", "root", "netcfg", NULL); + dump_file("NETWORK DEV INFO", "/proc/net/dev"); + dump_file("QTAGUID NETWORK INTERFACES INFO", "/proc/net/xt_qtaguid/iface_stat_all"); + dump_file("QTAGUID CTRL INFO", "/proc/net/xt_qtaguid/ctrl"); + run_command("QTAGUID STATS INFO", 10, "su", "root", "cat", "/proc/net/xt_qtaguid/stats", NULL); + dump_file("NETWORK ROUTES", "/proc/net/route"); dump_file("NETWORK ROUTES IPV6", "/proc/net/ipv6_route"); dump_file("ARP CACHE", "/proc/net/arp"); |