All of lore.kernel.org
 help / color / mirror / Atom feed
* (no subject)
@ 2023-01-03 18:07 SeongJae Park
  2023-01-03 18:07 ` [PATCH 1/5] MAINTAINERS: add types to akpm/mm git trees entries SeongJae Park
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: SeongJae Park @ 2023-01-03 18:07 UTC (permalink / raw)
  To: Andrew Morton
  Cc: SeongJae Park, Jonathan Corbet, Shuah Khan, linux-mm, linux-doc,
	linux-kselftest, linux-kernel

Date: Tue, 3 Jan 2023 18:00:52 +0000
Subject: [PATCH 0/5] mm: trivial fixups

This patchset is for trivial fixups of mm stuff on MAINTAINERS, tools/
selftests, and docs.

SeongJae Park (5):
  MAINTAINERS: add types to akpm/mm git trees entries
  MAINTAINERS/MEMORY MANAGEMENT: Add tools/vm/ as managed files
  tools/vm: rename tools/vm to tools/mm
  selftests/vm: rename selftets/vm to selftests/mm
  Docs/admin-guide/mm/numaperf: increase depth of subsections

 Documentation/admin-guide/mm/hugetlbpage.rst             | 6 +++---
 Documentation/admin-guide/mm/idle_page_tracking.rst      | 2 +-
 Documentation/admin-guide/mm/numaperf.rst                | 8 ++++----
 Documentation/admin-guide/mm/pagemap.rst                 | 4 ++--
 Documentation/core-api/pin_user_pages.rst                | 2 +-
 Documentation/mm/page_owner.rst                          | 2 +-
 Documentation/mm/slub.rst                                | 2 +-
 Documentation/translations/zh_CN/mm/page_owner.rst       | 2 +-
 MAINTAINERS                                              | 9 +++++----
 mm/Kconfig                                               | 2 +-
 mm/Kconfig.debug                                         | 2 +-
 mm/memory-failure.c                                      | 2 +-
 tools/{vm => mm}/.gitignore                              | 0
 tools/{vm => mm}/Makefile                                | 0
 tools/{vm => mm}/page-types.c                            | 0
 tools/{vm => mm}/page_owner_sort.c                       | 0
 tools/{vm => mm}/slabinfo-gnuplot.sh                     | 0
 tools/{vm => mm}/slabinfo.c                              | 0
 tools/testing/selftests/{vm => mm}/.gitignore            | 0
 tools/testing/selftests/{vm => mm}/Makefile              | 0
 .../selftests/{vm => mm}/charge_reserved_hugetlb.sh      | 0
 tools/testing/selftests/{vm => mm}/check_config.sh       | 0
 tools/testing/selftests/{vm => mm}/compaction_test.c     | 0
 tools/testing/selftests/{vm => mm}/config                | 0
 tools/testing/selftests/{vm => mm}/cow.c                 | 0
 tools/testing/selftests/{vm => mm}/gup_test.c            | 0
 tools/testing/selftests/{vm => mm}/hmm-tests.c           | 0
 tools/testing/selftests/{vm => mm}/hugepage-mmap.c       | 0
 tools/testing/selftests/{vm => mm}/hugepage-mremap.c     | 0
 tools/testing/selftests/{vm => mm}/hugepage-shm.c        | 0
 tools/testing/selftests/{vm => mm}/hugepage-vmemmap.c    | 0
 tools/testing/selftests/{vm => mm}/hugetlb-madvise.c     | 0
 .../selftests/{vm => mm}/hugetlb_reparenting_test.sh     | 0
 tools/testing/selftests/{vm => mm}/khugepaged.c          | 0
 .../testing/selftests/{vm => mm}/ksm_functional_tests.c  | 0
 tools/testing/selftests/{vm => mm}/ksm_tests.c           | 0
 tools/testing/selftests/{vm => mm}/madv_populate.c       | 0
 tools/testing/selftests/{vm => mm}/map_fixed_noreplace.c | 0
 tools/testing/selftests/{vm => mm}/map_hugetlb.c         | 0
 tools/testing/selftests/{vm => mm}/map_populate.c        | 0
 tools/testing/selftests/{vm => mm}/memfd_secret.c        | 0
 tools/testing/selftests/{vm => mm}/migration.c           | 0
 tools/testing/selftests/{vm => mm}/mlock-random-test.c   | 0
 tools/testing/selftests/{vm => mm}/mlock2-tests.c        | 0
 tools/testing/selftests/{vm => mm}/mlock2.h              | 0
 tools/testing/selftests/{vm => mm}/mrelease_test.c       | 0
 tools/testing/selftests/{vm => mm}/mremap_dontunmap.c    | 0
 tools/testing/selftests/{vm => mm}/mremap_test.c         | 0
 tools/testing/selftests/{vm => mm}/on-fault-limit.c      | 0
 tools/testing/selftests/{vm => mm}/pkey-helpers.h        | 0
 tools/testing/selftests/{vm => mm}/pkey-powerpc.h        | 0
 tools/testing/selftests/{vm => mm}/pkey-x86.h            | 0
 tools/testing/selftests/{vm => mm}/protection_keys.c     | 0
 tools/testing/selftests/{vm => mm}/run_vmtests.sh        | 0
 tools/testing/selftests/{vm => mm}/settings              | 0
 tools/testing/selftests/{vm => mm}/soft-dirty.c          | 0
 .../testing/selftests/{vm => mm}/split_huge_page_test.c  | 0
 tools/testing/selftests/{vm => mm}/test_hmm.sh           | 0
 tools/testing/selftests/{vm => mm}/test_vmalloc.sh       | 0
 tools/testing/selftests/{vm => mm}/thuge-gen.c           | 0
 tools/testing/selftests/{vm => mm}/transhuge-stress.c    | 0
 tools/testing/selftests/{vm => mm}/userfaultfd.c         | 0
 tools/testing/selftests/{vm => mm}/util.h                | 0
 tools/testing/selftests/{vm => mm}/va_128TBswitch.c      | 0
 tools/testing/selftests/{vm => mm}/va_128TBswitch.sh     | 0
 .../testing/selftests/{vm => mm}/virtual_address_range.c | 0
 tools/testing/selftests/{vm => mm}/vm_util.c             | 0
 tools/testing/selftests/{vm => mm}/vm_util.h             | 0
 .../testing/selftests/{vm => mm}/write_hugetlb_memory.sh | 0
 tools/testing/selftests/{vm => mm}/write_to_hugetlbfs.c  | 0
 70 files changed, 22 insertions(+), 21 deletions(-)
 rename tools/{vm => mm}/.gitignore (100%)
 rename tools/{vm => mm}/Makefile (100%)
 rename tools/{vm => mm}/page-types.c (100%)
 rename tools/{vm => mm}/page_owner_sort.c (100%)
 rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%)
 rename tools/{vm => mm}/slabinfo.c (100%)
 rename tools/testing/selftests/{vm => mm}/.gitignore (100%)
 rename tools/testing/selftests/{vm => mm}/Makefile (100%)
 rename tools/testing/selftests/{vm => mm}/charge_reserved_hugetlb.sh (100%)
 rename tools/testing/selftests/{vm => mm}/check_config.sh (100%)
 rename tools/testing/selftests/{vm => mm}/compaction_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/config (100%)
 rename tools/testing/selftests/{vm => mm}/cow.c (100%)
 rename tools/testing/selftests/{vm => mm}/gup_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/hmm-tests.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugepage-mmap.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugepage-mremap.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugepage-shm.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugepage-vmemmap.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugetlb-madvise.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugetlb_reparenting_test.sh (100%)
 rename tools/testing/selftests/{vm => mm}/khugepaged.c (100%)
 rename tools/testing/selftests/{vm => mm}/ksm_functional_tests.c (100%)
 rename tools/testing/selftests/{vm => mm}/ksm_tests.c (100%)
 rename tools/testing/selftests/{vm => mm}/madv_populate.c (100%)
 rename tools/testing/selftests/{vm => mm}/map_fixed_noreplace.c (100%)
 rename tools/testing/selftests/{vm => mm}/map_hugetlb.c (100%)
 rename tools/testing/selftests/{vm => mm}/map_populate.c (100%)
 rename tools/testing/selftests/{vm => mm}/memfd_secret.c (100%)
 rename tools/testing/selftests/{vm => mm}/migration.c (100%)
 rename tools/testing/selftests/{vm => mm}/mlock-random-test.c (100%)
 rename tools/testing/selftests/{vm => mm}/mlock2-tests.c (100%)
 rename tools/testing/selftests/{vm => mm}/mlock2.h (100%)
 rename tools/testing/selftests/{vm => mm}/mrelease_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/mremap_dontunmap.c (100%)
 rename tools/testing/selftests/{vm => mm}/mremap_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/on-fault-limit.c (100%)
 rename tools/testing/selftests/{vm => mm}/pkey-helpers.h (100%)
 rename tools/testing/selftests/{vm => mm}/pkey-powerpc.h (100%)
 rename tools/testing/selftests/{vm => mm}/pkey-x86.h (100%)
 rename tools/testing/selftests/{vm => mm}/protection_keys.c (100%)
 rename tools/testing/selftests/{vm => mm}/run_vmtests.sh (100%)
 rename tools/testing/selftests/{vm => mm}/settings (100%)
 rename tools/testing/selftests/{vm => mm}/soft-dirty.c (100%)
 rename tools/testing/selftests/{vm => mm}/split_huge_page_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/test_hmm.sh (100%)
 rename tools/testing/selftests/{vm => mm}/test_vmalloc.sh (100%)
 rename tools/testing/selftests/{vm => mm}/thuge-gen.c (100%)
 rename tools/testing/selftests/{vm => mm}/transhuge-stress.c (100%)
 rename tools/testing/selftests/{vm => mm}/userfaultfd.c (100%)
 rename tools/testing/selftests/{vm => mm}/util.h (100%)
 rename tools/testing/selftests/{vm => mm}/va_128TBswitch.c (100%)
 rename tools/testing/selftests/{vm => mm}/va_128TBswitch.sh (100%)
 rename tools/testing/selftests/{vm => mm}/virtual_address_range.c (100%)
 rename tools/testing/selftests/{vm => mm}/vm_util.c (100%)
 rename tools/testing/selftests/{vm => mm}/vm_util.h (100%)
 rename tools/testing/selftests/{vm => mm}/write_hugetlb_memory.sh (100%)
 rename tools/testing/selftests/{vm => mm}/write_to_hugetlbfs.c (100%)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/5] MAINTAINERS: add types to akpm/mm git trees entries
  2023-01-03 18:07 SeongJae Park
@ 2023-01-03 18:07 ` SeongJae Park
  2023-01-03 18:07 ` [PATCH 2/5] MAINTAINERS/MEMORY MANAGEMENT: Add tools/vm/ as managed files SeongJae Park
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: SeongJae Park @ 2023-01-03 18:07 UTC (permalink / raw)
  To: akpm; +Cc: SeongJae Park, linux-mm, linux-kernel

Each SCM tree entry of MAINTAINERS file should have both type and
location, but akpm/mm git tree entries of 'MEMORY MANAGEMENT' and
'VMALLOC' sections of the file don't have the type.  Add the type.

Signed-off-by: SeongJae Park <sj@kernel.org>
---
 MAINTAINERS | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index f61eb221415b..45977188ab5b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -13474,7 +13474,7 @@ M:	Andrew Morton <akpm@linux-foundation.org>
 L:	linux-mm@kvack.org
 S:	Maintained
 W:	http://www.linux-mm.org
-T:	git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
+T:	git git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
 T:	quilt git://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new
 F:	include/linux/gfp.h
 F:	include/linux/gfp_types.h
@@ -13492,7 +13492,7 @@ R:	Christoph Hellwig <hch@infradead.org>
 L:	linux-mm@kvack.org
 S:	Maintained
 W:	http://www.linux-mm.org
-T:	git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
+T:	git git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
 F:	include/linux/vmalloc.h
 F:	mm/vmalloc.c
 
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/5] MAINTAINERS/MEMORY MANAGEMENT: Add tools/vm/ as managed files
  2023-01-03 18:07 SeongJae Park
  2023-01-03 18:07 ` [PATCH 1/5] MAINTAINERS: add types to akpm/mm git trees entries SeongJae Park
