From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EDDEC54EBE for ; Tue, 3 Jan 2023 18:08:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 18B7A8E0001; Tue, 3 Jan 2023 13:08:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0EDA78E0005; Tue, 3 Jan 2023 13:08:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D70928E0001; Tue, 3 Jan 2023 13:08:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 94D078E0005 for ; Tue, 3 Jan 2023 13:08:05 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 5E01F1A0B63 for ; Tue, 3 Jan 2023 18:08:05 +0000 (UTC) X-FDA: 80314271730.18.138B013 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf23.hostedemail.com (Postfix) with ESMTP id B687014000E for ; Tue, 3 Jan 2023 18:08:03 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nBpRuw3E; spf=pass (imf23.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1672769283; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=cEbz8Gmrx4xcU0+lc35h62aOBbqid370B/zzB0TikXM=; b=D7KhEk91waNLwDrhkHlW6Vegil8xePgKs6jIU2GC5LpHLac4aTho5QsUe26oit/XmDQ04y IwH55/fiGWqmIX3o/vWmJpHqS7LcK+71igI2pHj80xW4kmeCTivOhvEodkQQpc/R3bTyKn wJ6oWvBZo5f4K11AqGYSrKDK5/rs1U0= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nBpRuw3E; spf=pass (imf23.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1672769283; a=rsa-sha256; cv=none; b=jBiGUY5EvzjMp0EC0FEm8QNTlCZgyD+fzVqxxM+eXQK/Wtxb+8KNjT1M+ohk5yXy9N0T2U taaJ6C7gwrCgftj7mPaoPp0ANi/KvXMm9p5QFKkyxm4yzPuH+HUriE/ayiUAk32xi8l1IH tUN2sNQi1LpZNyyPtserfKHJfFKc6AY= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D5BC4614C7; Tue, 3 Jan 2023 18:08:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA687C4339B; Tue, 3 Jan 2023 18:08:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672769282; bh=rnmBsFuUSLudytnhsoqP0P88PgJIqLj22g/9l6kDmp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nBpRuw3EasDD1MsN9xNfHnof3lqVUtDZ6Q5fqulIxjf2w5d77F2y9NmFOum/Sflpt cptwyYeAL36RX455MQktiHVEDt7dBn1jbBGhJdHWoWh5FMKhb+gzwWfSR1WfqdfJhF uBZhBevPZ0sdyz5KxlnwbHmzPqRwW4TqtH4LNPXgQqU+SUv6DVFnued4+1yaB8+IAN aCN0t6yG8fURILAOGxlM3Px5+pd+LS/29C5p2BuOtqpFv6/LijsxjP9AZd+ZyWWmqP Td4HpT6Pq97SeG/iy8X5QXjBYlgMzErf1d3aNpxvaXICUU3FQ4uMyX/EI1IAwCfVfC GR4ZdVLJF0sVw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] tools/vm: rename tools/vm to tools/mm Date: Tue, 3 Jan 2023 18:07:52 +0000 Message-Id: <20230103180754.129637-4-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230103180754.129637-1-sj@kernel.org> References: <20230103180754.129637-1-sj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Stat-Signature: iztaqw7c31xumk9wsmtyaie6o879c36g X-Rspam-User: X-Rspamd-Queue-Id: B687014000E X-Rspamd-Server: rspam06 X-HE-Tag: 1672769283-815643 X-HE-Meta: U2FsdGVkX19koMZ2CgOQrheZnZVm93Fo6wYfXf6FdsbumFQU2P15FwAKgB2lm7ZiLWJahbeXQPfH87FVpFHOfcBJfvJ9u3tK19kMcnqxEPWLCLJVW/vplo9iOVRu91eOmb4xkMCbuUQVeu/Nm3JR1vmnSFVggmGtw7IWwfouRbQfxspHjN4GeUJyka4mPL3BcfNObr4I3a2H65VFJ8tT15vMLG/CAUNGbib0trG7hAPCHXIaK/ayg8ewixOlDhIY6G+6McJqLAwaLb049AVyVK0U6z1Ar8yY0Xg8BGVufytQiW3A2OI3ManF+i21uFpSLc7GnDLkmLmN4jknecA40BOtg6O3p/ThlyI0g7PramM1/42YCmxVnYMvv96rmUNqGdIyssyk4QVHjne/ItXZiBLcKmpJ6G9GiGWR1YacZHn5fWwtArP+cWuNAa0KVb1IZxeaMRvnMJTw6fXnx0EU1IreIDiQhAqU7ZU1myZh/4XVtfk/BJ6Ct3EHUdcikc0WTggOO0y2IeX5qH+u2W/HveIwJa6RZftnotNB0Zk+zNakujgi4snDUGC9uuKXeYp0iakY1/b12QGbwYhkSnSOXlXsVvMqtassa3qV3IJ1S0FLp9dmopH0yPVfPG68Svh+WtsxQNSaoauvyh+t7/8E0yMVjCwHJoII0iP1PZ08BRwyhNvCLrD02QzpibtNE1IbpItvjumVwkokE/gIfzzlnTErZIq1q3Q+zj58LS9216fjaHN9UvT6MvD3dYy10GSuJahrqTccCLp5vfhDUlNm661fx/pmZ4ASBo0X+oz9ASHg9s9AAwiwG2KSEcQ30fTtgNBz5X+PBc4nn8Zybah5pjSuM8jH0ZWxCpGOOofJ9bCH5+MLV29E2OcNGWeNLyo3gdkEdnm0j2l+Z9XKqvShIX3FCU7NV9q3HEyJQLDAGe0lqM0/4xRciEsvQR+qc5BAdCJkDPhNPKw1W3ceBRf uUaLpKkH 4hJqDR//OZiagtaSOnVHlO/WP62JByr1yEONx X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 --- 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 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