From: Jinjiang Tu <tujinjiang@huawei.com>
To: <linux-mm@kvack.org>, <akpm@linux-foundation.org>,
<wangkefeng.wang@huawei.com>, <sunnanyong@huawei.com>,
<liushixin2@huawei.com>
Cc: <tujinjiang@huawei.com>
Subject: [PATCH 5/6] tools/vm/page_owner_sort: support sorting by module name
Date: Tue, 15 Aug 2023 20:52:50 +0800 [thread overview]
Message-ID: <20230815125251.2865852-6-tujinjiang@huawei.com> (raw)
In-Reply-To: <20230815125251.2865852-1-tujinjiang@huawei.com>
This patch adds new argument (i.e. source) for --sort option,
allows the items sorted by module name.
Signed-off-by: Jinjiang Tu <tujinjiang@huawei.com>
---
tools/mm/page_owner_sort.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/mm/page_owner_sort.c b/tools/mm/page_owner_sort.c
index 35acf6932d78..c2dc0b58a214 100644
--- a/tools/mm/page_owner_sort.c
+++ b/tools/mm/page_owner_sort.c
@@ -679,6 +679,8 @@ static bool parse_sort_args(const char *arg_str)
sc.cmps[i] = compare_txt;
else if (arg_type == ARG_ALLOCATOR)
sc.cmps[i] = compare_allocator;
+ else if (arg_type == ARG_MODULE)
+ sc.cmps[i] = compare_module;
else {
free_explode(args, size);
sc.size = 0;
--
2.25.1
next prev parent reply other threads:[~2023-08-15 11:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 12:52 [PATCH 0/6] page_owner: support filtering by module Jinjiang Tu
2023-08-15 12:52 ` [PATCH 1/6] mm/page_owner: support identifying pages allocated by modules Jinjiang Tu
2023-08-15 12:52 ` [PATCH 2/6] mm/page_owner: show modules allocating pages when oom occurred Jinjiang Tu
2023-08-15 14:24 ` kernel test robot
2023-08-15 15:48 ` kernel test robot
2023-08-15 12:52 ` [PATCH 3/6] tools/vm/page_owner_sort: support for selecting by module name Jinjiang Tu
2023-08-15 12:52 ` [PATCH 4/6] tools/vm/page_owner_sort: support for culling " Jinjiang Tu
2023-08-15 12:52 ` Jinjiang Tu [this message]
2023-08-15 12:52 ` [PATCH 6/6] Documentation: update document for page_owner Jinjiang Tu
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=20230815125251.2865852-6-tujinjiang@huawei.com \
--to=tujinjiang@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=liushixin2@huawei.com \
--cc=sunnanyong@huawei.com \
--cc=wangkefeng.wang@huawei.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox