mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
lib/test_maple_tree: add testing for maple tree
This is a test suite that uses the radix test infrastructure. It has been split into its own commit to allow for easier review of the maple tree code. Link: https://lkml.kernel.org/r/20220504010716.661115-9-Liam.Howlett@oracle.com Link: https://lkml.kernel.org/r/20220511144304.1430851-3-Liam.Howlett@oracle.com Link: https://lkml.kernel.org/r/20220615141921.417598-4-Liam.Howlett@oracle.com Link: https://lkml.kernel.org/r/20220621204632.3370049-8-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: David Howells <dhowells@redhat.com> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org> Cc: SeongJae Park <sj@kernel.org> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Will Deacon <will@kernel.org> Cc: Davidlohr Bueso <dave@stgolabs.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
3fe3bd1843
commit
209e6c246b
38186
lib/test_maple_tree.c
Normal file
38186
lib/test_maple_tree.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -4,9 +4,9 @@ CFLAGS += -I. -I../../include -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address \
|
||||
-fsanitize=undefined
|
||||
LDFLAGS += -fsanitize=address -fsanitize=undefined
|
||||
LDLIBS+= -lpthread -lurcu
|
||||
TARGETS = main idr-test multiorder xarray
|
||||
TARGETS = main idr-test multiorder xarray maple
|
||||
CORE_OFILES := xarray.o radix-tree.o idr.o linux.o test.o find_bit.o bitmap.o \
|
||||
slab.o
|
||||
slab.o maple.o
|
||||
OFILES = main.o $(CORE_OFILES) regression1.o regression2.o regression3.o \
|
||||
regression4.o tag_check.o multiorder.o idr-test.o iteration_check.o \
|
||||
iteration_check_2.o benchmark.o
|
||||
@ -29,6 +29,8 @@ idr-test: idr-test.o $(CORE_OFILES)
|
||||
|
||||
xarray: $(CORE_OFILES)
|
||||
|
||||
maple: $(CORE_OFILES)
|
||||
|
||||
multiorder: multiorder.o $(CORE_OFILES)
|
||||
|
||||
clean:
|
||||
@ -40,6 +42,7 @@ $(OFILES): Makefile *.h */*.h generated/map-shift.h \
|
||||
../../include/linux/*.h \
|
||||
../../include/asm/*.h \
|
||||
../../../include/linux/xarray.h \
|
||||
../../../include/linux/maple_tree.h \
|
||||
../../../include/linux/radix-tree.h \
|
||||
../../../include/linux/idr.h
|
||||
|
||||
@ -51,6 +54,8 @@ idr.c: ../../../lib/idr.c
|
||||
|
||||
xarray.o: ../../../lib/xarray.c ../../../lib/test_xarray.c
|
||||
|
||||
maple.o: ../../../lib/maple_tree.c ../../../lib/test_maple_tree.c
|
||||
|
||||
generated/map-shift.h:
|
||||
@if ! grep -qws $(SHIFT) generated/map-shift.h; then \
|
||||
echo "#define XA_CHUNK_SHIFT $(SHIFT)" > \
|
||||
|
Loading…
Reference in New Issue
Block a user