perf lock: Document valid sort keys
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 22 Feb 2011 20:53:12 +0000 (21:53 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Feb 2011 10:29:33 +0000 (07:29 -0300)
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20110222205312.GA18474@joi.lan>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-lock.txt
tools/perf/builtin-lock.c

index 921de259ea1086f36ce5b7e6a3426cec5618deba..4a26a2f3a6a39a2da7e3954fdc8fed59c6647f20 100644 (file)
@@ -24,8 +24,8 @@ and statistics with this 'perf lock' command.
 
   'perf lock report' reports statistical data.
 
-OPTIONS
--------
+COMMON OPTIONS
+--------------
 
 -i::
 --input=<file>::
@@ -39,6 +39,14 @@ OPTIONS
 --dump-raw-trace::
         Dump raw trace in ASCII.
 
+REPORT OPTIONS
+--------------
+
+-k::
+--key=<value>::
+        Sorting key. Possible values: acquired (default), contended,
+        wait_total, wait_max, wait_min.
+
 SEE ALSO
 --------
 linkperf:perf[1]
index e00d93847c44e4d33aed8fe5ede46d06e63914bd..2e93f99b148063a638016b3b874779e9c601ebdb 100644 (file)
@@ -893,7 +893,7 @@ static const char * const report_usage[] = {
 
 static const struct option report_options[] = {
        OPT_STRING('k', "key", &sort_key, "acquired",
-                   "key for sorting"),
+                   "key for sorting (acquired / contended / wait_total / wait_max / wait_min)"),
        /* TODO: type */
        OPT_END()
 };