tools/vm/slabinfo: add sorting info to help menu
authorTobin C. Harding <[email protected]>
Fri, 12 Jul 2019 03:59:46 +0000 (20:59 -0700)
committerLinus Torvalds <[email protected]>
Fri, 12 Jul 2019 18:05:46 +0000 (11:05 -0700)
Passing more than one sorting option has undefined behaviour.

Add an explicit statement as such to the help menu, this also has the
advantage of highlighting all the sorting options.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Tobin C. Harding <[email protected]>
Cc: Alexander Duyck <[email protected]>
Cc: Brendan Gregg <[email protected]>,
Cc: Christoph Lameter <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Jesper Dangaard Brouer <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Qian Cai <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/vm/slabinfo.c

index 469ff6157986c9e8ea17f2fc5fd48476bbfa75a0..68092d15e12b5ffaaa1f974cf625a073ffe6797a 100644 (file)
@@ -148,6 +148,8 @@ static void usage(void)
                "    p | P              Poisoning\n"
                "    u | U              Tracking\n"
                "    t | T              Tracing\n"
+
+               "\nSorting options (--Loss, --Size, --Partial) are mutually exclusive\n"
        );
 }