]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests/vm: rename selftests/vm to selftests/mm
authorSeongJae Park <sj@kernel.org>
Tue, 3 Jan 2023 18:07:53 +0000 (18:07 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:56 +0000 (17:12 -0800)
Rename selftets/vm to selftests/mm for being more consistent with the
code, documentation, and tools directories, and won't be confused with
virtual machines.

[sj@kernel.org: convert missing vm->mm changes]
Link: https://lkml.kernel.org/r/20230107230643.252273-1-sj@kernel.org
Link: https://lkml.kernel.org/r/20230103180754.129637-5-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
58 files changed:
Documentation/admin-guide/mm/hugetlbpage.rst
Documentation/core-api/pin_user_pages.rst
MAINTAINERS
mm/Kconfig
tools/testing/selftests/Makefile
tools/testing/selftests/kselftest_deps.sh
tools/testing/selftests/mm/.gitignore [moved from tools/testing/selftests/vm/.gitignore with 100% similarity]
tools/testing/selftests/mm/Makefile [moved from tools/testing/selftests/vm/Makefile with 98% similarity]
tools/testing/selftests/mm/charge_reserved_hugetlb.sh [moved from tools/testing/selftests/vm/charge_reserved_hugetlb.sh with 100% similarity]
tools/testing/selftests/mm/check_config.sh [moved from tools/testing/selftests/vm/check_config.sh with 100% similarity]
tools/testing/selftests/mm/compaction_test.c [moved from tools/testing/selftests/vm/compaction_test.c with 100% similarity]
tools/testing/selftests/mm/config [moved from tools/testing/selftests/vm/config with 100% similarity]
tools/testing/selftests/mm/cow.c [moved from tools/testing/selftests/vm/cow.c with 100% similarity]
tools/testing/selftests/mm/gup_test.c [moved from tools/testing/selftests/vm/gup_test.c with 100% similarity]
tools/testing/selftests/mm/hmm-tests.c [moved from tools/testing/selftests/vm/hmm-tests.c with 100% similarity]
tools/testing/selftests/mm/hugepage-mmap.c [moved from tools/testing/selftests/vm/hugepage-mmap.c with 100% similarity]
tools/testing/selftests/mm/hugepage-mremap.c [moved from tools/testing/selftests/vm/hugepage-mremap.c with 100% similarity]
tools/testing/selftests/mm/hugepage-shm.c [moved from tools/testing/selftests/vm/hugepage-shm.c with 100% similarity]
tools/testing/selftests/mm/hugepage-vmemmap.c [moved from tools/testing/selftests/vm/hugepage-vmemmap.c with 100% similarity]
tools/testing/selftests/mm/hugetlb-madvise.c [moved from tools/testing/selftests/vm/hugetlb-madvise.c with 100% similarity]
tools/testing/selftests/mm/hugetlb_reparenting_test.sh [moved from tools/testing/selftests/vm/hugetlb_reparenting_test.sh with 100% similarity]
tools/testing/selftests/mm/khugepaged.c [moved from tools/testing/selftests/vm/khugepaged.c with 100% similarity]
tools/testing/selftests/mm/ksm_functional_tests.c [moved from tools/testing/selftests/vm/ksm_functional_tests.c with 100% similarity]
tools/testing/selftests/mm/ksm_tests.c [moved from tools/testing/selftests/vm/ksm_tests.c with 100% similarity]
tools/testing/selftests/mm/madv_populate.c [moved from tools/testing/selftests/vm/madv_populate.c with 100% similarity]
tools/testing/selftests/mm/map_fixed_noreplace.c [moved from tools/testing/selftests/vm/map_fixed_noreplace.c with 100% similarity]
tools/testing/selftests/mm/map_hugetlb.c [moved from tools/testing/selftests/vm/map_hugetlb.c with 100% similarity]
tools/testing/selftests/mm/map_populate.c [moved from tools/testing/selftests/vm/map_populate.c with 100% similarity]
tools/testing/selftests/mm/memfd_secret.c [moved from tools/testing/selftests/vm/memfd_secret.c with 100% similarity]
tools/testing/selftests/mm/migration.c [moved from tools/testing/selftests/vm/migration.c with 100% similarity]
tools/testing/selftests/mm/mlock-random-test.c [moved from tools/testing/selftests/vm/mlock-random-test.c with 100% similarity]
tools/testing/selftests/mm/mlock2-tests.c [moved from tools/testing/selftests/vm/mlock2-tests.c with 100% similarity]
tools/testing/selftests/mm/mlock2.h [moved from tools/testing/selftests/vm/mlock2.h with 100% similarity]
tools/testing/selftests/mm/mrelease_test.c [moved from tools/testing/selftests/vm/mrelease_test.c with 100% similarity]
tools/testing/selftests/mm/mremap_dontunmap.c [moved from tools/testing/selftests/vm/mremap_dontunmap.c with 100% similarity]
tools/testing/selftests/mm/mremap_test.c [moved from tools/testing/selftests/vm/mremap_test.c with 100% similarity]
tools/testing/selftests/mm/on-fault-limit.c [moved from tools/testing/selftests/vm/on-fault-limit.c with 100% similarity]
tools/testing/selftests/mm/pkey-helpers.h [moved from tools/testing/selftests/vm/pkey-helpers.h with 100% similarity]
tools/testing/selftests/mm/pkey-powerpc.h [moved from tools/testing/selftests/vm/pkey-powerpc.h with 100% similarity]
tools/testing/selftests/mm/pkey-x86.h [moved from tools/testing/selftests/vm/pkey-x86.h with 100% similarity]
tools/testing/selftests/mm/protection_keys.c [moved from tools/testing/selftests/vm/protection_keys.c with 100% similarity]
tools/testing/selftests/mm/run_vmtests.sh [moved from tools/testing/selftests/vm/run_vmtests.sh with 100% similarity, mode: 0644]
tools/testing/selftests/mm/settings [moved from tools/testing/selftests/vm/settings with 100% similarity]
tools/testing/selftests/mm/soft-dirty.c [moved from tools/testing/selftests/vm/soft-dirty.c with 100% similarity]
tools/testing/selftests/mm/split_huge_page_test.c [moved from tools/testing/selftests/vm/split_huge_page_test.c with 100% similarity]
tools/testing/selftests/mm/test_hmm.sh [moved from tools/testing/selftests/vm/test_hmm.sh with 100% similarity, mode: 0644]
tools/testing/selftests/mm/test_vmalloc.sh [moved from tools/testing/selftests/vm/test_vmalloc.sh with 100% similarity, mode: 0644]
tools/testing/selftests/mm/thuge-gen.c [moved from tools/testing/selftests/vm/thuge-gen.c with 100% similarity]
tools/testing/selftests/mm/transhuge-stress.c [moved from tools/testing/selftests/vm/transhuge-stress.c with 100% similarity]
tools/testing/selftests/mm/userfaultfd.c [moved from tools/testing/selftests/vm/userfaultfd.c with 100% similarity]
tools/testing/selftests/mm/util.h [moved from tools/testing/selftests/vm/util.h with 100% similarity]
tools/testing/selftests/mm/va_128TBswitch.c [moved from tools/testing/selftests/vm/va_128TBswitch.c with 100% similarity]
tools/testing/selftests/mm/va_128TBswitch.sh [moved from tools/testing/selftests/vm/va_128TBswitch.sh with 100% similarity, mode: 0644]
tools/testing/selftests/mm/virtual_address_range.c [moved from tools/testing/selftests/vm/virtual_address_range.c with 100% similarity]
tools/testing/selftests/mm/vm_util.c [moved from tools/testing/selftests/vm/vm_util.c with 100% similarity]
tools/testing/selftests/mm/vm_util.h [moved from tools/testing/selftests/vm/vm_util.h with 100% similarity]
tools/testing/selftests/mm/write_hugetlb_memory.sh [moved from tools/testing/selftests/vm/write_hugetlb_memory.sh with 100% similarity]
tools/testing/selftests/mm/write_to_hugetlbfs.c [moved from tools/testing/selftests/vm/write_to_hugetlbfs.c with 100% similarity]

index 19f27c0d92e074a7e829ed0eb1d403fe9bb65709..a969a2c742b212dd5657f024e9776cc792fc0e00 100644 (file)
@@ -461,13 +461,13 @@ Examples
 .. _map_hugetlb:
 
 ``map_hugetlb``
-       see tools/testing/selftests/vm/map_hugetlb.c
+       see tools/testing/selftests/mm/map_hugetlb.c
 
 ``hugepage-shm``
-       see tools/testing/selftests/vm/hugepage-shm.c
+       see tools/testing/selftests/mm/hugepage-shm.c
 
 ``hugepage-mmap``
-       see tools/testing/selftests/vm/hugepage-mmap.c
+       see tools/testing/selftests/mm/hugepage-mmap.c
 
 The `libhugetlbfs`_  library provides a wide range of userspace tools
 to help with huge page usability, environment setup, and control.
index b18416f4500feffb7b39407b0ca8fc4f4e08cb21..facafbdecb952187a3d91b354897f3cc87b84baa 100644 (file)
@@ -221,7 +221,7 @@ Unit testing
 ============
 This file::
 
- tools/testing/selftests/vm/gup_test.c
+ tools/testing/selftests/mm/gup_test.c
 
 has the following new calls to exercise the new pin*() wrapper functions:
 
index c726adfd1f0db967c9e3e917007d66ae8f3082d0..8ac1472bea341c1f653e1ea4d5479d8928b9abb3 100644 (file)
@@ -9466,7 +9466,7 @@ F:        Documentation/mm/hmm.rst
 F:     include/linux/hmm*
 F:     lib/test_hmm*
 F:     mm/hmm*
-F:     tools/testing/selftests/vm/*hmm*
+F:     tools/testing/selftests/mm/*hmm*
 
 HOST AP DRIVER
 M:     Jouni Malinen <j@w1.fi>
@@ -13484,7 +13484,7 @@ F:      include/linux/mmzone.h
 F:     include/linux/pagewalk.h
 F:     mm/
 F:     tools/mm/
-F:     tools/testing/selftests/vm/
+F:     tools/testing/selftests/mm/
 
 VMALLOC
 M:     Andrew Morton <akpm@linux-foundation.org>
index ff7b209dec05574e2af34147139fd678ea207d57..39df30dcabe35f907810cfe6d7350325d5404a97 100644 (file)
@@ -1073,7 +1073,7 @@ config GUP_TEST
          pin_user_pages*(), or pinned via get_user_pages*(), as specified
          by other command line arguments.
 
-         See tools/testing/selftests/vm/gup_test.c
+         See tools/testing/selftests/mm/gup_test.c
 
 comment "GUP_TEST needs to have DEBUG_FS enabled"
        depends on !GUP_TEST && !DEBUG_FS
index 41b649452560c3d91936c4ac8ba46df6e75c9736..56a29f2de8e665c99f8419288fb7563136d8ed0d 100644 (file)
@@ -85,7 +85,7 @@ TARGETS += tmpfs
 TARGETS += tpm2
 TARGETS += user
 TARGETS += vDSO
-TARGETS += vm
+TARGETS += mm
 TARGETS += x86
 TARGETS += zram
 #Please keep the TARGETS list alphabetically sorted
index 7424a1f5babcf846f985a29bf2a722feaba5e498..4bc14d9e8ff1d07a11e77d6af7c636b34ed77bf9 100755 (executable)
@@ -12,9 +12,9 @@ usage()
 
 echo -e "Usage: $0 -[p] <compiler> [test_name]\n"
 echo -e "\tkselftest_deps.sh [-p] gcc"
-echo -e "\tkselftest_deps.sh [-p] gcc vm"
+echo -e "\tkselftest_deps.sh [-p] gcc mm"
 echo -e "\tkselftest_deps.sh [-p] aarch64-linux-gnu-gcc"
-echo -e "\tkselftest_deps.sh [-p] aarch64-linux-gnu-gcc vm\n"
+echo -e "\tkselftest_deps.sh [-p] aarch64-linux-gnu-gcc mm\n"
 echo "- Should be run in selftests directory in the kernel repo."
 echo "- Checks if Kselftests can be built/cross-built on a system."
 echo "- Parses all test/sub-test Makefile to find library dependencies."
@@ -120,7 +120,7 @@ l1_tests=$(grep -r --include=Makefile "^LDLIBS" | \
 # Level 2
 # Some tests have multiple valid LDLIBS lines for individual sub-tests
 # that need dependency checks. Find them and append them to the tests
-# e.g: vm/Makefile:$(OUTPUT)/userfaultfd: LDLIBS += -lpthread
+# e.g: mm/Makefile:$(OUTPUT)/userfaultfd: LDLIBS += -lpthread
 # Filter out VAR_LDLIBS to discard the following:
 #      memfd/Makefile:$(OUTPUT)/fuse_mnt: LDLIBS += $(VAR_LDLIBS)
 # Append space at the end of the list to append more tests.
similarity index 98%
rename from tools/testing/selftests/vm/Makefile
rename to tools/testing/selftests/mm/Makefile
index 89c14e41bd437e6b9899b6193d92217c3f539647..6a4b639b2b2bf13cc0e6ad73ae6039eb25d20aaf 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
-# Makefile for vm selftests
+# Makefile for mm selftests
 
-LOCAL_HDRS += $(selfdir)/vm/local_config.h $(top_srcdir)/mm/gup_test.h
+LOCAL_HDRS += $(selfdir)/mm/local_config.h $(top_srcdir)/mm/gup_test.h
 
 include local_config.mk
 
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from tools/testing/selftests/vm/run_vmtests.sh
rename to tools/testing/selftests/mm/run_vmtests.sh
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from tools/testing/selftests/vm/test_hmm.sh
rename to tools/testing/selftests/mm/test_hmm.sh