diff options
| author | Sherry Yang <[email protected]> | 2017-08-23 15:46:40 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-08-28 14:47:17 +0000 |
| commit | 4175e2b46fd4b9021ef81f18f1be9474b2f45d4a (patch) | |
| tree | f71d84f71001cecc96563950400c15f609375619 /drivers/android/binder_alloc.c | |
| parent | android: binder: Refactor prev and next buffer into a helper function (diff) | |
| download | kernel-4175e2b46fd4b9021ef81f18f1be9474b2f45d4a.tar.gz kernel-4175e2b46fd4b9021ef81f18f1be9474b2f45d4a.zip | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/android/binder_alloc.c')
0 files changed, 0 insertions, 0 deletions
