diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-07-23 17:31:36 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-28 14:11:31 +1000 |
commit | 7d3fa96851e9475f3ac06d3dd94994b3ea05f689 (patch) | |
tree | 4119d60321d50cb79e5bd6b7b4c9e229f105983a /lib | |
parent | 86450f20fb0047266c374d1bcc66ba747bd6b44f (diff) | |
download | op-kernel-dev-7d3fa96851e9475f3ac06d3dd94994b3ea05f689.zip op-kernel-dev-7d3fa96851e9475f3ac06d3dd94994b3ea05f689.tar.gz |
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions