]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rbtree: performance and correctness test
authorMichel Lespinasse <walken@google.com>
Fri, 21 Sep 2012 00:57:34 +0000 (10:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:58:46 +0000 (15:58 +1000)
commit4c5d6bf6a1876195d6ae0ebb673cdfb289e8d88c
tree89c35afec8e12b536007ee184b80b1efea361c85
parent8276b56add5890f7bcbf6c01a6989aae67130dfd
rbtree: performance and correctness test

This small module helps measure the performance of rbtree insert and
erase.

Additionally, we run a few correctness tests to check that the rbtrees
have all desired properties:

- contains the right number of nodes in the order desired,
- never two consecutive red nodes on any path,
- all paths to leaf nodes have the same number of black nodes,
- root node is black

Signed-off-by: Michel Lespinasse <walken@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Daniel Santos <daniel.santos@pobox.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/Kconfig.debug
lib/Makefile
lib/rbtree_test.c [new file with mode: 0644]