@ 2023-01-03 18:07 ` SeongJae Park
  2023-01-03 18:07 ` [PATCH 3/5] tools/vm: rename tools/vm to tools/mm SeongJae Park
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: SeongJae Park @ 2023-01-03 18:07 UTC (permalink / raw)
  To: akpm; +Cc: SeongJae Park, linux-mm, linux-kernel

'tools/vm/' directory should be a part of memory management subsystem,
but MAINTAINERS file doesn't mark the directory so.  Add one more 'F:'
entry for the directory to 'MEMORY MANAGEMENT' section.

Signed-off-by: SeongJae Park <sj@kernel.org>
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 45977188ab5b..3073432ff0bf 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -13484,6 +13484,7 @@ F:	include/linux/mmzone.h
 F:	include/linux/pagewalk.h
 F:	mm/
 F:	tools/testing/selftests/vm/
+F:	tools/vm/
 
 VMALLOC
 M:	Andrew Morton <akpm@linux-foundation.org>
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/5] tools/vm: rename tools/vm to tools/mm
  2023-01-03 18:07 SeongJae Park
  2023-01-03 18:07 ` [PATCH 1/5] MAINTAINERS: add types to akpm/mm git trees entries SeongJae Park
  2023-01-03 18:07 ` [PATCH 2/5] MAINTAINERS/MEMORY MANAGEMENT: Add tools/vm/ as managed files SeongJae Park
@ 2023-01-03 18:07 ` SeongJae Park
  2026-10-19 12:36   ` Dan Carpenter
  2023-01-03 18:07 ` [PATCH 4/5] selftests/vm: rename selftets/vm to selftests/mm SeongJae Park
  2023-01-03 18:07 ` [PATCH 5/5] Docs/admin-guide/mm/numaperf: increase depth of subsections SeongJae Park
  4 siblings, 1 reply; 9+ messages in thread
From: SeongJae Park @ 2023-01-03 18:07 UTC (permalink / raw)
  To: Andrew Morton
  Cc: SeongJae Park, Jonathan Corbet, linux-mm, linux-doc, linux-kernel

Rename tools/vm to tools/mm for being more consistent with the code and
documentation directories, and won't be confused with virtual machines.

