]> git.baikalelectronics.ru Git - kernel.git/commit
latencytop: fix per task accumulator
authorKen Chen <kenchen@google.com>
Thu, 11 Nov 2010 22:05:16 +0000 (14:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Nov 2010 15:55:31 +0000 (07:55 -0800)
commit822663233cd16c6d9883b5da89dd9445d21ca27b
tree1af8d367a68ddcc8868500aa70da21e1eb7ddf5a
parenta08f41c9f441c13f69b0450f2056ef658456d3bd
latencytop: fix per task accumulator

Per task latencytop accumulator prematurely terminates due to erroneous
placement of latency_record_count.  It should be incremented whenever a
new record is allocated instead of increment on every latencytop event.

Also fix search iterator to only search known record events instead of
blindly searching all pre-allocated space.

Signed-off-by: Ken Chen <kenchen@google.com>
Reviewed-by: Arjan van de Ven <arjan@infradead.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/latencytop.c