summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/SNIP/2dlife.c
AgeCommit message (Expand)AuthorFilesLines
2008-01-27Initial import (2.0.2-6)2.0.2-6Tobias Klauser1-0/+111
class='commit-info'> authorRoss Zwisler <ross.zwisler@linux.intel.com>2016-05-20 17:02:41 -0700 committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-20 17:58:30 -0700 commit0fc9b8ca2b1df4948e9516697b1cf12f030968bd (patch) tree393afccfdb25692b9b12b53ab6c471de430edf49 parent4589ba6d0f439e4673830fdc65099179832ddde5 (diff)
radix-tree test suite: add multi-order tag test
Add a generic test for multi-order tag verification, and call it using several different configurations. This test creates a multi-order radix tree using the given index and order, and then sets, checks and clears tags using the indices covered by the single multi-order radix tree entry. With the various calls done by this test we verify root multi-order entries without siblings, multi-order entries without siblings in a radix tree node, as well as multi-order entries with siblings of various sizes. Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Cc: Konstantin Khlebnikov <koct9i@gmail.com> Cc: Kirill Shutemov <kirill.shutemov@linux.intel.com> Cc: Jan Kara <jack@suse.com> Cc: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat
-rw-r--r--tools/testing/radix-tree/multiorder.c97
1 files changed, 97 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/multiorder.c b/tools/testing/radix-tree/multiorder.c