Signed-off-by: SeongJae Park <sj@kernel.org>
---
 Documentation/admin-guide/mm/idle_page_tracking.rst | 2 +-
 Documentation/admin-guide/mm/pagemap.rst            | 4 ++--
 Documentation/mm/page_owner.rst                     | 2 +-
 Documentation/mm/slub.rst                           | 2 +-
 Documentation/translations/zh_CN/mm/page_owner.rst  | 2 +-
 MAINTAINERS                                         | 2 +-
 mm/Kconfig.debug                                    | 2 +-
 mm/memory-failure.c                                 | 2 +-
 tools/{vm => mm}/.gitignore                         | 0
 tools/{vm => mm}/Makefile                           | 0
 tools/{vm => mm}/page-types.c                       | 0
 tools/{vm => mm}/page_owner_sort.c                  | 0
 tools/{vm => mm}/slabinfo-gnuplot.sh                | 0
 tools/{vm => mm}/slabinfo.c                         | 0
 14 files changed, 9 insertions(+), 9 deletions(-)
 rename tools/{vm => mm}/.gitignore (100%)
 rename tools/{vm => mm}/Makefile (100%)
 rename tools/{vm => mm}/page-types.c (100%)
 rename tools/{vm => mm}/page_owner_sort.c (100%)
 rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%)
 rename tools/{vm => mm}/slabinfo.c (100%)

diff --git a/Documentation/admin-guide/mm/idle_page_tracking.rst b/Documentation/admin-guide/mm/idle_page_tracking.rst
index df9394fb39c2..19492064278c 100644
--- a/Documentation/admin-guide/mm/idle_page_tracking.rst
+++ b/Documentation/admin-guide/mm/idle_page_tracking.rst
@@ -65,7 +65,7 @@ workload one should:
     are not reclaimable, he or she can filter them out using
     ``/proc/kpageflags``.
 
-The page-types tool in the tools/vm directory can be used to assist in this.
+The page-types tool in the tools/mm directory can be used to assist in this.
 If the tool is run initially with the appropriate option, it will mark all the
 queried pages as idle.  Subsequent runs of the tool can then show which pages have
 their idle flag cleared in the interim.
diff --git a/Documentation/admin-guide/mm/pagemap.rst b/Documentation/admin-guide/mm/pagemap.rst
index 6e2e416af783..ceb5da3172ba 100644
--- a/Documentation/admin-guide/mm/pagemap.rst
+++ b/Documentation/admin-guide/mm/pagemap.rst
@@ -46,7 +46,7 @@ There are four components to pagemap:
  * ``/proc/kpagecount``.  This file contains a 64-bit count of the number of
    times each page is mapped, indexed by PFN.
 
-The page-types tool in the tools/vm directory can be used to query the
+The page-types tool in the tools/mm directory can be used to query the
 number of times a page is mapped.
 
  * ``/proc/kpageflags``.  This file contains a 64-bit set of flags for each
@@ -173,7 +173,7 @@ LRU related page flags
 14 - SWAPBACKED
    The page is backed by swap/RAM.
 
-The page-types tool in the tools/vm directory can be used to query the
+The page-types tool in the tools/mm directory can be used to query the
 above flags.
 
 Using pagemap to do something useful
diff --git a/Documentation/mm/page_owner.rst b/Documentation/mm/page_owner.rst
index 127514955a5e..5df26c0a0c1f 100644
--- a/Documentation/mm/page_owner.rst
+++ b/Documentation/mm/page_owner.rst
@@ -61,7 +61,7 @@ Usage
 
 1) Build user-space helper::
 
-	cd tools/vm
+	cd tools/mm
 	make page_owner_sort
 
 2) Enable page owner: add "page_owner=on" to boot cmdline.
diff --git a/Documentation/mm/slub.rst b/Documentation/mm/slub.rst
index 7f652216dabe..3ffa7eded251 100644
--- a/Documentation/mm/slub.rst
+++ b/Documentation/mm/slub.rst
@@ -21,7 +21,7 @@ slabs that have data in them. See "slabinfo -h" for more options when
 running the command. ``slabinfo`` can be compiled with
 ::
 
-	gcc -o slabinfo tools/vm/slabinfo.c
+	gcc -o slabinfo tools/mm/slabinfo.c
 
 Some of the modes of operation of ``slabinfo`` require that slub debugging
 be enabled on the command line. F.e. no tracking information will be
diff --git a/Documentation/translations/zh_CN/mm/page_owner.rst b/Documentation/translations/zh_CN/mm/page_owner.rst
index 21a6a0837d42..4d3b2c33e4ef 100644
--- a/Documentation/translations/zh_CN/mm/page_owner.rst
+++ b/Documentation/translations/zh_CN/mm/page_owner.rst
@@ -62,7 +62,7 @@ page owner在默认情况下是禁用的。所以,如果你想使用它,你
 
 1) 构建用户空间的帮助::
 
-	cd tools/vm
+	cd tools/mm
 	make page_owner_sort
 
 2) 启用page owner: 添加 "page_owner=on" 到 boot cmdline.
diff --git a/MAINTAINERS b/MAINTAINERS
index 3073432ff0bf..65426446f09a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -13483,8 +13483,8 @@ F:	include/linux/mm.h
 F:	include/linux/mmzone.h
 F:	include/linux/pagewalk.h
 F:	mm/
+F:	tools/mm/
 F:	tools/testing/selftests/vm/
-F:	tools/vm/
 
 VMALLOC
 M:	Andrew Morton <akpm@linux-foundation.org>
diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug
index fca699ad1fb0..d62f48131952 100644
--- a/mm/Kconfig.debug
+++ b/mm/Kconfig.debug
@@ -90,7 +90,7 @@ config PAGE_OWNER
 	  help to find bare alloc_page(s) leaks. Even if you include this
 	  feature on your build, it is disabled in default. You should pass
 	  "page_owner=on" to boot parameter in order to enable it. Eats
-	  a fair amount of memory if enabled. See tools/vm/page_owner_sort.c
+	  a fair amount of memory if enabled. See tools/mm/page_owner_sort.c
 	  for user-space helper.
 
 	  If unsure, say N.
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index c77a9e37e27e..6bf07345ea2c 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -24,7 +24,7 @@
  * - You have a test that can be added to mce-test
  *   https://git.kernel.org/cgit/utils/cpu/mce/mce-test.git/
  * - The case actually shows up as a frequent (top 10) page state in
- *   tools/vm/page-types when running a real workload.
+ *   tools/mm/page-types when running a real workload.
  * 
  * There are several operations here with exponential complexity because
  * of unsuitable VM data structures. For example the operation to map back 
diff --git a/tools/vm/.gitignore b/tools/mm/.gitignore
similarity index 100%
rename from tools/vm/.gitignore
rename to tools/mm/.gitignore
diff --git a/tools/vm/Makefile b/tools/mm/Makefile
similarity index 100%
rename from tools/vm/Makefile
rename to tools/mm/Makefile
diff --git a/tools/vm/page-types.c b/tools/mm/page-types.c
similarity index 100%
rename from tools/vm/page-types.c
rename to tools/mm/page-types.c
diff --git a/tools/vm/page_owner_sort.c b/tools/mm/page_owner_sort.c
similarity index 100%
rename from tools/vm/page_owner_sort.c
rename to tools/mm/page_owner_sort.c
diff --git a/tools/vm/slabinfo-gnuplot.sh b/tools/mm/slabinfo-gnuplot.sh
similarity index 100%
rename from tools/vm/slabinfo-gnuplot.sh
rename to tools/mm/slabinfo-gnuplot.sh
diff --git a/tools/vm/slabinfo.c b/tools/mm/slabinfo.c
similarity index 100%
rename from tools/vm/slabinfo.c
rename to tools/mm/slabinfo.c
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 4/5] selftests/vm: rename selftets/vm to selftests/mm
  2023-01-03 18:07 SeongJae Park
                   ` (2 preceding siblings ...)
  2023-01-03 18:07 ` [PATCH 3/5] tools/vm: rename tools/vm to tools/mm SeongJae Park
