.. | .. |
---|
4 | 4 | -fsanitize=undefined |
---|
5 | 5 | LDFLAGS += -fsanitize=address -fsanitize=undefined |
---|
6 | 6 | 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 |
---|
9 | 9 | 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 |
---|
11 | 12 | |
---|
12 | 13 | ifndef SHIFT |
---|
13 | 14 | SHIFT=3 |
---|
.. | .. |
---|
25 | 26 | idr-test.o: ../../../lib/test_ida.c |
---|
26 | 27 | idr-test: idr-test.o $(CORE_OFILES) |
---|
27 | 28 | |
---|
| 29 | +xarray: $(CORE_OFILES) |
---|
| 30 | + |
---|
28 | 31 | multiorder: multiorder.o $(CORE_OFILES) |
---|
29 | 32 | |
---|
30 | 33 | clean: |
---|
.. | .. |
---|
35 | 38 | $(OFILES): Makefile *.h */*.h generated/map-shift.h \ |
---|
36 | 39 | ../../include/linux/*.h \ |
---|
37 | 40 | ../../include/asm/*.h \ |
---|
| 41 | + ../../../include/linux/xarray.h \ |
---|
38 | 42 | ../../../include/linux/radix-tree.h \ |
---|
39 | 43 | ../../../include/linux/idr.h |
---|
40 | 44 | |
---|
.. | .. |
---|
44 | 48 | idr.c: ../../../lib/idr.c |
---|
45 | 49 | sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@ |
---|
46 | 50 | |
---|
| 51 | +xarray.o: ../../../lib/xarray.c ../../../lib/test_xarray.c |
---|
| 52 | + |
---|
47 | 53 | generated/map-shift.h: |
---|
48 | 54 | @if ! grep -qws $(SHIFT) generated/map-shift.h; then \ |
---|
49 | | - echo "#define RADIX_TREE_MAP_SHIFT $(SHIFT)" > \ |
---|
| 55 | + echo "#define XA_CHUNK_SHIFT $(SHIFT)" > \ |
---|
50 | 56 | generated/map-shift.h; \ |
---|
51 | 57 | fi |
---|