Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73df28c0 authored by Sherry Yang's avatar Sherry Yang
Browse files

FROMLIST: android: binder: Add allocator selftest

(from https://patchwork.kernel.org/patch/9928609/

)

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: I2fe396232b7dfe4bbc50bdba99ca0de9be63cc37
Signed-off-by: default avatarSherry Yang <sherryy@android.com>
parent 0d513e93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment