Skip to content

Commit

Permalink
Merge pull request avocado-framework-tests#2799 from AYUSHJAIN951/per…
Browse files Browse the repository at this point in the history
…f/perf_genericevents

Correct ref cycles raw codes
  • Loading branch information
PraveenPenguin authored Apr 23, 2024
2 parents b0b4599 + 9e88bd1 commit 40a48c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions perf/perf_genericevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def test(self):
self.log.info('FILE in %s is %s' % (dir, file))
if raw_code != self.hex_to_int(val):
nfail += 1
self.log.info('FAIL : Expected value is %s or %s but got '
'%s' % (val, self.hex_to_int(val), raw_code))
self.log.info('FAIL : Expected value is %s(hex: %s) but got '
'%s' % (self.hex_to_int(val), val, raw_code))
else:
self.log.info('PASS : Expected value: %s or %s and got '
'%s' % (val, self.hex_to_int(val), raw_code))
self.log.info('PASS : Expected value is %s(hex: %s) and got '
'%s' % (self.hex_to_int(val), val, raw_code))
if nfail != 0:
self.fail('Failed to verify generic PMU event codes')
8 changes: 4 additions & 4 deletions perf/perf_genericevents.py.data/raw_code.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ cache-references = 0xff60
cache-misses = 0x0964
branch-instructions = 0xc2
branch-misses = 0xc3
stalled-cycles-frontend = 0xa9
ref-cycles = 0x120
stalled-cycles-frontend = 0x00a9
ref-cycles = 0x100000120

[AMDZEN5]
cpu-cycles = 0x76
Expand All @@ -134,5 +134,5 @@ cache-references = 0xff60
cache-misses = 0x0964
branch-instructions = 0xc2
branch-misses = 0xc3
stalled-cycles-frontend = 0xa9
ref-cycles = 0x120
stalled-cycles-frontend = 0x00a9
ref-cycles = 0x100000120

0 comments on commit 40a48c7

Please sign in to comment.