From 1afcc634329edd212b30ddf4c58a4ff1cfef7e4f Mon Sep 17 00:00:00 2001 From: Frank Rowand Date: Thu, 19 Nov 2009 13:54:05 -0800 Subject: [PATCH] --- yaml --- r: 175471 b: refs/heads/master c: f5754bfd107b08edddaf871d676ec6fe0792d07a h: refs/heads/master i: 175469: 3404428ba4544b6ced824fafc0a6c7495009181b 175467: fe77a88a230ed383671d8001eaae485e0be06c5c 175463: 53e53b8a04af833e5f83282f3172fbe20080d824 175455: 05aae9bb1b26e33e54ccc0c8755c83de4eb7ed78 v: v3 --- [refs] | 2 +- trunk/Documentation/lockstat.txt | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 8a31627ca878..23bc5e7c2538 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 109d71c6dd52ec08878c2c67eb4c0bd67fcbc80b +refs/heads/master: f5754bfd107b08edddaf871d676ec6fe0792d07a diff --git a/trunk/Documentation/lockstat.txt b/trunk/Documentation/lockstat.txt index 9cb9138f7a79..65f4c795015d 100644 --- a/trunk/Documentation/lockstat.txt +++ b/trunk/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