Commit 2540c73a authored by Colin Cross's avatar Colin Cross Committed by Greg Kroah-Hartman

ion: add free list size to heap debug files

Signed-off-by: default avatarColin Cross <ccross@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ea89faff
...@@ -1286,6 +1286,9 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused) ...@@ -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", seq_printf(s, "%16.s %16u\n", "total orphaned",
total_orphaned_size); total_orphaned_size);
seq_printf(s, "%16.s %16u\n", "total ", total_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"); seq_printf(s, "----------------------------------------------------\n");
if (heap->debug_show) if (heap->debug_show)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment