-
- Downloads
tools: add skeleton code for userland testing of VMA logic
Establish a new userland VMA unit testing implementation under tools/testing which utilises existing logic providing maple tree support in userland utilising the now-shared code previously exclusive to radix tree testing. This provides fundamental VMA operations whose API is defined in mm/vma.h, while stubbing out superfluous functionality. This exists as a proof-of-concept, with the test implementation functional and sufficient to allow userland compilation of vma.c, but containing only cursory tests to demonstrate basic functionality. Link: https://lkml.kernel.org/r/533ffa2eec771cbe6b387dd049a7f128a53eb616.1722251717.git.lorenzo.stoakes@oracle.com Signed-off-by:Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Tested-by:
SeongJae Park <sj@kernel.org> Acked-by:
Vlastimil Babka <vbabka@suse.cz> Reviewed-by:
Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Brendan Higgins <brendanhiggins@google.com> Cc: Christian Brauner <brauner@kernel.org> Cc: David Gow <davidgow@google.com> Cc: Eric W. Biederman <ebiederm@xmission.com> Cc: Jan Kara <jack@suse.cz> Cc: Kees Cook <kees@kernel.org> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Rae Moar <rmoar@google.com> Cc: Shuah Khan <shuah@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Pengfei Xu <pengfei.xu@intel.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- MAINTAINERS 1 addition, 0 deletionsMAINTAINERS
- tools/testing/vma/.gitignore 7 additions, 0 deletionstools/testing/vma/.gitignore
- tools/testing/vma/Makefile 16 additions, 0 deletionstools/testing/vma/Makefile
- tools/testing/vma/linux/atomic.h 12 additions, 0 deletionstools/testing/vma/linux/atomic.h
- tools/testing/vma/linux/mmzone.h 38 additions, 0 deletionstools/testing/vma/linux/mmzone.h
- tools/testing/vma/vma.c 207 additions, 0 deletionstools/testing/vma/vma.c
- tools/testing/vma/vma_internal.h 882 additions, 0 deletionstools/testing/vma/vma_internal.h
Loading