maple_tree: reorganize testing to restore module testing
authorLiam Howlett <liam.howlett@oracle.com>
Fri, 28 Oct 2022 18:04:30 +0000 (18:04 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 8 Nov 2022 23:57:22 +0000 (15:57 -0800)
commit120b116208a0877227fc82e3f0df81e7a3ed4ab1
tree5a10a0b015449fbb0771716c642f8299bb11baec
parent9a887877ef981e5a185a84339603300cf2eb1900
maple_tree: reorganize testing to restore module testing

Along the development cycle, the testing code support for module/in-kernel
compiles was removed.  Restore this functionality by moving any internal
API tests to the userspace side, as well as threading tests.  Fix the
lockdep issues and add a way to reduce memory usage so the tests can
complete with KASAN + memleak detection.  Make the tests work on 32 bit
hosts where possible and detect 32 bit hosts in the radix test suite.

[akpm@linux-foundation.org: fix module export]
[akpm@linux-foundation.org: fix it some more]
[liam.howlett@oracle.com: fix compile warnings on 32bit build in check_find()]
Link: https://lkml.kernel.org/r/20221107203816.1260327-1-Liam.Howlett@oracle.com
Link: https://lkml.kernel.org/r/20221028180415.3074673-1-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/maple_tree.h
lib/Kconfig.debug
lib/Makefile
lib/maple_tree.c
lib/test_maple_tree.c
tools/testing/radix-tree/.gitignore
tools/testing/radix-tree/Makefile
tools/testing/radix-tree/generated/autoconf.h
tools/testing/radix-tree/linux.c
tools/testing/radix-tree/maple.c