summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2010-01-19 19:26:11 +0200
committerIngo Molnar <mingo@elte.hu>2010-01-20 07:20:08 +0100
commitb00eca8cd66029128615e8be9a19e284a950c0f2 (patch)
tree6864cf18a60fc787ff85095963db813432bde8e1 /tools
parent47103277f8861dcb48ab845533db331ddb9427ca (diff)
downloadlinux-rpi-b00eca8cd66029128615e8be9a19e284a950c0f2.tar.gz
linux-rpi-b00eca8cd66029128615e8be9a19e284a950c0f2.tar.bz2
linux-rpi-b00eca8cd66029128615e8be9a19e284a950c0f2.zip
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@cs.helsinki.fi> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Li Zefan <lizf@cn.fujitsu.com> Cc: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> LKML-Reference: <1263921971-10782-1-git-send-email-penberg@cs.helsinki.fi> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-kmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c
index 33bb9dfb8e68..93c67bf53d2c 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;
}