提交 edc52dea 编写于 作者: I Ingo Molnar

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: NIngo Molnar <mingo@elte.hu>
上级 13d0ab5e
...@@ -1094,10 +1094,16 @@ int cmd_report(int argc, const char **argv, const char *prefix) ...@@ -1094,10 +1094,16 @@ int cmd_report(int argc, const char **argv, const char *prefix)
page_size = getpagesize(); page_size = getpagesize();
parse_options(argc, argv, options, report_usage, 0); argc = parse_options(argc, argv, options, report_usage, 0);
setup_sorting(); setup_sorting();
/*
* Any (unrecognized) arguments left?
*/
if (argc)
usage_with_options(report_usage, options);
setup_pager(); setup_pager();
return __cmd_report(); return __cmd_report();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册