提交 af9522cf 编写于 作者: W Wu Fengguang 提交者: Ingo Molnar

perf_counter tools: when no command is feed to perfstat, display help and exit

Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
Acked-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 dda7c02f
......@@ -387,6 +387,9 @@ int do_perfstat(int argc, char *argv[])
argc -= optind;
argv += optind;
if (!argc)
display_help();
/*
* Enable counters and exec the command:
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册