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 353db1b..a93d2ec 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 7fcab27..828c59f 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 4a06866..23d1224 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 ce661e2..ac14086 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
 };