aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Rowand <[email protected]>2009-11-19 13:54:05 -0800
committerIngo Molnar <[email protected]>2009-12-06 13:20:02 +0100
commitf5754bfd107b08edddaf871d676ec6fe0792d07a (patch)
treede98963fe232dd2d8578710b8db31e2d72d28f3c
parent109d71c6dd52ec08878c2c67eb4c0bd67fcbc80b (diff)
lockstat: Add usage info to Documentation/lockstat.txt
Add usage info to Documentation/lockstat.txt Signed-off-by: Frank Rowand <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--Documentation/lockstat.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/lockstat.txt b/Documentation/lockstat.txt
index 9cb9138f7a79..65f4c795015d 100644
--- a/Documentation/lockstat.txt
+++ 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