perf_counter tools: Document '--' option parsing terminator
authorMike Galbraith <efault@gmx.de>
Thu, 28 May 2009 14:25:34 +0000 (16:25 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 28 May 2009 22:02:33 +0000 (00:02 +0200)
Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/Documentation/perf-record.txt
Documentation/perf_counter/Documentation/perf-stat.txt
Documentation/perf_counter/builtin-record.c
Documentation/perf_counter/builtin-stat.c

index 353db1bb98abfb0a663dc24f4c81596c2f38b142..a93d2ec6176a34e639ed07c9564bcb42a9cf703e 100644 (file)
@@ -9,6 +9,7 @@ SYNOPSIS
 --------
 [verse]
 'perf record' [-e <EVENT> | --event=EVENT] [-l] [-a] <command>
+'perf record' [-e <EVENT> | --event=EVENT] [-l] [-a] -- <command> [<options>]
 
 DESCRIPTION
 -----------
index 7fcab271e570a237ecba53b2d708fa504eb860cc..828c59ff5f5d1f68ec23f21dbfc63f8109f08293 100644 (file)
@@ -9,6 +9,7 @@ SYNOPSIS
 --------
 [verse]
 'perf stat' [-e <EVENT> | --event=EVENT] [-l] [-a] <command>
+'perf stat' [-e <EVENT> | --event=EVENT] [-l] [-a] -- <command> [<options>]
 
 DESCRIPTION
 -----------
index 4a068664a32aa7c5ac3bca5e863fa648b55ada90..23d1224ce98c2d05bcbd36bc42ca64e7042e45fd 100644 (file)
@@ -397,7 +397,8 @@ static int __cmd_record(int argc, const char **argv)
 }
 
 static const char * const record_usage[] = {
-       "perf record [<options>] <command>",
+       "perf record [<options>] [<command>]",
+       "perf record [<options>] -- <command> [<options>]",
        NULL
 };
 
index ce661e2fa8ddd5da8fab84b8bb34e4c7cc5e16e5..ac14086d9a706aedd0f2a447671b8bf9f48f226c 100644 (file)
@@ -212,6 +212,7 @@ static void skip_signal(int signo)
 
 static const char * const stat_usage[] = {
        "perf stat [<options>] <command>",
+       "perf stat [<options>] -- <command> [<options>]",
        NULL
 };