diff options
-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(); |