@ 2023-01-03 18:07 ` SeongJae Park
  2023-01-03 18:07 ` [PATCH 5/5] Docs/admin-guide/mm/numaperf: increase depth of subsections SeongJae Park
  4 siblings, 0 replies; 9+ messages in thread
From: SeongJae Park @ 2023-01-03 18:07 UTC (permalink / raw)
  To: Andrew Morton
  Cc: SeongJae Park, Shuah Khan, Jonathan Corbet, linux-mm,
	linux-kselftest, linux-doc, linux-kernel

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.

Signed-off-by: SeongJae Park <sj@kernel.org>
---
 Documentation/admin-guide/mm/hugetlbpage.rst                | 6 +++---
 Documentation/core-api/pin_user_pages.rst                   | 2 +-
 MAINTAINERS                                                 | 4 ++--
 mm/Kconfig                                                  | 2 +-
 tools/testing/selftests/{vm => mm}/.gitignore               | 0
 tools/testing/selftests/{vm => mm}/Makefile                 | 0
 .../testing/selftests/{vm => mm}/charge_reserved_hugetlb.sh | 0
 tools/testing/selftests/{vm => mm}/check_config.sh          | 0
 tools/testing/selftests/{vm => mm}/compaction_test.c        | 0
 tools/testing/selftests/{vm => mm}/config                   | 0
 tools/testing/selftests/{vm => mm}/cow.c                    | 0
 tools/testing/selftests/{vm => mm}/gup_test.c               | 0
 tools/testing/selftests/{vm => mm}/hmm-tests.c              | 0
 tools/testing/selftests/{vm => mm}/hugepage-mmap.c          | 0
 tools/testing/selftests/{vm => mm}/hugepage-mremap.c        | 0
 tools/testing/selftests/{vm => mm}/hugepage-shm.c           | 0
 tools/testing/selftests/{vm => mm}/hugepage-vmemmap.c       | 0
 tools/testing/selftests/{vm => mm}/hugetlb-madvise.c        | 0
 .../selftests/{vm => mm}/hugetlb_reparenting_test.sh        | 0
 tools/testing/selftests/{vm => mm}/khugepaged.c             | 0
 tools/testing/selftests/{vm => mm}/ksm_functional_tests.c   | 0
 tools/testing/selftests/{vm => mm}/ksm_tests.c              | 0
 tools/testing/selftests/{vm => mm}/madv_populate.c          | 0
 tools/testing/selftests/{vm => mm}/map_fixed_noreplace.c    | 0
 tools/testing/selftests/{vm => mm}/map_hugetlb.c            | 0
 tools/testing/selftests/{vm => mm}/map_populate.c           | 0
 tools/testing/selftests/{vm => mm}/memfd_secret.c           | 0
 tools/testing/selftests/{vm => mm}/migration.c              | 0
 tools/testing/selftests/{vm => mm}/mlock-random-test.c      | 0
 tools/testing/selftests/{vm => mm}/mlock2-tests.c           | 0
 tools/testing/selftests/{vm => mm}/mlock2.h                 | 0
 tools/testing/selftests/{vm => mm}/mrelease_test.c          | 0
 tools/testing/selftests/{vm => mm}/mremap_dontunmap.c       | 0
 tools/testing/selftests/{vm => mm}/mremap_test.c            | 0
 tools/testing/selftests/{vm => mm}/on-fault-limit.c         | 0
 tools/testing/selftests/{vm => mm}/pkey-helpers.h           | 0
 tools/testing/selftests/{vm => mm}/pkey-powerpc.h           | 0
 tools/testing/selftests/{vm => mm}/pkey-x86.h               | 0
 tools/testing/selftests/{vm => mm}/protection_keys.c        | 0
 tools/testing/selftests/{vm => mm}/run_vmtests.sh           | 0
 tools/testing/selftests/{vm => mm}/settings                 | 0
 tools/testing/selftests/{vm => mm}/soft-dirty.c             | 0
 tools/testing/selftests/{vm => mm}/split_huge_page_test.c   | 0
 tools/testing/selftests/{vm => mm}/test_hmm.sh              | 0
 tools/testing/selftests/{vm => mm}/test_vmalloc.sh          | 0
 tools/testing/selftests/{vm => mm}/thuge-gen.c              | 0
 tools/testing/selftests/{vm => mm}/transhuge-stress.c       | 0
 tools/testing/selftests/{vm => mm}/userfaultfd.c            | 0
 tools/testing/selftests/{vm => mm}/util.h                   | 0
 tools/testing/selftests/{vm => mm}/va_128TBswitch.c         | 0
 tools/testing/selftests/{vm => mm}/va_128TBswitch.sh        | 0
 tools/testing/selftests/{vm => mm}/virtual_address_range.c  | 0
 tools/testing/selftests/{vm => mm}/vm_util.c                | 0
 tools/testing/selftests/{vm => mm}/vm_util.h                | 0
 tools/testing/selftests/{vm => mm}/write_hugetlb_memory.sh  | 0
 tools/testing/selftests/{vm => mm}/write_to_hugetlbfs.c     | 0
 56 files changed, 7 insertions(+), 7 deletions(-)
 rename tools/testing/selftests/{vm => mm}/.gitignore (100%)
 rename tools/testing/selftests/{vm => mm}/Makefile (100%)
 rename tools/testing/selftests/{vm => mm}/charge_reserved_hugetlb.sh (100%)
 rename tools/testing/selftests/{vm => mm}/check_config.sh (100%)
 rename tools/testing/selftests/{vm => mm}/compaction_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/config (100%)
 rename tools/testing/selftests/{vm => mm}/cow.c (100%)
 rename tools/testing/selftests/{vm => mm}/gup_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/hmm-tests.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugepage-mmap.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugepage-mremap.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugepage-shm.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugepage-vmemmap.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugetlb-madvise.c (100%)
 rename tools/testing/selftests/{vm => mm}/hugetlb_reparenting_test.sh (100%)
 rename tools/testing/selftests/{vm => mm}/khugepaged.c (100%)
 rename tools/testing/selftests/{vm => mm}/ksm_functional_tests.c (100%)
 rename tools/testing/selftests/{vm => mm}/ksm_tests.c (100%)
 rename tools/testing/selftests/{vm => mm}/madv_populate.c (100%)
 rename tools/testing/selftests/{vm => mm}/map_fixed_noreplace.c (100%)
 rename tools/testing/selftests/{vm => mm}/map_hugetlb.c (100%)
 rename tools/testing/selftests/{vm => mm}/map_populate.c (100%)
 rename tools/testing/selftests/{vm => mm}/memfd_secret.c (100%)
 rename tools/testing/selftests/{vm => mm}/migration.c (100%)
 rename tools/testing/selftests/{vm => mm}/mlock-random-test.c (100%)
 rename tools/testing/selftests/{vm => mm}/mlock2-tests.c (100%)
 rename tools/testing/selftests/{vm => mm}/mlock2.h (100%)
 rename tools/testing/selftests/{vm => mm}/mrelease_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/mremap_dontunmap.c (100%)
 rename tools/testing/selftests/{vm => mm}/mremap_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/on-fault-limit.c (100%)
 rename tools/testing/selftests/{vm => mm}/pkey-helpers.h (100%)
 rename tools/testing/selftests/{vm => mm}/pkey-powerpc.h (100%)
 rename tools/testing/selftests/{vm => mm}/pkey-x86.h (100%)
 rename tools/testing/selftests/{vm => mm}/protection_keys.c (100%)
 rename tools/testing/selftests/{vm => mm}/run_vmtests.sh (100%)
 rename tools/testing/selftests/{vm => mm}/settings (100%)
 rename tools/testing/selftests/{vm => mm}/soft-dirty.c (100%)
 rename tools/testing/selftests/{vm => mm}/split_huge_page_test.c (100%)
 rename tools/testing/selftests/{vm => mm}/test_hmm.sh (100%)
 rename tools/testing/selftests/{vm => mm}/test_vmalloc.sh (100%)
 rename tools/testing/selftests/{vm => mm}/thuge-gen.c (100%)
 rename tools/testing/selftests/{vm => mm}/transhuge-stress.c (100%)
 rename tools/testing/selftests/{vm => mm}/userfaultfd.c (100%)
 rename tools/testing/selftests/{vm => mm}/util.h (100%)
 rename tools/testing/selftests/{vm => mm}/va_128TBswitch.c (100%)
 rename tools/testing/selftests/{vm => mm}/va_128TBswitch.sh (100%)
 rename tools/testing/selftests/{vm => mm}/virtual_address_range.c (100%)
 rename tools/testing/selftests/{vm => mm}/vm_util.c (100%)
 rename tools/testing/selftests/{vm => mm}/vm_util.h (100%)
 rename tools/testing/selftests/{vm => mm}/write_hugetlb_memory.sh (100%)
 rename tools/testing/selftests/{vm => mm}/write_to_hugetlbfs.c (100%)

