selftests/powerpc: Count instructions under scheduler pressure
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Jul 2014 07:31:35 +0000 (17:31 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2014 04:11:30 +0000 (14:11 +1000)
commit86450f20fb0047266c374d1bcc66ba747bd6b44f
tree5c555ac7ac5e86b7c366d41b3e417eeb27a62850
parent1feaa87c2fd7d610d154a3b7b739870030d2a7aa
selftests/powerpc: Count instructions under scheduler pressure

Have a task eat some cpu while we are counting instructions to create
some scheduler pressure. The idea being to try and unearth any bugs we
have in counting that only appear when context switching is happening.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
tools/testing/selftests/powerpc/pmu/Makefile
tools/testing/selftests/powerpc/pmu/count_instructions.c