Skip to content
Snippets Groups Projects
Commit f5754bfd authored by Frank Rowand's avatar Frank Rowand Committed by Ingo Molnar
Browse files

lockstat: Add usage info to Documentation/lockstat.txt


Add usage info to Documentation/lockstat.txt

Signed-off-by: default avatarFrank Rowand <frank.rowand@am.sony.com>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <4B05BE7D.30500@am.sony.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 109d71c6
No related branches found
No related tags found
No related merge requests found
...@@ -62,8 +62,20 @@ applicable). ...@@ -62,8 +62,20 @@ applicable).
It also tracks 4 contention points per class. A contention point is a call site It also tracks 4 contention points per class. A contention point is a call site
that had to wait on lock acquisition. that had to wait on lock acquisition.
- CONFIGURATION
Lock statistics are enabled via CONFIG_LOCK_STATS.
- USAGE - 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: Look at the current lock statistics:
( line numbers not part of actual output, done for clarity in the explanation ( line numbers not part of actual output, done for clarity in the explanation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment