summaryrefslogtreecommitdiffstats
path: root/drivers/android/Makefile
diff options
context:
space:
mode:
authorSherry Yang2017-08-23 17:46:40 +0200
committerGreg Kroah-Hartman2017-08-28 16:47:17 +0200
commit4175e2b46fd4b9021ef81f18f1be9474b2f45d4a (patch)
treef71d84f71001cecc96563950400c15f609375619 /drivers/android/Makefile
parentandroid: binder: Refactor prev and next buffer into a helper function (diff)
downloadkernel-qcow2-linux-4175e2b46fd4b9021ef81f18f1be9474b2f45d4a.tar.gz
kernel-qcow2-linux-4175e2b46fd4b9021ef81f18f1be9474b2f45d4a.tar.xz
kernel-qcow2-linux-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 <sherryy@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android/Makefile')
-rw-r--r--drivers/android/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/android/Makefile b/drivers/android/Makefile
index 4b7c726bb560..a01254c43ee3 100644
--- a/drivers/android/Makefile
+++ b/drivers/android/Makefile
@@ -1,3 +1,4 @@
ccflags-y += -I$(src) # needed for trace events
obj-$(CONFIG_ANDROID_BINDER_IPC) += binder.o binder_alloc.o
+obj-$(CONFIG_ANDROID_BINDER_IPC_SELFTEST) += binder_alloc_selftest.o