diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/perf_counter/kerneltop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/perf_counter/kerneltop.c b/Documentation/perf_counter/kerneltop.c index 0bd3c13150b1..81a68aac137f 100644 --- a/Documentation/perf_counter/kerneltop.c +++ b/Documentation/perf_counter/kerneltop.c | |||
@@ -387,6 +387,9 @@ int do_perfstat(int argc, char *argv[]) | |||
387 | argc -= optind; | 387 | argc -= optind; |
388 | argv += optind; | 388 | argv += optind; |
389 | 389 | ||
390 | if (!argc) | ||
391 | display_help(); | ||
392 | |||
390 | /* | 393 | /* |
391 | * Enable counters and exec the command: | 394 | * Enable counters and exec the command: |
392 | */ | 395 | */ |