radix tree test harness
This code is mostly from Andrew Morton and Nick Piggin; tarball downloaded from http://ozlabs.org/~akpm/rtth.tar.gz with sha1sum 0ce679db9ec047296b5d1ff7a1dfaa03a7bef1bd Some small modifications were necessary to the test harness to fix the build with the current Linux source code. I also made minor modifications to automatically test the radix-tree.c and radix-tree.h files that are in the current source tree, as opposed to a copied and slightly modified version. I am sure more could be done to tidy up the harness, as well as adding more tests. [koct9i@gmail.com: fix compilation] Signed-off-by:Matthew Wilcox <willy@linux.intel.com> Cc: Shuah Khan <shuahkh@osg.samsung.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Matthew Wilcox <willy@linux.intel.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by:
Konstantin Khlebnikov <koct9i@gmail.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- tools/testing/radix-tree/.gitignore 2 additions, 0 deletionstools/testing/radix-tree/.gitignore
- tools/testing/radix-tree/Makefile 19 additions, 0 deletionstools/testing/radix-tree/Makefile
- tools/testing/radix-tree/find_next_bit.c 57 additions, 0 deletionstools/testing/radix-tree/find_next_bit.c
- tools/testing/radix-tree/linux.c 60 additions, 0 deletionstools/testing/radix-tree/linux.c
- tools/testing/radix-tree/linux/bitops.h 150 additions, 0 deletionstools/testing/radix-tree/linux/bitops.h
- tools/testing/radix-tree/linux/bitops/__ffs.h 43 additions, 0 deletionstools/testing/radix-tree/linux/bitops/__ffs.h
- tools/testing/radix-tree/linux/bitops/ffs.h 41 additions, 0 deletionstools/testing/radix-tree/linux/bitops/ffs.h
- tools/testing/radix-tree/linux/bitops/ffz.h 12 additions, 0 deletionstools/testing/radix-tree/linux/bitops/ffz.h
- tools/testing/radix-tree/linux/bitops/find.h 13 additions, 0 deletionstools/testing/radix-tree/linux/bitops/find.h
- tools/testing/radix-tree/linux/bitops/fls.h 41 additions, 0 deletionstools/testing/radix-tree/linux/bitops/fls.h
- tools/testing/radix-tree/linux/bitops/fls64.h 14 additions, 0 deletionstools/testing/radix-tree/linux/bitops/fls64.h
- tools/testing/radix-tree/linux/bitops/hweight.h 11 additions, 0 deletionstools/testing/radix-tree/linux/bitops/hweight.h
- tools/testing/radix-tree/linux/bitops/le.h 53 additions, 0 deletionstools/testing/radix-tree/linux/bitops/le.h
- tools/testing/radix-tree/linux/bitops/non-atomic.h 111 additions, 0 deletionstools/testing/radix-tree/linux/bitops/non-atomic.h
- tools/testing/radix-tree/linux/bug.h 1 addition, 0 deletionstools/testing/radix-tree/linux/bug.h
- tools/testing/radix-tree/linux/cpu.h 34 additions, 0 deletionstools/testing/radix-tree/linux/cpu.h
- tools/testing/radix-tree/linux/export.h 2 additions, 0 deletionstools/testing/radix-tree/linux/export.h
- tools/testing/radix-tree/linux/gfp.h 10 additions, 0 deletionstools/testing/radix-tree/linux/gfp.h
- tools/testing/radix-tree/linux/kernel.h 34 additions, 0 deletionstools/testing/radix-tree/linux/kernel.h
- tools/testing/radix-tree/linux/kmemleak.h 1 addition, 0 deletionstools/testing/radix-tree/linux/kmemleak.h
Please register or sign in to comment