From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,zhen.ni@easystack.cn,vbabka@kernel.org,
skhan@linuxfoundation.org,rppt@kernel.org,rdunlap@infradead.org,
mhocko@suse.com,liam@infradead.org,kernel-dev@igalia.com,david@kernel.org,
corbet@lwn.net,mfo@igalia.com,akpm@linux-foundation.org
Subject: + mm-page_owner-document-shell-usage-of-page_owner-filters.patch added to mm-new branch
Date: Thu, 26 Nov 2026 17:30:03 -0800 [thread overview]
Message-ID: <20261127013003.C53D01F00893@smtp.kernel.org> (raw)
In-Reply-To: <20261126-page_owner_filter_shell-v1-1-cbbcff2fcb08@igalia.com>
The patch titled
Subject: mm/page_owner: document shell usage of page_owner filters
has been added to the -mm mm-new branch. Its filename is
mm-page_owner-document-shell-usage-of-page_owner-filters.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-page_owner-document-shell-usage-of-page_owner-filters.patch
This patch will later appear in the mm-new branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews. Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.
The mm-new branch of mm.git is not included in linux-next
If a few days of testing in mm-new is successful, the patch will me moved
into mm.git's mm-unstable branch, which is included in linux-next
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Mauricio Faria de Oliveira <mfo@igalia.com>
Subject: mm/page_owner: document shell usage of page_owner filters
Date: Thu, 26 Nov 2026 13:40:02 -0300
Document how to use page_owner filters directly from the shell, without
relying on the page_owner_filter tool, with an example.
Link: https://patch.msgid.link/20261126-page_owner_filter_shell-v1-1-cbbcff2fcb08@igalia.com
Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: David Hildenbrand <david@kernel.org>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Zhen Ni <zhen.ni@easystack.cn>
Cc: <kernel-dev@igalia.com>
Documentation/mm/page_owner.rst | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
--- a/Documentation/mm/page_owner.rst~mm-page_owner-document-shell-usage-of-page_owner-filters
+++ a/Documentation/mm/page_owner.rst
@@ -343,3 +343,21 @@ terminals you can run different filters
# Terminal 2: Filter node 1 (runs concurrently)
./page_owner_filter -n 1 > node1_output.txt
+
+The shell can also be used instead of the page_owner_filter tool, as long as the
+same file descriptor is used to write filter commands then read filtered output.
+For example, using file descriptor 3::
+
+ # Open file in read-write mode
+ exec 3<>/sys/kernel/debug/page_owner
+
+ # Write filter command(s)
+ echo 'mode=handle' >&3
+ # (and/or)
+ echo 'nid=0' >&3
+
+ # Read filtered output
+ cat <&3 >output.txt
+
+ # Close file
+ exec 3>&-
_
Patches currently in -mm which might be from mfo@igalia.com are
mm-page_owner-document-shell-usage-of-page_owner-filters.patch
scripts-bloat-o-meter-describe-output-fields-in-help-text.patch
prev parent reply other threads:[~2026-11-27 1:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 16:40 [PATCH] mm/page_owner: document shell usage of page_owner filters Mauricio Faria de Oliveira
2026-11-27 1:29 ` Andrew Morton
2026-11-27 1:30 ` Andrew Morton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127013003.C53D01F00893@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=corbet@lwn.net \
--cc=david@kernel.org \
--cc=kernel-dev@igalia.com \
--cc=liam@infradead.org \
--cc=mfo@igalia.com \
--cc=mhocko@suse.com \
--cc=mm-commits@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=rppt@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=vbabka@kernel.org \
--cc=zhen.ni@easystack.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.