diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-04 10:24:37 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-04 10:24:37 -0400 |
commit | edc52deac624e4641211a325c23da2a73b01a85d (patch) | |
tree | e63b9da2b9a4476903b0a5255114f6a70e163511 /Documentation | |
parent | 13d0ab5ec29852a6925f612830fa9e822669ece6 (diff) |
perf report: Bail out if there are unrecognized options/arguments
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/perf_counter/builtin-report.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c index 7beedc6effa4..389ae2569f49 100644 --- a/Documentation/perf_counter/builtin-report.c +++ b/Documentation/perf_counter/builtin-report.c | |||
@@ -1094,10 +1094,16 @@ int cmd_report(int argc, const char **argv, const char *prefix) | |||
1094 | 1094 | ||
1095 | page_size = getpagesize(); | 1095 | page_size = getpagesize(); |
1096 | 1096 | ||
1097 | parse_options(argc, argv, options, report_usage, 0); | 1097 | argc = parse_options(argc, argv, options, report_usage, 0); |
1098 | 1098 | ||
1099 | setup_sorting(); | 1099 | setup_sorting(); |
1100 | 1100 | ||
1101 | /* | ||
1102 | * Any (unrecognized) arguments left? | ||
1103 | */ | ||
1104 | if (argc) | ||
1105 | usage_with_options(report_usage, options); | ||
1106 | |||
1101 | setup_pager(); | 1107 | setup_pager(); |
1102 | 1108 | ||
1103 | return __cmd_report(); | 1109 | return __cmd_report(); |