tools: separate out shared radix-tree components
authorLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Mon, 29 Jul 2024 11:50:40 +0000 (12:50 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:25:55 +0000 (20:25 -0700)
commit74579d8dab476b66cd28715e73832ab777f20984
tree770b8f943ee9d738cb467955d04e1002db114dbe
parent802443a44dfff8536f05da2ddd44a293367d2d99
tools: separate out shared radix-tree components

The core components contained within the radix-tree tests which provide
shims for kernel headers and access to the maple tree are useful for
testing other things, so separate them out and make the radix tree tests
dependent on the shared components.

This lays the groundwork for us to add VMA tests of the newly introduced
vma.c file.

Link: https://lkml.kernel.org/r/1ee720c265808168e0d75608e687607d77c36719.1722251717.git.lorenzo.stoakes@oracle.com
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
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: SeongJae Park <sj@kernel.org>
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>
45 files changed:
tools/testing/radix-tree/.gitignore
tools/testing/radix-tree/Makefile
tools/testing/radix-tree/generated/autoconf.h [deleted file]
tools/testing/radix-tree/linux.c [deleted file]
tools/testing/radix-tree/linux/bug.h [deleted file]
tools/testing/radix-tree/linux/cpu.h [deleted file]
tools/testing/radix-tree/linux/idr.h [deleted file]
tools/testing/radix-tree/linux/init.h [deleted file]
tools/testing/radix-tree/linux/kconfig.h [deleted file]
tools/testing/radix-tree/linux/kernel.h [deleted file]
tools/testing/radix-tree/linux/kmemleak.h [deleted file]
tools/testing/radix-tree/linux/local_lock.h [deleted file]
tools/testing/radix-tree/linux/lockdep.h [deleted file]
tools/testing/radix-tree/linux/maple_tree.h [deleted file]
tools/testing/radix-tree/linux/percpu.h [deleted file]
tools/testing/radix-tree/linux/preempt.h [deleted file]
tools/testing/radix-tree/linux/radix-tree.h [deleted file]
tools/testing/radix-tree/linux/rcupdate.h [deleted file]
tools/testing/radix-tree/linux/xarray.h [deleted file]
tools/testing/radix-tree/trace/events/maple_tree.h [deleted file]
tools/testing/radix-tree/xarray.c
tools/testing/shared/autoconf.h [new file with mode: 0644]
tools/testing/shared/linux.c [new file with mode: 0644]
tools/testing/shared/linux/bug.h [new file with mode: 0644]
tools/testing/shared/linux/cpu.h [new file with mode: 0644]
tools/testing/shared/linux/idr.h [new file with mode: 0644]
tools/testing/shared/linux/init.h [new file with mode: 0644]
tools/testing/shared/linux/kconfig.h [new file with mode: 0644]
tools/testing/shared/linux/kernel.h [new file with mode: 0644]
tools/testing/shared/linux/kmemleak.h [new file with mode: 0644]
tools/testing/shared/linux/local_lock.h [new file with mode: 0644]
tools/testing/shared/linux/lockdep.h [new file with mode: 0644]
tools/testing/shared/linux/maple_tree.h [new file with mode: 0644]
tools/testing/shared/linux/percpu.h [new file with mode: 0644]
tools/testing/shared/linux/preempt.h [new file with mode: 0644]
tools/testing/shared/linux/radix-tree.h [new file with mode: 0644]
tools/testing/shared/linux/rcupdate.h [new file with mode: 0644]
tools/testing/shared/linux/xarray.h [new file with mode: 0644]
tools/testing/shared/maple-shared.h [new file with mode: 0644]
tools/testing/shared/maple-shim.c [new file with mode: 0644]
tools/testing/shared/shared.h [new file with mode: 0644]
tools/testing/shared/shared.mk [new file with mode: 0644]
tools/testing/shared/trace/events/maple_tree.h [new file with mode: 0644]
tools/testing/shared/xarray-shared.c [new file with mode: 0644]
tools/testing/shared/xarray-shared.h [new file with mode: 0644]