summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-10-28 22:41:06 -0700
committerColin Cross <ccross@android.com>2012-10-28 22:41:06 -0700
commit2281af967dd840aade7bc55b19ea7df0e6da36f2 (patch)
tree6bb85bfa7eb13842fe12ab1dd3a194e86b3f3e74
parentf45c510009edab4a3e93f8d66b2e30aa26759fed (diff)
downloadframeworks_native-2281af967dd840aade7bc55b19ea7df0e6da36f2.zip
frameworks_native-2281af967dd840aade7bc55b19ea7df0e6da36f2.tar.gz
frameworks_native-2281af967dd840aade7bc55b19ea7df0e6da36f2.tar.bz2
dumpstate: add kernel memory fragmentation unusable index
Dump /d/extfrag/unusable_index in bugreports. It shows the percentage of memory in each zone that is not available for allocations for each order. Change-Id: I2af6680cb609887ea7b3d6107d1aa88bd0206b52
-rw-r--r--cmds/dumpstate/dumpstate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index ef5c2e9..f3fcca0 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -85,6 +85,7 @@ static void dumpstate() {
dump_file("ZONEINFO", "/proc/zoneinfo");
dump_file("PAGETYPEINFO", "/proc/pagetypeinfo");
dump_file("BUDDYINFO", "/proc/buddyinfo");
+ dump_file("FRAGMENTATION INFO", "/d/extfrag/unusable_index");
dump_file("KERNEL WAKELOCKS", "/proc/wakelocks");