Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/mm: update the usage output to be more organized

Organize the usage options alphabetically and improve the description of
some options. Also separate the more complicated cull options from the
single use compare options.

Link: https://lkml.kernel.org/r/20231013190350.579407-6-audra@redhat.com
Signed-off-by: Audra Mitchell <audra@redhat.com>
Acked-by: Rafael Aquini <aquini@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Audra Mitchell and committed by
Andrew Morton
d8ea435f c6d5e490

+20 -13
+20 -13
tools/mm/page_owner_sort.c
··· 634 634 static void usage(void) 635 635 { 636 636 printf("Usage: ./page_owner_sort [OPTIONS] <input> <output>\n" 637 - "-m\t\tSort by total memory.\n" 638 - "-s\t\tSort by the stack trace.\n" 639 - "-t\t\tSort by times (default).\n" 640 - "-p\t\tSort by pid.\n" 641 - "-P\t\tSort by tgid.\n" 642 - "-n\t\tSort by task command name.\n" 643 - "-a\t\tSort by memory allocate time.\n" 644 - "-d\t\tPrint debug information.\n" 645 - "--pid <pidlist>\tSelect by pid. This selects the information of blocks whose process ID numbers appear in <pidlist>.\n" 646 - "--tgid <tgidlist>\tSelect by tgid. This selects the information of blocks whose Thread Group ID numbers appear in <tgidlist>.\n" 647 - "--name <cmdlist>\n\t\tSelect by command name. This selects the information of blocks whose command name appears in <cmdlist>.\n" 648 - "--cull <rules>\tCull by user-defined rules.<rules> is a single argument in the form of a comma-separated list with some common fields predefined\n" 649 - "--sort <order>\tSpecify sort order as: [+|-]key[,[+|-]key[,...]]\n" 637 + "-a\t\t\tSort by memory allocation time.\n" 638 + "-m\t\t\tSort by total memory.\n" 639 + "-n\t\t\tSort by task command name.\n" 640 + "-p\t\t\tSort by pid.\n" 641 + "-P\t\t\tSort by tgid.\n" 642 + "-s\t\t\tSort by the stacktrace.\n" 643 + "-t\t\t\tSort by number of times record is seen (default).\n\n" 644 + "--pid <pidlist>\t\tSelect by pid. This selects the information" 645 + " of\n\t\t\tblocks whose process ID numbers appear in <pidlist>.\n" 646 + "--tgid <tgidlist>\tSelect by tgid. This selects the information" 647 + " of\n\t\t\tblocks whose Thread Group ID numbers appear in " 648 + "<tgidlist>.\n" 649 + "--name <cmdlist>\tSelect by command name. This selects the" 650 + " information\n\t\t\tof blocks whose command name appears in" 651 + " <cmdlist>.\n" 652 + "--cull <rules>\t\tCull by user-defined rules. <rules> is a " 653 + "single\n\t\t\targument in the form of a comma-separated list " 654 + "with some\n\t\t\tcommon fields predefined (pid, tgid, comm, " 655 + "stacktrace, allocator)\n" 656 + "--sort <order>\t\tSpecify sort order as: [+|-]key[,[+|-]key[,...]]\n" 650 657 ); 651 658 } 652 659