linux/drivers/android
Sherry Yang 4175e2b46f android: binder: Add allocator selftest
binder_alloc_selftest tests that alloc_new_buf handles page allocation and
deallocation properly when allocate and free buffers. The test allocates 5
buffers of various sizes to cover all possible page alignment cases, and
frees the buffers using a list of exhaustive freeing order.

Test: boot the device with ANDROID_BINDER_IPC_SELFTEST config option
enabled. Allocator selftest passes.

Signed-off-by: Sherry Yang <sherryy@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-28 16:47:17 +02:00
..
binder_alloc_selftest.c android: binder: Add allocator selftest 2017-08-28 16:47:17 +02:00
binder_alloc.c android: binder: Refactor prev and next buffer into a helper function 2017-08-28 16:47:17 +02:00
binder_alloc.h android: binder: Add allocator selftest 2017-08-28 16:47:17 +02:00
binder_trace.h binder: refactor binder ref inc/dec for thread safety 2017-07-17 14:48:23 +02:00
binder.c android: binder: Add allocator selftest 2017-08-28 16:47:17 +02:00
Kconfig android: binder: Add allocator selftest 2017-08-28 16:47:17 +02:00
Makefile android: binder: Add allocator selftest 2017-08-28 16:47:17 +02:00