Skip to content

Commit b2f0246

Browse files
Tobin C. Hardingtorvalds
authored andcommitted
tools/vm/slabinfo: clean up usage menu debug items
Attempt to make the usage comment for debug options a little cleaner. Link: http://lkml.kernel.org/r/20190212001219.27769-5-tobin@kernel.org Signed-off-by: Tobin C. Harding <tobin@kernel.org> Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3c89ff9 commit b2f0246

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

tools/vm/slabinfo.c

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ static void usage(void)
114114
"-a|--aliases Show aliases\n"
115115
"-A|--activity Most active slabs first\n"
116116
"-B|--Bytes Show size in bytes\n"
117-
"-d<options>|--debug=<options> Set/Clear Debug options\n"
118117
"-D|--display-active Switch line format to activity\n"
119118
"-e|--empty Show empty slabs\n"
120119
"-f|--first-alias Show first alias\n"
@@ -136,14 +135,17 @@ static void usage(void)
136135
"-1|--1ref Single reference\n"
137136
"-X|--Xtotals Show extended summary information\n"
138137

139-
"\nValid debug options (FZPUT may be combined)\n"
140-
"a / A Switch on all debug options (=FZUP)\n"
141-
"- Switch off all debug options\n"
142-
"f / F Sanity Checks (SLAB_CONSISTENCY_CHECKS)\n"
143-
"z / Z Redzoning\n"
144-
"p / P Poisoning\n"
145-
"u / U Tracking\n"
146-
"t / T Tracing\n"
138+
"\n"
139+
"-d | --debug Switch off all debug options\n"
140+
"-da | --debug=a Switch on all debug options (--debug=FZPU)\n"
141+
142+
"\n"
143+
"-d[afzput] | --debug=[afzput]\n"
144+
" f | F Sanity Checks (SLAB_CONSISTENCY_CHECKS)\n"
145+
" z | Z Redzoning\n"
146+
" p | P Poisoning\n"
147+
" u | U Tracking\n"
148+
" t | T Tracing\n"
147149
);
148150
}
149151

0 commit comments

Comments
 (0)