Skip to content

Commit d1eec3e

Browse files
namhyungacmel
authored andcommitted
perf lock: Document lock info subcommand
The commit 26242d8 ("perf lock: Add "info" subcommand for dumping misc information") added the subcommand but missed documentation. Add it. Also update stale 'trace' subcommand to 'script'. Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1327827356-8786-5-git-send-email-namhyung@gmail.com Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 008953d commit d1eec3e

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

‎tools/perf/Documentation/perf-lock.txt‎

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ perf-lock - Analyze lock events
88
SYNOPSIS
99
--------
1010
[verse]
11-
'perf lock' {record|report|trace}
11+
'perf lock' {record|report|script|info}
1212

1313
DESCRIPTION
1414
-----------
@@ -20,10 +20,13 @@ and statistics with this 'perf lock' command.
2020
produces the file "perf.data" which contains tracing
2121
results of lock events.
2222

23-
'perf lock trace' shows raw lock events.
24-
2523
'perf lock report' reports statistical data.
2624

25+
'perf lock script' shows raw lock events.
26+
27+
'perf lock info' shows metadata like threads or addresses
28+
of lock instances.
29+
2730
COMMON OPTIONS
2831
--------------
2932

@@ -47,6 +50,17 @@ REPORT OPTIONS
4750
Sorting key. Possible values: acquired (default), contended,
4851
wait_total, wait_max, wait_min.
4952

53+
INFO OPTIONS
54+
------------
55+
56+
-t::
57+
--threads::
58+
dump thread list in perf.data
59+
60+
-m::
61+
--map::
62+
dump map of lock instances (address:name table)
63+
5064
SEE ALSO
5165
--------
5266
linkperf:perf[1]

‎tools/perf/builtin-lock.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,12 +922,12 @@ static const struct option info_options[] = {
922922
OPT_BOOLEAN('t', "threads", &info_threads,
923923
"dump thread list in perf.data"),
924924
OPT_BOOLEAN('m', "map", &info_map,
925-
"map of lock instances (name:address table)"),
925+
"map of lock instances (address:name table)"),
926926
OPT_END()
927927
};
928928

929929
static const char * const lock_usage[] = {
930-
"perf lock [<options>] {record|trace|report}",
930+
"perf lock [<options>] {record|report|script|info}",
931931
NULL
932932
};
933933

0 commit comments

Comments
 (0)