diff --git a/Documentation/admin-guide/mm/hugetlbpage.rst b/Documentation/admin-guide/mm/hugetlbpage.rst
index 19f27c0d92e0..a969a2c742b2 100644
--- a/Documentation/admin-guide/mm/hugetlbpage.rst
+++ b/Documentation/admin-guide/mm/hugetlbpage.rst
@@ -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.
diff --git a/Documentation/core-api/pin_user_pages.rst b/Documentation/core-api/pin_user_pages.rst
index b18416f4500f..facafbdecb95 100644
--- a/Documentation/core-api/pin_user_pages.rst
+++ b/Documentation/core-api/pin_user_pages.rst
@@ -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:
 
diff --git a/MAINTAINERS b/MAINTAINERS
index 65426446f09a..ba0a8d292f2d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -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>
diff --git a/mm/Kconfig b/mm/Kconfig
index ff7b209dec05..39df30dcabe3 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -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
diff --git a/tools/testing/selftests/vm/.gitignore b/tools/testing/selftests/mm/.gitignore
similarity index 100%
rename from tools/testing/selftests/vm/.gitignore
rename to tools/testing/selftests/mm/.gitignore
diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/mm/Makefile
similarity index 100%
rename from tools/testing/selftests/vm/Makefile
rename to tools/testing/selftests/mm/Makefile
diff --git a/tools/testing/selftests/vm/charge_reserved_hugetlb.sh b/tools/testing/selftests/mm/charge_reserved_hugetlb.sh
similarity index 100%
rename from tools/testing/selftests/vm/charge_reserved_hugetlb.sh
rename to tools/testing/selftests/mm/charge_reserved_hugetlb.sh
diff --git a/tools/testing/selftests/vm/check_config.sh b/tools/testing/selftests/mm/check_config.sh
similarity index 100%
rename from tools/testing/selftests/vm/check_config.sh
rename to tools/testing/selftests/mm/check_config.sh
diff --git a/tools/testing/selftests/vm/compaction_test.c b/tools/testing/selftests/mm/compaction_test.c
similarity index 100%
rename from tools/testing/selftests/vm/compaction_test.c
rename to tools/testing/selftests/mm/compaction_test.c
diff --git a/tools/testing/selftests/vm/config b/tools/testing/selftests/mm/config
similarity index 100%
rename from tools/testing/selftests/vm/config
rename to tools/testing/selftests/mm/config
diff --git a/tools/testing/selftests/vm/cow.c b/tools/testing/selftests/mm/cow.c
similarity index 100%
rename from tools/testing/selftests/vm/cow.c
rename to tools/testing/selftests/mm/cow.c
diff --git a/tools/testing/selftests/vm/gup_test.c b/tools/testing/selftests/mm/gup_test.c
similarity index 100%
rename from tools/testing/selftests/vm/gup_test.c
rename to tools/testing/selftests/mm/gup_test.c
diff --git a/tools/testing/selftests/vm/hmm-tests.c b/tools/testing/selftests/mm/hmm-tests.c
similarity index 100%
rename from tools/testing/selftests/vm/hmm-tests.c
rename to tools/testing/selftests/mm/hmm-tests.c
diff --git a/tools/testing/selftests/vm/hugepage-mmap.c b/tools/testing/selftests/mm/hugepage-mmap.c
similarity index 100%
rename from tools/testing/selftests/vm/hugepage-mmap.c
rename to tools/testing/selftests/mm/hugepage-mmap.c
diff --git a/tools/testing/selftests/vm/hugepage-mremap.c b/tools/testing/selftests/mm/hugepage-mremap.c
similarity index 100%
rename from tools/testing/selftests/vm/hugepage-mremap.c
rename to tools/testing/selftests/mm/hugepage-mremap.c
diff --git a/tools/testing/selftests/vm/hugepage-shm.c b/tools/testing/selftests/mm/hugepage-shm.c
similarity index 100%
rename from tools/testing/selftests/vm/hugepage-shm.c
rename to tools/testing/selftests/mm/hugepage-shm.c
diff --git a/tools/testing/selftests/vm/hugepage-vmemmap.c b/tools/testing/selftests/mm/hugepage-vmemmap.c
similarity index 100%
rename from tools/testing/selftests/vm/hugepage-vmemmap.c
rename to tools/testing/selftests/mm/hugepage-vmemmap.c
diff --git a/tools/testing/selftests/vm/hugetlb-madvise.c b/tools/testing/selftests/mm/hugetlb-madvise.c
similarity index 100%
rename from tools/testing/selftests/vm/hugetlb-madvise.c
rename to tools/testing/selftests/mm/hugetlb-madvise.c
diff --git a/tools/testing/selftests/vm/hugetlb_reparenting_test.sh b/tools/testing/selftests/mm/hugetlb_reparenting_test.sh
similarity index 100%
rename from tools/testing/selftests/vm/hugetlb_reparenting_test.sh
rename to tools/testing/selftests/mm/hugetlb_reparenting_test.sh
diff --git a/tools/testing/selftests/vm/khugepaged.c b/tools/testing/selftests/mm/khugepaged.c
similarity index 100%
rename from tools/testing/selftests/vm/khugepaged.c
rename to tools/testing/selftests/mm/khugepaged.c
diff --git a/tools/testing/selftests/vm/ksm_functional_tests.c b/tools/testing/selftests/mm/ksm_functional_tests.c
similarity index 100%
rename from tools/testing/selftests/vm/ksm_functional_tests.c
rename to tools/testing/selftests/mm/ksm_functional_tests.c
diff --git a/tools/testing/selftests/vm/ksm_tests.c b/tools/testing/selftests/mm/ksm_tests.c
similarity index 100%
rename from tools/testing/selftests/vm/ksm_tests.c
rename to tools/testing/selftests/mm/ksm_tests.c
diff --git a/tools/testing/selftests/vm/madv_populate.c b/tools/testing/selftests/mm/madv_populate.c
similarity index 100%
rename from tools/testing/selftests/vm/madv_populate.c
rename to tools/testing/selftests/mm/madv_populate.c
diff --git a/tools/testing/selftests/vm/map_fixed_noreplace.c b/tools/testing/selftests/mm/map_fixed_noreplace.c
similarity index 100%
rename from tools/testing/selftests/vm/map_fixed_noreplace.c
rename to tools/testing/selftests/mm/map_fixed_noreplace.c
diff --git a/tools/testing/selftests/vm/map_hugetlb.c b/tools/testing/selftests/mm/map_hugetlb.c
similarity index 100%
rename from tools/testing/selftests/vm/map_hugetlb.c
rename to tools/testing/selftests/mm/map_hugetlb.c
diff --git a/tools/testing/selftests/vm/map_populate.c b/tools/testing/selftests/mm/map_populate.c
similarity index 100%
rename from tools/testing/selftests/vm/map_populate.c
rename to tools/testing/selftests/mm/map_populate.c
diff --git a/tools/testing/selftests/vm/memfd_secret.c b/tools/testing/selftests/mm/memfd_secret.c
similarity index 100%
rename from tools/testing/selftests/vm/memfd_secret.c
rename to tools/testing/selftests/mm/memfd_secret.c
diff --git a/tools/testing/selftests/vm/migration.c b/tools/testing/selftests/mm/migration.c
similarity index 100%
rename from tools/testing/selftests/vm/migration.c
rename to tools/testing/selftests/mm/migration.c
diff --git a/tools/testing/selftests/vm/mlock-random-test.c b/tools/testing/selftests/mm/mlock-random-test.c
similarity index 100%
rename from tools/testing/selftests/vm/mlock-random-test.c
rename to tools/testing/selftests/mm/mlock-random-test.c
diff --git a/tools/testing/selftests/vm/mlock2-tests.c b/tools/testing/selftests/mm/mlock2-tests.c
similarity index 100%
rename from tools/testing/selftests/vm/mlock2-tests.c
rename to tools/testing/selftests/mm/mlock2-tests.c
diff --git a/tools/testing/selftests/vm/mlock2.h b/tools/testing/selftests/mm/mlock2.h
similarity index 100%
rename from tools/testing/selftests/vm/mlock2.h
rename to tools/testing/selftests/mm/mlock2.h
diff --git a/tools/testing/selftests/vm/mrelease_test.c b/tools/testing/selftests/mm/mrelease_test.c
similarity index 100%
rename from tools/testing/selftests/vm/mrelease_test.c
rename to tools/testing/selftests/mm/mrelease_test.c
diff --git a/tools/testing/selftests/vm/mremap_dontunmap.c b/tools/testing/selftests/mm/mremap_dontunmap.c
similarity index 100%
rename from tools/testing/selftests/vm/mremap_dontunmap.c
rename to tools/testing/selftests/mm/mremap_dontunmap.c
diff --git a/tools/testing/selftests/vm/mremap_test.c b/tools/testing/selftests/mm/mremap_test.c
similarity index 100%
rename from tools/testing/selftests/vm/mremap_test.c
rename to tools/testing/selftests/mm/mremap_test.c
diff --git a/tools/testing/selftests/vm/on-fault-limit.c b/tools/testing/selftests/mm/on-fault-limit.c
similarity index 100%
rename from tools/testing/selftests/vm/on-fault-limit.c
rename to tools/testing/selftests/mm/on-fault-limit.c
diff --git a/tools/testing/selftests/vm/pkey-helpers.h b/tools/testing/selftests/mm/pkey-helpers.h
similarity index 100%
rename from tools/testing/selftests/vm/pkey-helpers.h
rename to tools/testing/selftests/mm/pkey-helpers.h
diff --git a/tools/testing/selftests/vm/pkey-powerpc.h b/tools/testing/selftests/mm/pkey-powerpc.h
similarity index 100%
rename from tools/testing/selftests/vm/pkey-powerpc.h
rename to tools/testing/selftests/mm/pkey-powerpc.h
diff --git a/tools/testing/selftests/vm/pkey-x86.h b/tools/testing/selftests/mm/pkey-x86.h
similarity index 100%
rename from tools/testing/selftests/vm/pkey-x86.h
rename to tools/testing/selftests/mm/pkey-x86.h
diff --git a/tools/testing/selftests/vm/protection_keys.c b/tools/testing/selftests/mm/protection_keys.c
similarity index 100%
rename from tools/testing/selftests/vm/protection_keys.c
rename to tools/testing/selftests/mm/protection_keys.c
diff --git a/tools/testing/selftests/vm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh
similarity index 100%
rename from tools/testing/selftests/vm/run_vmtests.sh
rename to tools/testing/selftests/mm/run_vmtests.sh
diff --git a/tools/testing/selftests/vm/settings b/tools/testing/selftests/mm/settings
similarity index 100%
rename from tools/testing/selftests/vm/settings
rename to tools/testing/selftests/mm/settings
diff --git a/tools/testing/selftests/vm/soft-dirty.c b/tools/testing/selftests/mm/soft-dirty.c
similarity index 100%
rename from tools/testing/selftests/vm/soft-dirty.c
rename to tools/testing/selftests/mm/soft-dirty.c
diff --git a/tools/testing/selftests/vm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
similarity index 100%
rename from tools/testing/selftests/vm/split_huge_page_test.c
rename to tools/testing/selftests/mm/split_huge_page_test.c
diff --git a/tools/testing/selftests/vm/test_hmm.sh b/tools/testing/selftests/mm/test_hmm.sh
similarity index 100%
rename from tools/testing/selftests/vm/test_hmm.sh
rename to tools/testing/selftests/mm/test_hmm.sh
diff --git a/tools/testing/selftests/vm/test_vmalloc.sh b/tools/testing/selftests/mm/test_vmalloc.sh
similarity index 100%
rename from tools/testing/selftests/vm/test_vmalloc.sh
rename to tools/testing/selftests/mm/test_vmalloc.sh
diff --git a/tools/testing/selftests/vm/thuge-gen.c b/tools/testing/selftests/mm/thuge-gen.c
similarity index 100%
rename from tools/testing/selftests/vm/thuge-gen.c
rename to tools/testing/selftests/mm/thuge-gen.c
diff --git a/tools/testing/selftests/vm/transhuge-stress.c b/tools/testing/selftests/mm/transhuge-stress.c
similarity index 100%
rename from tools/testing/selftests/vm/transhuge-stress.c
rename to tools/testing/selftests/mm/transhuge-stress.c
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/mm/userfaultfd.c
similarity index 100%
rename from tools/testing/selftests/vm/userfaultfd.c
rename to tools/testing/selftests/mm/userfaultfd.c
diff --git a/tools/testing/selftests/vm/util.h b/tools/testing/selftests/mm/util.h
similarity index 100%
rename from tools/testing/selftests/vm/util.h
rename to tools/testing/selftests/mm/util.h
diff --git a/tools/testing/selftests/vm/va_128TBswitch.c b/tools/testing/selftests/mm/va_128TBswitch.c
similarity index 100%
rename from tools/testing/selftests/vm/va_128TBswitch.c
rename to tools/testing/selftests/mm/va_128TBswitch.c
diff --git a/tools/testing/selftests/vm/va_128TBswitch.sh b/tools/testing/selftests/mm/va_128TBswitch.sh
similarity index 100%
rename from tools/testing/selftests/vm/va_128TBswitch.sh
rename to tools/testing/selftests/mm/va_128TBswitch.sh
diff --git a/tools/testing/selftests/vm/virtual_address_range.c b/tools/testing/selftests/mm/virtual_address_range.c
similarity index 100%
rename from tools/testing/selftests/vm/virtual_address_range.c
rename to tools/testing/selftests/mm/virtual_address_range.c
diff --git a/tools/testing/selftests/vm/vm_util.c b/tools/testing/selftests/mm/vm_util.c
similarity index 100%
rename from tools/testing/selftests/vm/vm_util.c
rename to tools/testing/selftests/mm/vm_util.c
diff --git a/tools/testing/selftests/vm/vm_util.h b/tools/testing/selftests/mm/vm_util.h
similarity index 100%
rename from tools/testing/selftests/vm/vm_util.h
rename to tools/testing/selftests/mm/vm_util.h
diff --git a/tools/testing/selftests/vm/write_hugetlb_memory.sh b/tools/testing/selftests/mm/write_hugetlb_memory.sh
similarity index 100%
rename from tools/testing/selftests/vm/write_hugetlb_memory.sh
rename to tools/testing/selftests/mm/write_hugetlb_memory.sh
diff --git a/tools/testing/selftests/vm/write_to_hugetlbfs.c b/tools/testing/selftests/mm/write_to_hugetlbfs.c
similarity index 100%
rename from tools/testing/selftests/vm/write_to_hugetlbfs.c
rename to tools/testing/selftests/mm/write_to_hugetlbfs.c
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 5/5] Docs/admin-guide/mm/numaperf: increase depth of subsections
  2023-01-03 18:07 SeongJae Park
                   ` (3 preceding siblings ...)
  2023-01-03 18:07 ` [PATCH 4/5] selftests/vm: rename selftets/vm to selftests/mm SeongJae Park
