diff options
| author | Pekka Enberg <[email protected]> | 2010-01-19 17:26:11 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-01-20 06:20:08 +0000 |
| commit | b00eca8cd66029128615e8be9a19e284a950c0f2 (patch) | |
| tree | 6864cf18a60fc787ff85095963db813432bde8e1 | |
| parent | perf kmem: Increase "Hit" column length (diff) | |
| download | kernel-b00eca8cd66029128615e8be9a19e284a950c0f2.tar.gz kernel-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 <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Xiao Guangrong <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
| -rw-r--r-- | 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 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; } |
