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