Commit edc52dea authored by Ingo Molnar's avatar Ingo Molnar
Browse files

perf report: Bail out if there are unrecognized options/arguments

Cc: Peter Zijlstra <>
Cc: Mike Galbraith <>
Cc: Paul Mackerras <>
Cc: Arnaldo Carvalho de Melo <>
LKML-Reference: <new-submission>
Signed-off-by: default avatarIngo Molnar <>
parent 13d0ab5e
......@@ -1094,10 +1094,16 @@ int cmd_report(int argc, const char **argv, const char *prefix)
page_size = getpagesize();
parse_options(argc, argv, options, report_usage, 0);
argc = parse_options(argc, argv, options, report_usage, 0);
* Any (unrecognized) arguments left?
if (argc)
usage_with_options(report_usage, options);
return __cmd_report();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment