]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - tools/perf/Documentation/perf-lock.txt
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[mirror_ubuntu-jammy-kernel.git] / tools / perf / Documentation / perf-lock.txt
CommitLineData
84c6f88f
HM
1perf-lock(1)
2============
3
4NAME
5----
6perf-lock - Analyze lock events
7
8SYNOPSIS
9--------
10[verse]
d1eec3ec 11'perf lock' {record|report|script|info}
84c6f88f
HM
12
13DESCRIPTION
14-----------
15You can analyze various lock behaviours
16and statistics with this 'perf lock' command.
17
18 'perf lock record <command>' records lock events
19 between start and end <command>. And this command
20 produces the file "perf.data" which contains tracing
21 results of lock events.
22
84c6f88f
HM
23 'perf lock report' reports statistical data.
24
d1eec3ec
NK
25 'perf lock script' shows raw lock events.
26
27 'perf lock info' shows metadata like threads or addresses
28 of lock instances.
29
9826e832
MS
30COMMON OPTIONS
31--------------
4aace251
SB
32
33-i::
34--input=<file>::
efad1415 35 Input file name. (default: perf.data unless stdin is a fifo)
4aace251
SB
36
37-v::
38--verbose::
39 Be more verbose (show symbol address, etc).
40
41-D::
42--dump-raw-trace::
43 Dump raw trace in ASCII.
44
38ba1daf
SJ
45-f::
46--force::
4da6552c 47 Don't complain, do it.
38ba1daf 48
9826e832
MS
49REPORT OPTIONS
50--------------
51
52-k::
53--key=<value>::
54 Sorting key. Possible values: acquired (default), contended,
f37376cd 55 avg_wait, wait_total, wait_max, wait_min.
9826e832 56
d1eec3ec
NK
57INFO OPTIONS
58------------
59
60-t::
61--threads::
62 dump thread list in perf.data
63
64-m::
65--map::
66 dump map of lock instances (address:name table)
67
84c6f88f
HM
68SEE ALSO
69--------
70linkperf:perf[1]