-
- Downloads
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.
Bug: 36007193
Change-Id: If21dd645ff0fec4bcfc12f1254b4d9b7520ce936
Signed-off-by:
Sherry Yang <sherryy@android.com>
Showing
- drivers/staging/android/Kconfig 10 additions, 0 deletionsdrivers/staging/android/Kconfig
- drivers/staging/android/Makefile 1 addition, 0 deletionsdrivers/staging/android/Makefile
- drivers/staging/android/binder.c 2 additions, 0 deletionsdrivers/staging/android/binder.c
- drivers/staging/android/binder_alloc.c 0 additions, 2 deletionsdrivers/staging/android/binder_alloc.c
- drivers/staging/android/binder_alloc.h 7 additions, 0 deletionsdrivers/staging/android/binder_alloc.h
- drivers/staging/android/binder_alloc_selftest.c 270 additions, 0 deletionsdrivers/staging/android/binder_alloc_selftest.c
Loading
Please register or sign in to comment