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

From: Frank Rowand
Date: Thu Nov 19 2009 - 16:54:33 EST


Add usage info to Documentation/lockstat.txt

Signed-off-by: Frank Rowand <frank.rowand@xxxxxxxxxxx>

---
Documentation/lockstat.txt | 12 12 + 0 - 0 !
1 files changed, 12 insertions(+)

Index: b/Documentation/lockstat.txt
===================================================================
--- 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/