path: root/tools/testing/radix-tree
diff options
authorRoss Zwisler <>2016-05-20 17:02:55 -0700
committerLinus Torvalds <>2016-05-20 17:58:30 -0700
commit0796c58325533f87c00949a545eb607baa8441cb (patch)
treee78de9ca122816731b9d32dfad4cc0ccf034d678 /tools/testing/radix-tree
parent070c5ac2740b5db89d381a09fb03b2480b2f7a74 (diff)
radix-tree: fix radix_tree_dump() for multi-order entries
- Print which indices are covered by every leaf entry - Print sibling entries - Print the node pointer instead of the slot entry - Build by default in userspace, and make it accessible to the test-suite Signed-off-by: Ross Zwisler <> Signed-off-by: Matthew Wilcox <> Cc: Konstantin Khlebnikov <> Cc: Kirill Shutemov <> Cc: Jan Kara <> Cc: Neil Brown <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'tools/testing/radix-tree')
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/test.h b/tools/testing/radix-tree/test.h
index 53cb595db44a..67217c93fe95 100644
--- a/tools/testing/radix-tree/test.h
+++ b/tools/testing/radix-tree/test.h
@@ -40,5 +40,6 @@ extern int nr_allocated;
/* Normally private parts of lib/radix-tree.c */
void *indirect_to_ptr(void *ptr);
+void radix_tree_dump(struct radix_tree_root *root);
int root_tag_get(struct radix_tree_root *root, unsigned int tag);
unsigned long radix_tree_maxindex(unsigned int height);