Skip to content

Commit

Permalink
perf lock: Document valid sort keys
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcin Slusarz authored and Arnaldo Carvalho de Melo committed Feb 23, 2011
1 parent 6435a5e commit 9826e83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions tools/perf/Documentation/perf-lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ and statistics with this 'perf lock' command.

'perf lock report' reports statistical data.

OPTIONS
-------
COMMON OPTIONS
--------------

-i::
--input=<file>::
Expand All @@ -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]
2 changes: 1 addition & 1 deletion tools/perf/builtin-lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
Expand Down

0 comments on commit 9826e83

Please sign in to comment.