Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lockstat: Add usage info to Documentation/lockstat.txt

Add usage info to Documentation/lockstat.txt

Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <4B05BE7D.30500@am.sony.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Frank Rowand and committed by
Ingo Molnar
f5754bfd 109d71c6

+12
+12
Documentation/lockstat.txt
··· 62 62 It also tracks 4 contention points per class. A contention point is a call site 63 63 that had to wait on lock acquisition. 64 64 65 + - CONFIGURATION 66 + 67 + Lock statistics are enabled via CONFIG_LOCK_STATS. 68 + 65 69 - USAGE 70 + 71 + Enable collection of statistics: 72 + 73 + # echo 1 >/proc/sys/kernel/lock_stat 74 + 75 + Disable collection of statistics: 76 + 77 + # echo 0 >/proc/sys/kernel/lock_stat 66 78 67 79 Look at the current lock statistics: 68 80