From: Sergey Senozhatsky Date: Fri, 6 Nov 2015 02:45:25 +0000 (-0800) Subject: tools/vm/slabinfo: fix alternate opts names X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d00bf589f0f8976b5bccbb5bd03a497762b5545;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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[] = { { "first-alias", no_argument, NULL, 'f' }, { "help", no_argument, NULL, 'h' }, { "inverted", no_argument, NULL, 'i'}, + { "slabs", no_argument, NULL, 'l' }, { "numa", no_argument, NULL, 'n' }, { "ops", no_argument, NULL, 'o' }, - { "report", no_argument, NULL, 'r' }, { "shrink", no_argument, NULL, 's' }, - { "slabs", no_argument, NULL, 'l' }, - { "track", no_argument, NULL, 't'}, + { "report", no_argument, NULL, 'r' }, + { "Size", no_argument, NULL, 'S'}, + { "tracking", no_argument, NULL, 't'}, + { "Totals", no_argument, NULL, 'T'}, { "validate", no_argument, NULL, 'v' }, { "zero", no_argument, NULL, 'z' }, { "1ref", no_argument, NULL, '1'},