projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4710327
)
perf kmem: Print usage help for unknown commands
author
Pekka Enberg
<
[email protected]
>
Tue, 19 Jan 2010 17:26:11 +0000
(19:26 +0200)
committer
Ingo Molnar
<
[email protected]
>
Wed, 20 Jan 2010 06:20:08 +0000
(07:20 +0100)
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: <
1263921971
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
tools/perf/builtin-kmem.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-kmem.c
b/tools/perf/builtin-kmem.c
index 33bb9dfb8e68e46df5152b0baf8b53e5abae047d..93c67bf53d2c96e391a649989ab6597728063b1c 100644
(file)
--- 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;
}