@ 2023-01-03 18:07 ` SeongJae Park
  4 siblings, 0 replies; 9+ messages in thread
From: SeongJae Park @ 2023-01-03 18:07 UTC (permalink / raw)
  To: akpm; +Cc: Jonathan Corbet, linux-mm, linux-doc, linux-kernel, SeongJae Park

Each section of numaperf.rst has zero depth, and therefore be exposed to
the index of admin-guide/mm.  Especially 'See Also' section on the index
makes the document weird.  Hide the sections from the index by giving
the document a title and increasing the depth of each section.

Signed-off-by: SeongJae Park <sj@kernel.org>
---
 Documentation/admin-guide/mm/numaperf.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/admin-guide/mm/numaperf.rst b/Documentation/admin-guide/mm/numaperf.rst
index 166697325947..27868797621c 100644
--- a/Documentation/admin-guide/mm/numaperf.rst
+++ b/Documentation/admin-guide/mm/numaperf.rst
@@ -1,6 +1,9 @@
 .. _numaperf:
 
-=============
+================
+NUMA Performance
+================
+
 NUMA Locality
 =============
 
@@ -61,7 +64,6 @@ that are CPUs and hence suitable for generic task scheduling, and
 IO initiators such as GPUs and NICs.  Unlike access class 0, only
 nodes containing CPUs are considered.
 
-================
 NUMA Performance
 ================
 
@@ -96,7 +98,6 @@ for the platform.
 Access class 1 takes the same form but only includes values for CPU to
 memory activity.
 
-==========
 NUMA Cache
 ==========
 
@@ -170,7 +171,6 @@ The "size" is the number of bytes provided by this cache level.
 The "write_policy" will be 0 for write-back, and non-zero for
 write-through caching.
 
-========
 See Also
 ========
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 3/5] tools/vm: rename tools/vm to tools/mm
  2023-01-03 18:07 ` [PATCH 3/5] tools/vm: rename tools/vm to tools/mm SeongJae Park
