linux/tools/testing/selftests/powerpc
Michael Ellerman 7d3fa96851 selftests/powerpc: Count more instructions & use decimal
Although we expect some small discrepancies for very large counts, we
seem to be able to count up to 64 billion instructions without too much
skew, so do so.

Also switch to using decimals for the instruction counts. This just
makes it easier to visually compare the expected vs actual values, as
well as the raw result from instructions.

Before:

  instructions: result 68719476753 running/enabled 13101961654
  cycles: result 38077343785 running/enabled 13101725752
  Looped for 68719476736 instructions, overhead 17
  Expected 68719476753
  Actual   68719476753
  Delta    0, 0.000000%
  success: count_instructions

After:
  instructions: result 64000000016 running/enabled 12197599964
  cycles: result 35412471674 running/enabled 12197534110
  Looped for 64000000000 instructions, overhead 16
  Expected 64000000016
  Actual   64000000016
  Delta    0, 0.000000%
  success: count_instructions

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-07-28 14:11:31 +10:00
..
copyloops selftests/powerpc: Update for ABIv2 2014-04-23 11:41:07 +10:00
mm selftests/powerpc: Test the THP bug we fixed in the previous commit 2014-06-06 13:55:04 +10:00
pmu selftests/powerpc: Count more instructions & use decimal 2014-07-28 14:11:31 +10:00
tm selftests/powerpc: Use the test harness for the TM DSCR test 2014-06-24 14:29:41 +10:00
harness.c selftests/powerpc: Add support for skipping tests 2014-06-11 17:03:54 +10:00
Makefile selftests/powerpc: Don't ignore errors from sub Makefiles 2014-07-28 14:11:28 +10:00
subunit.h selftests/powerpc: Add support for skipping tests 2014-06-11 17:03:54 +10:00
utils.h selftests/powerpc: Add support for skipping tests 2014-06-11 17:03:54 +10:00