Skip to content

Commit

Permalink
lockstat: Add usage info to Documentation/lockstat.txt
Browse files Browse the repository at this point in the history
Add usage info to Documentation/lockstat.txt

Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <4B05BE7D.30500@am.sony.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Frank Rowand authored and Ingo Molnar committed Dec 6, 2009
1 parent 109d71c commit f5754bf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Documentation/lockstat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,20 @@ applicable).
It also tracks 4 contention points per class. A contention point is a call site
that had to wait on lock acquisition.

- CONFIGURATION

Lock statistics are enabled via CONFIG_LOCK_STATS.

- USAGE

Enable collection of statistics:

# echo 1 >/proc/sys/kernel/lock_stat

Disable collection of statistics:

# echo 0 >/proc/sys/kernel/lock_stat

Look at the current lock statistics:

( line numbers not part of actual output, done for clarity in the explanation
Expand Down

0 comments on commit f5754bf

Please sign in to comment.