android: ion: show the list of buffers for debug
authorCho KyongHo <pullip.cho@samsung.com>
Thu, 22 Mar 2018 11:20:41 +0000 (20:20 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:25 +0000 (19:45 +0900)
commitd4feeeb89bfa210091e159773c8175f4a33a7dcf
tree9d58ac7927875f765475f7e00d76aa489994d0b9
parenta7b98659cfed4b219fddfff4863b5e8476de2d9e
android: ion: show the list of buffers for debug

debugfs/ion/buffers shows the list of buffers and the page pools of
ion_system_heap.
Also added an oom notifier to show the list of buffers when OOM Killer
is invoked. It is very useful to see if the OOM is caused by too many
ION buffers.

Change-Id: I1784014099844917ad15901909a9c2c87e23f32f
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/staging/android/ion/Makefile
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion_debug.c [new file with mode: 0644]
drivers/staging/android/ion/ion_exynos.c
drivers/staging/android/ion/ion_exynos.h