From 614e50bd58c0820b7bf17e795e3b7a097482c62a Mon Sep 17 00:00:00 2001 From: Wu Fengguang Date: Fri, 20 Mar 2009 10:08:10 +0800 Subject: [PATCH] --- yaml --- r: 147278 b: refs/heads/master c: af9522cf133e9be6da8525a46a9ed7e7659f0e1a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/Documentation/perf_counter/kerneltop.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f65c12529e9d..49419caebcf8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: dda7c02f33833bfa9412ba6f0e410b0a18b42c88 +refs/heads/master: af9522cf133e9be6da8525a46a9ed7e7659f0e1a diff --git a/trunk/Documentation/perf_counter/kerneltop.c b/trunk/Documentation/perf_counter/kerneltop.c index 0bd3c13150b1..81a68aac137f 100644 --- a/trunk/Documentation/perf_counter/kerneltop.c +++ b/trunk/Documentation/perf_counter/kerneltop.c @@ -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: */