@ 2026-10-19 12:36   ` Dan Carpenter
  2026-10-19 13:53     ` SJ Park
  0 siblings, 1 reply; 9+ messages in thread
From: Dan Carpenter @ 2026-10-19 12:36 UTC (permalink / raw)
  To: SeongJae Park
  Cc: Andrew Morton, Jonathan Corbet, linux-mm, linux-doc, linux-kernel

On Tue, Jan 03, 2023 at 06:07:52PM +0000, SeongJae Park wrote:
> Rename tools/vm to tools/mm for being more consistent with the code and
> documentation directories, and won't be confused with virtual machines.
> 
> Signed-off-by: SeongJae Park <sj@kernel.org>
> ---
>  Documentation/admin-guide/mm/idle_page_tracking.rst | 2 +-
>  Documentation/admin-guide/mm/pagemap.rst            | 4 ++--
>  Documentation/mm/page_owner.rst                     | 2 +-
>  Documentation/mm/slub.rst                           | 2 +-
>  Documentation/translations/zh_CN/mm/page_owner.rst  | 2 +-
>  MAINTAINERS                                         | 2 +-
>  mm/Kconfig.debug                                    | 2 +-
>  mm/memory-failure.c                                 | 2 +-
>  tools/{vm => mm}/.gitignore                         | 0
>  tools/{vm => mm}/Makefile                           | 0
>  tools/{vm => mm}/page-types.c                       | 0
>  tools/{vm => mm}/page_owner_sort.c                  | 0
>  tools/{vm => mm}/slabinfo-gnuplot.sh                | 0
>  tools/{vm => mm}/slabinfo.c                         | 0
>  14 files changed, 9 insertions(+), 9 deletions(-)
>  rename tools/{vm => mm}/.gitignore (100%)
>  rename tools/{vm => mm}/Makefile (100%)
>  rename tools/{vm => mm}/page-types.c (100%)
>  rename tools/{vm => mm}/page_owner_sort.c (100%)
>  rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%)
>  rename tools/{vm => mm}/slabinfo.c (100%)

Is there a reason we left the tools/vm directory even though
it's empy?  Is it for backwards compatability or something?

