Skip to contentSkip to conversation

tools-vm-rename-tools-vm-to-tools-mm.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 19, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: tools/vm: rename tools/vm to tools/mm
has been removed from the -mm tree. Its filename was
tools-vm-rename-tools-vm-to-tools-mm.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: tools/vm: rename tools/vm to tools/mm
Date: Tue, 3 Jan 2023 18:07:52 +0000

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

---

 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/mm/.gitignore                                 |    4 
 tools/mm/Makefile                                   |   32 
 tools/mm/page-types.c                               | 1396 +++++++++
 tools/mm/page_owner_sort.c                          |  897 +++++
 tools/mm/slabinfo-gnuplot.sh                        |  268 +
 tools/mm/slabinfo.c                                 | 1544 ++++++++++
 tools/vm/.gitignore                                 |    4 
 tools/vm/Makefile                                   |   32 
 tools/vm/page-types.c                               | 1396 ---------
 tools/vm/page_owner_sort.c                          |  897 -----
 tools/vm/slabinfo-gnuplot.sh                        |  268 -
 tools/vm/slabinfo.c                                 | 1544 ----------
 20 files changed, 4150 insertions(+), 4150 deletions(-)
Documentation/admin-guide/mm/idle_page_tracking.rst renamed from Documentation/admin-guide/mm/idle_page_tracking.rst~tools-vm-rename-tools-vm-to-tools-mm +1 -1
@@ -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.
Documentation/admin-guide/mm/pagemap.rst renamed from Documentation/admin-guide/mm/pagemap.rst~tools-vm-rename-tools-vm-to-tools-mm +2 -2
@@ -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
Documentation/mm/page_owner.rst renamed from Documentation/mm/page_owner.rst~tools-vm-rename-tools-vm-to-tools-mm +1 -1
@@ -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.
Documentation/mm/slub.rst renamed from Documentation/mm/slub.rst~tools-vm-rename-tools-vm-to-tools-mm +1 -1
@@ -21,7 +21,7 @@ slabs that have data in them. See "slabi
 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
Documentation/translations/zh_CN/mm/page_owner.rst renamed from Documentation/translations/zh_CN/mm/page_owner.rst~tools-vm-rename-tools-vm-to-tools-mm +1 -1
@@ -62,7 +62,7 @@ 使用方法
 
 1) 构建用户空间的帮助::
 
-	cd tools/vm
+	cd tools/mm
 	make page_owner_sort
 
 2) 启用page owner: 添加 "page_owner=on" 到 boot cmdline.
MAINTAINERS renamed from MAINTAINERS~tools-vm-rename-tools-vm-to-tools-mm +1 -1
@@ -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 <[email protected]>
mm/Kconfig.debug renamed from mm/Kconfig.debug~tools-vm-rename-tools-vm-to-tools-mm +1 -1
@@ -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.
mm/memory-failure.c renamed from mm/memory-failure.c~tools-vm-rename-tools-vm-to-tools-mm +1 -1
@@ -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 
tools/mm/.gitignore new file +4 -0
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-only
+slabinfo
+page-types
+page_owner_sort
tools/mm/Makefile new file +32 -0
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: GPL-2.0
+# Makefile for vm tools
+#
+include ../scripts/Makefile.include
+
+TARGETS=page-types slabinfo page_owner_sort
+
+LIB_DIR = ../lib/api
+LIBS = $(LIB_DIR)/libapi.a
+
+CFLAGS = -Wall -Wextra -I../lib/
+LDFLAGS = $(LIBS)
+
+all: $(TARGETS)
+
+$(TARGETS): $(LIBS)
+
+$(LIBS):
+	make -C $(LIB_DIR)
+
+%: %.c
+	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+
+clean:
+	$(RM) page-types slabinfo page_owner_sort
+	make -C $(LIB_DIR) clean
+
+sbindir ?= /usr/sbin
+
+install: all
+	install -d $(DESTDIR)$(sbindir)
+	install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)
tools/mm/page_owner_sort.c new file +897 -0

897 lines not on this page · raw message

tools/mm/page-types.c new file +1396 -0

1,396 lines not on this page · raw message

tools/mm/slabinfo.c new file +1544 -0

598 lines not on this page · raw message

tools/mm/slabinfo-gnuplot.sh new file +268 -0

268 lines not on this page · raw message

tools/vm/.gitignore deleted +0 -4

Lines of this file are not shown. View the raw message.

tools/vm/Makefile deleted +0 -32

Lines of this file are not shown. View the raw message.

tools/vm/page_owner_sort.c deleted +0 -897

897 lines not on this page · raw message

tools/vm/page-types.c deleted +0 -1396

1,396 lines not on this page · raw message

tools/vm/slabinfo.c deleted +0 -1544

1,544 lines not on this page · raw message

tools/vm/slabinfo-gnuplot.sh deleted +0 -268

268 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

_

Patches currently in -mm which might be from [email protected] are

mm-damon-core-update-kernel-doc-comments-for-damos-action-supports-of-each-damon-operations-set.patch mm-damon-core-update-kernel-doc-comments-for-damos-filters-supports-of-each-damon-operations-set.patch docs-mm-damon-index-mention-damos-on-the-intro.patch docs-admin-guide-mm-damon-usage-update-damos-actions-filters-supports-of-each-damon-operations-set.patch docs-mm-damon-add-a-maintainer-profile-for-damon.patch maintainers-damon-link-maintainer-profile-git-trees-and-website.patch selftests-damon-sysfs-hide-expected-write-failures.patch selftests-damon-debugfs_rm_non_contexts-hide-expected-write-error-messages.patch scripts-spelling-add-a-few-more-typos.patch

Part of the diff is not shown here. View the raw message.