rbtree test: show tree rbtree
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 22 Mar 2010 19:09:44 +0000 (15:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 22 Mar 2010 19:09:44 +0000 (15:09 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_rbtree.c

index 405c0dad360cf667cc26c6ebbc4843010836fa8c..300e73816b2c4ba7cd826e59d160bc7bdbe494d4 100644 (file)
@@ -42,7 +42,7 @@
 #define NR_CPUS 16384
 
 /* number of insert/delete */
-#define NR_RAND 3
+#define NR_RAND 4
 
 #if defined(_syscall0)
 _syscall0(pid_t, gettid)
@@ -277,6 +277,13 @@ void *thr_writer(void *_count)
                if (unlikely(wduration))
                        loop_sleep(wduration);
 
+               node = rcu_rbtree_min(rbtree_root, tree_comp);
+               while (node != &rcu_rbtree_nil) {
+                       printf("0x%lX ", (unsigned long)node->key);
+                       node = rcu_rbtree_next(node, tree_comp);
+               }
+               printf("\n");
+
                for (i = 0; i < NR_RAND; i++) {
                        node = rcu_rbtree_search(rbtree_root, key[i],
                                                 tree_comp);
This page took 0.025993 seconds and 4 git commands to generate.