regards,
dan carpenter



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 3/5] tools/vm: rename tools/vm to tools/mm
  2026-10-19 12:36   ` Dan Carpenter
@ 2026-10-19 13:53     ` SJ Park
  2026-10-19 14:56       ` Dan Carpenter
  0 siblings, 1 reply; 9+ messages in thread
From: SJ Park @ 2026-10-19 13:53 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: SJ Park, Andrew Morton, Jonathan Corbet, linux-mm, linux-doc,
	linux-kernel

Hello Dan,

On Mon, 19 Oct 2026 15:36:14 +0300 Dan Carpenter <error27@gmail.com> wrote:

> On Tue, Jan 03, 2023 at 06:07:52PM +0000, SeongJae Park wrote:
> > Rename tools/vm to tools/mm for being more consistent with the code and
> > documentation directories, and won't be confused with virtual machines.
> > 
> > Signed-off-by: SeongJae Park <sj@kernel.org>
> > ---
> >  Documentation/admin-guide/mm/idle_page_tracking.rst | 2 +-
> >  Documentation/admin-guide/mm/pagemap.rst            | 4 ++--
> >  Documentation/mm/page_owner.rst                     | 2 +-
> >  Documentation/mm/slub.rst                           | 2 +-
> >  Documentation/translations/zh_CN/mm/page_owner.rst  | 2 +-
> >  MAINTAINERS                                         | 2 +-
> >  mm/Kconfig.debug                                    | 2 +-
> >  mm/memory-failure.c                                 | 2 +-
> >  tools/{vm => mm}/.gitignore                         | 0
> >  tools/{vm => mm}/Makefile                           | 0
> >  tools/{vm => mm}/page-types.c                       | 0
> >  tools/{vm => mm}/page_owner_sort.c                  | 0
> >  tools/{vm => mm}/slabinfo-gnuplot.sh                | 0
> >  tools/{vm => mm}/slabinfo.c                         | 0
> >  14 files changed, 9 insertions(+), 9 deletions(-)
> >  rename tools/{vm => mm}/.gitignore (100%)
> >  rename tools/{vm => mm}/Makefile (100%)
> >  rename tools/{vm => mm}/page-types.c (100%)
> >  rename tools/{vm => mm}/page_owner_sort.c (100%)
> >  rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%)
> >  rename tools/{vm => mm}/slabinfo.c (100%)
> 
> Is there a reason we left the tools/vm directory even though
> it's empy?  Is it for backwards compatability or something?

No, I think this patch didn't leave tools/vm/.  I cannot see that on my tree:

    $ git log -1 799fb82aa132fa3a3886b7872997a5a84e820062
    commit 799fb82aa132fa3a3886b7872997a5a84e820062 (HEAD)
    Author: SeongJae Park <sj@kernel.org>
    Date:   Tue Jan 3 18:07:52 2023 +0000
    
        tools/vm: rename tools/vm to tools/mm
    
        Rename tools/vm to tools/mm for being more consistent with the code and
        documentation directories, and won't be confused with virtual machines.
    
        Link: https://lkml.kernel.org/r/20230103180754.129637-4-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>
    $ git show 799fb82aa132fa3a3886b7872997a5a84e820062:tools/vm
    fatal: path 'tools/vm' does not exist in '799fb82aa132fa3a3886b7872997a5a84e820062'

If your local tree has some git-untracked hidden files under tools/vm/
directory, the directory might not be removed.  That could made you think this
patch left the directory?


Thanks,
SJ

[...]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 3/5] tools/vm: rename tools/vm to tools/mm
  2026-10-19 13:53     ` SJ Park
@ 2026-10-19 14:56       ` Dan Carpenter
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Carpenter @ 2026-10-19 14:56 UTC (permalink / raw)
  To: SJ Park; +Cc: Andrew Morton, Jonathan Corbet, linux-mm, linux-doc, linux-kernel

On Mon, Oct 19, 2026 at 06:53:54AM -0700, SJ Park wrote:
> Hello Dan,
> 
> On Mon, 19 Oct 2026 15:36:14 +0300 Dan Carpenter <error27@gmail.com> wrote:
> 
> > On Tue, Jan 03, 2023 at 06:07:52PM +0000, SeongJae Park wrote:
> > > Rename tools/vm to tools/mm for being more consistent with the code and
> > > documentation directories, and won't be confused with virtual machines.
> > > 
> > > Signed-off-by: SeongJae Park <sj@kernel.org>
> > > ---
> > >  Documentation/admin-guide/mm/idle_page_tracking.rst | 2 +-
> > >  Documentation/admin-guide/mm/pagemap.rst            | 4 ++--
> > >  Documentation/mm/page_owner.rst                     | 2 +-
> > >  Documentation/mm/slub.rst                           | 2 +-
> > >  Documentation/translations/zh_CN/mm/page_owner.rst  | 2 +-
> > >  MAINTAINERS                                         | 2 +-
> > >  mm/Kconfig.debug                                    | 2 +-
> > >  mm/memory-failure.c                                 | 2 +-
> > >  tools/{vm => mm}/.gitignore                         | 0
> > >  tools/{vm => mm}/Makefile                           | 0
> > >  tools/{vm => mm}/page-types.c                       | 0
> > >  tools/{vm => mm}/page_owner_sort.c                  | 0
> > >  tools/{vm => mm}/slabinfo-gnuplot.sh                | 0
> > >  tools/{vm => mm}/slabinfo.c                         | 0
> > >  14 files changed, 9 insertions(+), 9 deletions(-)
> > >  rename tools/{vm => mm}/.gitignore (100%)
> > >  rename tools/{vm => mm}/Makefile (100%)
> > >  rename tools/{vm => mm}/page-types.c (100%)
> > >  rename tools/{vm => mm}/page_owner_sort.c (100%)
> > >  rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%)
> > >  rename tools/{vm => mm}/slabinfo.c (100%)
> > 
> > Is there a reason we left the tools/vm directory even though
> > it's empy?  Is it for backwards compatability or something?
> 
> No, I think this patch didn't leave tools/vm/.  I cannot see that on my tree:
> 
>     $ git log -1 799fb82aa132fa3a3886b7872997a5a84e820062
>     commit 799fb82aa132fa3a3886b7872997a5a84e820062 (HEAD)
>     Author: SeongJae Park <sj@kernel.org>
>     Date:   Tue Jan 3 18:07:52 2023 +0000
>     
>         tools/vm: rename tools/vm to tools/mm
>     
>         Rename tools/vm to tools/mm for being more consistent with the code and
>         documentation directories, and won't be confused with virtual machines.
>     
>         Link: https://lkml.kernel.org/r/20230103180754.129637-4-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>
>     $ git show 799fb82aa132fa3a3886b7872997a5a84e820062:tools/vm
>     fatal: path 'tools/vm' does not exist in '799fb82aa132fa3a3886b7872997a5a84e820062'
> 
> If your local tree has some git-untracked hidden files under tools/vm/
> directory, the directory might not be removed.  That could made you think this
> patch left the directory?

Ah, yeah, you're right.

What happened was ChatGPT told me to type:

	make -C tools/testing/selftests/ TARGETS="vm" run_tests

That command is outdated since it's supposed to be mm instead of vm but
it creates an empty vm directory...  PEBKAC on me.

regards,
dan carpenter



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-19 15:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-03 18:07 SeongJae Park
2023-01-03 18:07 ` [PATCH 1/5] MAINTAINERS: add types to akpm/mm git trees entries SeongJae Park
2023-01-03 18:07 ` [PATCH 2/5] MAINTAINERS/MEMORY MANAGEMENT: Add tools/vm/ as managed files SeongJae Park
2023-01-03 18:07 ` [PATCH 3/5] tools/vm: rename tools/vm to tools/mm SeongJae Park
2026-10-19 12:36   ` Dan Carpenter
2026-10-19 13:53     ` SJ Park
2026-10-19 14:56       ` Dan Carpenter
2023-01-03 18:07 ` [PATCH 4/5] selftests/vm: rename selftets/vm to selftests/mm SeongJae Park
2023-01-03 18:07 ` [PATCH 5/5] Docs/admin-guide/mm/numaperf: increase depth of subsections SeongJae Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.