All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] LOCKSTAT: Add usage info to Documentation/lockstat.txt
@ 2009-11-19 21:54 Frank Rowand
  2009-12-06 13:04 ` [tip:core/urgent] lockstat: " tip-bot for Frank Rowand
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Rowand @ 2009-11-19 21:54 UTC (permalink / raw)
  To: peterz, mingo; +Cc: tom.leiming, linux-kernel

Add usage info to Documentation/lockstat.txt

Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>

---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-06 13:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 21:54 [PATCH] LOCKSTAT: Add usage info to Documentation/lockstat.txt Frank Rowand
2009-12-06 13:04 ` [tip:core/urgent] lockstat: " tip-bot for Frank Rowand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.