Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187833
b: refs/heads/master
c: 84c6f88
h: refs/heads/master
i:
  187831: 78246ab
v: v3
  • Loading branch information
Hitoshi Mitake authored and Frederic Weisbecker committed Feb 27, 2010
1 parent 656a1f8 commit 228d303
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44ee63587dce85593c22497140db16f4e5027860
refs/heads/master: 84c6f88fc8265d7a712d7d6ed8fc1a878dfc84d1
6 changes: 6 additions & 0 deletions trunk/lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,12 @@ config LOCK_STAT

For more details, see Documentation/lockstat.txt

You can analyze lock events with "perf lock", subcommand of perf.
If you want to use "perf lock", you need to turn on CONFIG_EVENT_TRACING.

CONFIG_LOCK_STAT defines "contended" and "acquired" lock events.
(CONFIG_LOCKDEP defines "acquire" and "release" events.)

config DEBUG_LOCKDEP
bool "Lock dependency engine debugging"
depends on DEBUG_KERNEL && LOCKDEP
Expand Down
29 changes: 29 additions & 0 deletions trunk/tools/perf/Documentation/perf-lock.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
perf-lock(1)
============

NAME
----
perf-lock - Analyze lock events

SYNOPSIS
--------
[verse]
'perf lock' {record|report|trace}

DESCRIPTION
-----------
You can analyze various lock behaviours
and statistics with this 'perf lock' command.

'perf lock record <command>' records lock events
between start and end <command>. And this command
produces the file "perf.data" which contains tracing
results of lock events.

'perf lock trace' shows raw lock events.

'perf lock report' reports statistical data.

SEE ALSO
--------
linkperf:perf[1]
1 change: 1 addition & 0 deletions trunk/tools/perf/command-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ perf-top mainporcelain common
perf-trace mainporcelain common
perf-probe mainporcelain common
perf-kmem mainporcelain common
perf-lock mainporcelain common

0 comments on commit 228d303

Please sign in to comment.