From: Colin Cross Date: Fri, 13 Dec 2013 22:24:47 +0000 (-0800) Subject: ion: add free list size to heap debug files X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2540c73a5bf068b8c1c092fc3ce63c62ba949371;p=linux-beck.git ion: add free list size to heap debug files Signed-off-by: Colin Cross [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 38d65c2b296a..93b84a9b45f4 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -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)