linux_dsm_epyc7002/tools/testing/selftests/powerpc/pmu
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
..
ebb selftests/powerpc: Move core_busy_loop() into asm 2014-07-28 14:11:29 +10:00
count_instructions.c selftests/powerpc: Count more instructions & use decimal 2014-07-28 14:11:31 +10:00
event.c selftests/powerpc: Add tests of PMU EBBs 2014-06-11 17:03:58 +10:00
event.h selftests/powerpc: Add tests of PMU EBBs 2014-06-11 17:03:58 +10:00
l3_bank_test.c selftests/powerpc: Add test of L3 bank handling 2014-07-28 14:11:30 +10:00
lib.c selftests/powerpc: Fix parse_proc_maps() 2014-07-28 14:11:28 +10:00
lib.h selftests/powerpc: Add tests of PMU EBBs 2014-06-11 17:03:58 +10:00
loop.S selftests/powerpc: Fix instruction loop for ABIv2 (LE) 2014-06-11 17:03:45 +10:00
Makefile selftests/powerpc: Count instructions under scheduler pressure 2014-07-28 14:11:30 +10:00