Skip to contentSkip to conversation

perf lock: show valid sort keys in usage

PATCH In review Marcin Slusarz 2 participants 4 messages Feb 22, 2011 – Feb 23, 2011 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf lock: show valid sort keys in usage

---
 tools/perf/builtin-lock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/builtin-lock.c +1 -1
index 2b36def..0305a40 100644
@@ -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()
 };
Signature · 1 line
1.7.4.rc3
#1 lore raw

Em Tue, Feb 22, 2011 at 06:45:57PM +0100, Marcin Slusarz escreveu:

Quoted 10 lines
---
 tools/perf/builtin-lock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/builtin-lock.c +0 -0
index 2b36def..0305a40 100644

tools/perf/builtin-lock.c static const char * const report_usage[] = { · line 899

Quoted 8 lines
tools/perf/builtin-lock.c +1 -1
@@ -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()
 };

Can you please add to tools/perf/Documentation/perf-lock.txt too?

Thanks,

- Arnaldo

#2 lore raw
Quoted 12 lines · Arnaldo Carvalho de Melo

Em Tue, Feb 22, 2011 at 06:45:57PM +0100, Marcin Slusarz escreveu:

Quoted 11 lines
---
 tools/perf/builtin-lock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/builtin-lock.c +0 -0
index 2b36def..0305a40 100644
@@ -893,7 +893,7 @@ static const char * const report_usage[] = {
 
Quoted 9 lines

tools/perf/builtin-lock.c static const char * const report_usage[] = { · line 899

Quoted 7 lines
tools/perf/builtin-lock.c +1 -1
 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()
 };

Can you please add to tools/perf/Documentation/perf-lock.txt too?

Sure.

---
From: Marcin Slusarz <[email protected]>
Subject: [PATCH] perf lock: document valid sort keys

---
 tools/perf/Documentation/perf-lock.txt |   12 ++++++++++--
 tools/perf/builtin-lock.c              |    2 +-
 2 files changed, 11 insertions(+), 3 deletions(-)
tools/perf/Documentation/perf-lock.txt +10 -2
index 921de25..4d3314b 100644
@@ -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]
tools/perf/builtin-lock.c +1 -1
index 2b7eb18..812ad26 100644
@@ -904,7 +904,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()
 };
Signature · 1 line
1.7.4.rc3
#3 lore raw

[tip:perf/core] perf lock: Document valid sort keys

Commit-ID:  9826e8329bc160e4cc58b83019f3f056965e42d0
Gitweb:     http://git.kernel.org/tip/9826e8329bc160e4cc58b83019f3f056965e42d0
Author:     Marcin Slusarz <[email protected]>
AuthorDate: Tue, 22 Feb 2011 21:53:12 +0100
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 23 Feb 2011 07:29:33 -0300

perf lock: Document valid sort keys

Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>

---
 tools/perf/Documentation/perf-lock.txt |   12 ++++++++++--
 tools/perf/builtin-lock.c              |    2 +-
 2 files changed, 11 insertions(+), 3 deletions(-)
tools/perf/Documentation/perf-lock.txt +10 -2
index 921de25..4a26a2f 100644
@@ -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]
tools/perf/builtin-lock.c +1 -1
index e00d938..2e93f99 100644
@@ -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()
 };