On 11/05/2018 07:57, Roman Kagan wrote:
Should radix-tree be compilable in userspace, so that we can add unit tests for it?...
Good point.
For my education, what/where are the tests that run as user-space code?
Actually there are userspace tests for it under tools/tests/radix-tree, but I didn't manage to get them to build. Looks like the recent introduction of a spin_lock in the radix_tree structure (for XArray work?) broke them.
Oh cool, at least it means it was a good suggestion. :)
Paolo