hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/testing/radix-tree/Makefile
....@@ -4,10 +4,11 @@
44 -fsanitize=undefined
55 LDFLAGS += -fsanitize=address -fsanitize=undefined
66 LDLIBS+= -lpthread -lurcu
7
-TARGETS = main idr-test multiorder
8
-CORE_OFILES := radix-tree.o idr.o linux.o test.o find_bit.o
7
+TARGETS = main idr-test multiorder xarray
8
+CORE_OFILES := xarray.o radix-tree.o idr.o linux.o test.o find_bit.o bitmap.o
99 OFILES = main.o $(CORE_OFILES) regression1.o regression2.o regression3.o \
10
- tag_check.o multiorder.o idr-test.o iteration_check.o benchmark.o
10
+ regression4.o tag_check.o multiorder.o idr-test.o iteration_check.o \
11
+ iteration_check_2.o benchmark.o
1112
1213 ifndef SHIFT
1314 SHIFT=3
....@@ -25,6 +26,8 @@
2526 idr-test.o: ../../../lib/test_ida.c
2627 idr-test: idr-test.o $(CORE_OFILES)
2728
29
+xarray: $(CORE_OFILES)
30
+
2831 multiorder: multiorder.o $(CORE_OFILES)
2932
3033 clean:
....@@ -35,6 +38,7 @@
3538 $(OFILES): Makefile *.h */*.h generated/map-shift.h \
3639 ../../include/linux/*.h \
3740 ../../include/asm/*.h \
41
+ ../../../include/linux/xarray.h \
3842 ../../../include/linux/radix-tree.h \
3943 ../../../include/linux/idr.h
4044
....@@ -44,8 +48,10 @@
4448 idr.c: ../../../lib/idr.c
4549 sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@
4650
51
+xarray.o: ../../../lib/xarray.c ../../../lib/test_xarray.c
52
+
4753 generated/map-shift.h:
4854 @if ! grep -qws $(SHIFT) generated/map-shift.h; then \
49
- echo "#define RADIX_TREE_MAP_SHIFT $(SHIFT)" > \
55
+ echo "#define XA_CHUNK_SHIFT $(SHIFT)" > \
5056 generated/map-shift.h; \
5157 fi