selftests: Add test of PMU instruction counting on powerpc
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 6 Aug 2013 07:42:37 +0000 (17:42 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:57:10 +0000 (14:57 +1000)
This commit adds a test of instruction counting using the PMU on powerpc.

Although the bulk of the code is architecture agnostic, the code needs to
run a precisely sized loop which is implemented in assembler.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

No differences found