[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-b00eca8cd66029128615e8be9a19e284a950c0f2@git.kernel.org>
Date: Wed, 20 Jan 2010 07:13:26 GMT
From: tip-bot for Pekka Enberg <penberg@...helsinki.fi>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, acme@...hat.com, paulus@...ba.org,
hpa@...or.com, mingo@...hat.com, lizf@...fujitsu.com,
a.p.zijlstra@...llo.nl, penberg@...helsinki.fi,
xiaoguangrong@...fujitsu.com, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:perf/urgent] perf kmem: Print usage help for unknown commands
Commit-ID: b00eca8cd66029128615e8be9a19e284a950c0f2
Gitweb: http://git.kernel.org/tip/b00eca8cd66029128615e8be9a19e284a950c0f2
Author: Pekka Enberg <penberg@...helsinki.fi>
AuthorDate: Tue, 19 Jan 2010 19:26:11 +0200
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Wed, 20 Jan 2010 07:20:08 +0100
perf kmem: Print usage help for unknown commands
This patch fixes "perf kmem" to print usage help instead of
doing nothing.
Signed-off-by: Pekka Enberg <penberg@...helsinki.fi>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Paul Mackerras <paulus@...ba.org>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Li Zefan <lizf@...fujitsu.com>
Cc: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
LKML-Reference: <1263921971-10782-1-git-send-email-penberg@...helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
tools/perf/builtin-kmem.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c
index 33bb9df..93c67bf 100644
--- a/tools/perf/builtin-kmem.c
+++ b/tools/perf/builtin-kmem.c
@@ -784,7 +784,8 @@ int cmd_kmem(int argc, const char **argv, const char *prefix __used)
setup_sorting(&alloc_sort, default_sort_order);
return __cmd_kmem();
- }
+ } else
+ usage_with_options(kmem_usage, kmem_options);
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists