Skip to contentSkip to conversation

LOCKSTAT: Add usage info to Documentation/lockstat.txt

PATCH In review Frank Rowand 1 participant 2 messages Nov 19, 2009 – Dec 6, 2009 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LOCKSTAT: Add usage info to Documentation/lockstat.txt

Add usage info to Documentation/lockstat.txt

---
Documentation/lockstat.txt | 12 12 + 0 - 0 !

 1 files changed, 12 insertions(+)
Documentation/lockstat.txt +12 -0
Index: b/Documentation/lockstat.txt
===================================================================
@@ -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
#1 lore raw

[tip:core/urgent] lockstat: Add usage info to Documentation/lockstat.txt

Commit-ID:  f5754bfd107b08edddaf871d676ec6fe0792d07a
Gitweb:     http://git.kernel.org/tip/f5754bfd107b08edddaf871d676ec6fe0792d07a
Author:     Frank Rowand <[email protected]>
AuthorDate: Thu, 19 Nov 2009 13:54:05 -0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sun, 6 Dec 2009 13:20:02 +0100

lockstat: Add usage info to Documentation/lockstat.txt

Add usage info to Documentation/lockstat.txt

LKML-Reference: <[email protected]>

---
 Documentation/lockstat.txt |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
Documentation/lockstat.txt +12 -0
index 9cb9138..65f4c79 100644
@@ -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