Commit af9522cf authored by Wu Fengguang's avatar Wu Fengguang Committed by Ingo Molnar

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

Signed-off-by: default avatarWu Fengguang <fengguang.wu@intel.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment