summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-12-12 07:48:21 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-12 07:48:21 +0300
commit1e57c2186fc204ecd5e47f279d00eba3c3db245c (patch)
treeaad97e94afe668b2fe734ef28536627ec00860d8 /Documentation
parent756300983f11a1c6f9457d6d8f57354e0f0fe8d4 (diff)
parentea5b41f9d595be354f7a50e56b28c2d72e6e88a5 (diff)
downloadlinux-1e57c2186fc204ecd5e47f279d00eba3c3db245c.tar.xz
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: lockdep: Avoid out of bounds array reference in save_trace() futex: Take mmap_sem for get_user_pages in fault_in_user_writeable lockstat: Add usage info to Documentation/lockstat.txt lockstat: Fix min, max times in /proc/lock_stats
Diffstat (limited to 'Documentation')
-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