commit | cb96143defbd5516c351595d56b608ed915b525e | [log] [tgz] |
---|---|---|
author | Michael Ellerman <michael@ellerman.id.au> | Tue Aug 06 17:42:37 2013 +1000 |
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Wed Aug 14 14:57:10 2013 +1000 |
tree | 427dc6a4231f1c3b1ed9f7a327676223487d2b07 | |
parent | 2fae0d7ced53ef2e7b4d87d84986ec3ff7cf798f [diff] |
selftests: Add test of PMU instruction counting on powerpc 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>