ion: add free list size to heap debug files
authorColin Cross <ccross@android.com>
Wed, 14 Aug 2013 21:10:19 +0000 (14:10 -0700)
committerColin Cross <ccross@android.com>
Fri, 20 Sep 2013 04:03:31 +0000 (23:03 -0500)
Change-Id: I3c6309afdbd661a2f870fd1ba3fea9543e229882
Signed-off-by: Colin Cross <ccross@android.com>
drivers/gpu/ion/ion.c

index dbe5bbce6a54aca4f6716ea20dbb801a24246b76..48652ddd49489a15c9700568869e9ab87084b555 100644 (file)
@@ -1286,6 +1286,9 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused)
        seq_printf(s, "%16.s %16u\n", "total orphaned",
                   total_orphaned_size);
        seq_printf(s, "%16.s %16u\n", "total ", total_size);
+       if (heap->flags & ION_HEAP_FLAG_DEFER_FREE)
+               seq_printf(s, "%16.s %16u\n", "deferred free",
+                               heap->free_list_size);
        seq_printf(s, "----------------------------------------------------\n");
 
        if (heap->debug_show)