]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbtree: performance and correctness test
authorMichel Lespinasse <walken@google.com>
Tue, 14 Aug 2012 03:22:40 +0000 (13:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 24 Aug 2012 06:43:52 +0000 (16:43 +1000)
commit2b32ebd2e6cb1065ab8446349d0d0870b4980e7d
tree5d16da35831fb2aebbf1de99564ef1e05ccbc538
parent11ecca0f4724b8b6868a479aea56e18d190644a4
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]