selftests/vm: rename selftests/vm to selftests/mm

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>
This commit is contained in:
SeongJae Park 2023-01-03 18:07:53 +00:00 committed by Andrew Morton
parent 799fb82aa1
commit baa489fabd
58 changed files with 13 additions and 13 deletions

View File

@ -461,13 +461,13 @@ Examples
.. _map_hugetlb: .. _map_hugetlb:
``map_hugetlb`` ``map_hugetlb``
see tools/testing/selftests/vm/map_hugetlb.c see tools/testing/selftests/mm/map_hugetlb.c
``hugepage-shm`` ``hugepage-shm``
see tools/testing/selftests/vm/hugepage-shm.c see tools/testing/selftests/mm/hugepage-shm.c
``hugepage-mmap`` ``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 The `libhugetlbfs`_ library provides a wide range of userspace tools
to help with huge page usability, environment setup, and control. to help with huge page usability, environment setup, and control.

View File

@ -221,7 +221,7 @@ Unit testing
============ ============
This file:: 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: has the following new calls to exercise the new pin*() wrapper functions:

View File

@ -9466,7 +9466,7 @@ F: Documentation/mm/hmm.rst
F: include/linux/hmm* F: include/linux/hmm*
F: lib/test_hmm* F: lib/test_hmm*
F: mm/hmm* F: mm/hmm*
F: tools/testing/selftests/vm/*hmm* F: tools/testing/selftests/mm/*hmm*
HOST AP DRIVER HOST AP DRIVER
M: Jouni Malinen <j@w1.fi> M: Jouni Malinen <j@w1.fi>
@ -13484,7 +13484,7 @@ F: include/linux/mmzone.h
F: include/linux/pagewalk.h F: include/linux/pagewalk.h
F: mm/ F: mm/
F: tools/mm/ F: tools/mm/
F: tools/testing/selftests/vm/ F: tools/testing/selftests/mm/
VMALLOC VMALLOC
M: Andrew Morton <akpm@linux-foundation.org> M: Andrew Morton <akpm@linux-foundation.org>

View File

@ -1073,7 +1073,7 @@ config GUP_TEST
pin_user_pages*(), or pinned via get_user_pages*(), as specified pin_user_pages*(), or pinned via get_user_pages*(), as specified
by other command line arguments. 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" comment "GUP_TEST needs to have DEBUG_FS enabled"
depends on !GUP_TEST && !DEBUG_FS depends on !GUP_TEST && !DEBUG_FS

View File

@ -85,7 +85,7 @@ TARGETS += tmpfs
TARGETS += tpm2 TARGETS += tpm2
TARGETS += user TARGETS += user
TARGETS += vDSO TARGETS += vDSO
TARGETS += vm TARGETS += mm
TARGETS += x86 TARGETS += x86
TARGETS += zram TARGETS += zram
#Please keep the TARGETS list alphabetically sorted #Please keep the TARGETS list alphabetically sorted

View File

@ -12,9 +12,9 @@ usage()
echo -e "Usage: $0 -[p] <compiler> [test_name]\n" echo -e "Usage: $0 -[p] <compiler> [test_name]\n"
echo -e "\tkselftest_deps.sh [-p] gcc" 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"
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 "- Should be run in selftests directory in the kernel repo."
echo "- Checks if Kselftests can be built/cross-built on a system." echo "- Checks if Kselftests can be built/cross-built on a system."
echo "- Parses all test/sub-test Makefile to find library dependencies." echo "- Parses all test/sub-test Makefile to find library dependencies."
@ -120,7 +120,7 @@ l1_tests=$(grep -r --include=Makefile "^LDLIBS" | \
# Level 2 # Level 2
# Some tests have multiple valid LDLIBS lines for individual sub-tests # Some tests have multiple valid LDLIBS lines for individual sub-tests
# that need dependency checks. Find them and append them to the 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: # Filter out VAR_LDLIBS to discard the following:
# memfd/Makefile:$(OUTPUT)/fuse_mnt: LDLIBS += $(VAR_LDLIBS) # memfd/Makefile:$(OUTPUT)/fuse_mnt: LDLIBS += $(VAR_LDLIBS)
# Append space at the end of the list to append more tests. # Append space at the end of the list to append more tests.

View File

@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0 # 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 include local_config.mk