summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorShenghong Han <hanshenghong2019@email.szu.edu.cn>2022-03-24 18:08:50 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-03-24 19:06:44 -0700
commite7a3f6776905b4e0b61692add3d0808315379c89 (patch)
treee9fa1509ea072e20727edc65dda85ebb1993f0e2 /tools
parent8f9c447e2e2b53c2db4fac85fc42ecada8b39e52 (diff)
downloadlinux-e7a3f6776905b4e0b61692add3d0808315379c89.tar.bz2
tools/vm/page_owner_sort.c: two trivial fixes
1) There is an unused variable. It's better to delete it. 2) One case is missing in the usage(). Link: https://lkml.kernel.org/r/20211213164518.2461-1-hanshenghong2019@email.szu.edu.cn Signed-off-by: Shenghong Han <hanshenghong2019@email.szu.edu.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/vm/page_owner_sort.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/vm/page_owner_sort.c b/tools/vm/page_owner_sort.c
index c9fedc1806d5..284a5070402c 100644
--- a/tools/vm/page_owner_sort.c
+++ b/tools/vm/page_owner_sort.c
@@ -41,8 +41,6 @@ static struct block_list *list;
static int list_size;
static int max_size;
-struct block_list *block_head;
-
int read_block(char *buf, int buf_size, FILE *fin)
{
char *curr = buf, *const buf_end = buf + buf_size;
@@ -249,7 +247,8 @@ static void usage(void)
"-p Sort by pid.\n"
"-a Sort by memory allocate time.\n"
"-r Sort by memory release time.\n"
- "-c cull by comparing stacktrace instead of total block.\n"
+ "-c Cull by comparing stacktrace instead of total block.\n"
+ "-f Filter out the information of blocks whose memory has not been released.\n"
);
}