aboutsummaryrefslogtreecommitdiffstats
path: root/tools/vm
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2015-11-05 21:45:25 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 22:34:48 -0500
commit0d00bf589f0f8976b5bccbb5bd03a497762b5545 (patch)
tree46b0a67f18eb218a87ec164e5877cf9088fbbabd /tools/vm
parent2651f6e7fe1c24b0a50691828edd392971d57d4f (diff)
tools/vm/slabinfo: fix alternate opts names
Fix mismatches between usage() output and real opts[] options. Add missing alternative opt names, e.g., '-S' had no '--Size' opts[] entry, etc. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/vm')
-rw-r--r--tools/vm/slabinfo.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/vm/slabinfo.c b/tools/vm/slabinfo.c
index 2e154f13c60e..de4974df4255 100644
--- a/tools/vm/slabinfo.c
+++ b/tools/vm/slabinfo.c
@@ -1294,12 +1294,14 @@ struct option opts[] = {
1294 { "first-alias", no_argument, NULL, 'f' }, 1294 { "first-alias", no_argument, NULL, 'f' },
1295 { "help", no_argument, NULL, 'h' }, 1295 { "help", no_argument, NULL, 'h' },
1296 { "inverted", no_argument, NULL, 'i'}, 1296 { "inverted", no_argument, NULL, 'i'},
1297 { "slabs", no_argument, NULL, 'l' },
1297 { "numa", no_argument, NULL, 'n' }, 1298 { "numa", no_argument, NULL, 'n' },
1298 { "ops", no_argument, NULL, 'o' }, 1299 { "ops", no_argument, NULL, 'o' },
1299 { "report", no_argument, NULL, 'r' },
1300 { "shrink", no_argument, NULL, 's' }, 1300 { "shrink", no_argument, NULL, 's' },
1301 { "slabs", no_argument, NULL, 'l' }, 1301 { "report", no_argument, NULL, 'r' },
1302 { "track", no_argument, NULL, 't'}, 1302 { "Size", no_argument, NULL, 'S'},
1303 { "tracking", no_argument, NULL, 't'},
1304 { "Totals", no_argument, NULL, 'T'},
1303 { "validate", no_argument, NULL, 'v' }, 1305 { "validate", no_argument, NULL, 'v' },
1304 { "zero", no_argument, NULL, 'z' }, 1306 { "zero", no_argument, NULL, 'z' },
1305 { "1ref", no_argument, NULL, '1'}, 1307 { "1ref", no_argument, NULL, '1'},