[PATCH] tools/vm/page_owner_sort.c: Fix the instructions for use

From: Yixuan Cao
Date: Sat Feb 19 2022 - 09:32:03 EST


I noticed a discrepancy between the usage method and the code logic.

If we enable the -f option,
it should be
Filter out the information of blocks whose memory has been released.

Signed-off-by: Yixuan Cao <caoyixuan2019@xxxxxxxxxxxxxxxx>
---
tools/vm/page_owner_sort.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/vm/page_owner_sort.c b/tools/vm/page_owner_sort.c
index de7b547c26aa..c93984eb8c2f 100644
--- a/tools/vm/page_owner_sort.c
+++ b/tools/vm/page_owner_sort.c
@@ -252,7 +252,7 @@ static void usage(void)
"-a Sort by memory allocate time.\n"
"-r Sort by memory release time.\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"
+ "-f Filter out the information of blocks whose memory has been released.\n"
);
}

--
2.31.1