lockstat: Add usage info to Documentation/lockstat.txt
authorFrank Rowand <frank.rowand@am.sony.com>
Thu, 19 Nov 2009 21:54:05 +0000 (13:54 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 6 Dec 2009 12:20:02 +0000 (13:20 +0100)
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>
Documentation/lockstat.txt

index 9cb9138..65f4c79 100644 (file)
@@ -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