summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-08-24 11:24:33 -0700
committerJP Abgrall <jpa@google.com>2011-08-24 11:28:37 -0700
commit2eb8e3619ee6c5cada7f89f23b06a5de76c3410a (patch)
tree0e744a7085619bd708c2ebdba644d9b2614808f4 /cmds
parentc31c7bcaecfa520bbca1bc364f8d531af76275ea (diff)
downloadframeworks_base-2eb8e3619ee6c5cada7f89f23b06a5de76c3410a.zip
frameworks_base-2eb8e3619ee6c5cada7f89f23b06a5de76c3410a.tar.gz
frameworks_base-2eb8e3619ee6c5cada7f89f23b06a5de76c3410a.tar.bz2
dumpstate: dump qtaguid info, ip6tables info, buddyinfo
This will add around 50-120 lines for qtaguid info and 50-100 for ip6tables. The /proc/buddyinfo is for kernels where /proc/pagetypeinfo is not accurate (ones with more than one memory node, 2.6.35). Change-Id: I7fad53209c706d88e33e5ae824486b84941c02b6
Diffstat (limited to 'cmds')
-rw-r--r--cmds/dumpstate/dumpstate.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 836cf15..0b08c5e 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -80,6 +80,9 @@ static void dumpstate() {
dump_file("SLAB INFO", "/proc/slabinfo");
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,8 +117,10 @@ static void dumpstate() {
dump_file("NETWORK ROUTES", "/proc/net/route");
dump_file("NETWORK ROUTES IPV6", "/proc/net/ipv6_route");
dump_file("ARP CACHE", "/proc/net/arp");
- run_command("IPTABLES", 10, "su", "root", "iptables", "-L", "-n", NULL);
+ run_command("IPTABLES", 10, "su", "root", "iptables", "-L", "-nvx", NULL);
+ run_command("IP6TABLES", 10, "su", "root", "ip6tables", "-L", "-nvx", NULL);
run_command("IPTABLE NAT", 10, "su", "root", "iptables", "-t", "nat", "-L", "-n", NULL);
+ run_command("IPT6ABLE NAT", 10, "su", "root", "ip6tables", "-t", "nat", "-L", "-n", NULL);
run_command("WIFI NETWORKS", 20,
"su", "root", "wpa_cli", "list_networks", NULL);