lockstat: Report avg wait and hold times
authorDavidlohr Bueso <davidlohr@hp.com>
Wed, 9 Oct 2013 03:37:16 +0000 (20:37 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2013 06:19:08 +0000 (08:19 +0200)
commit1232e3807f597748d437ab8680873af21fa81da9
tree71761745e731220a8e2e971e1a093ab227732f06
parent2a929242ee50db84c1a561c81897bb0551f2c32f
lockstat: Report avg wait and hold times

While both the nr and total times are showed, having the avg
lock hold and wait times show in the report is quite useful when
working on performance related issues. Furthermore, I find
myself constantly doing the calculations manually.

In addition, some of the documentation examples were changed to
easily update them to show the two new columns. No textual
change otherwise, as descriptions match the lockstat output.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Cc: aswin@hp.com
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1380746928.2313.14.camel@buesod1.americas.hpqcorp.net
[ Fixlets: changed a seq_printf() to seq_puts(), converted spaces to tabs. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Documentation/lockstat.txt
kernel/lockdep_proc.c