Skip to content

Commit

Permalink
create_perf_json: Add EMR to freerunning counter checks
Browse files Browse the repository at this point in the history
Add EMR to the same check as SPR. Fixes "AssertionError: EMR:
iio_free_running UNC_IIO_CLOCKTICKS_FREERUN 0".
  • Loading branch information
edwarddavidbaker committed Aug 25, 2023
1 parent 6acae9d commit 9f23a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create_perf_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def freerunning_counter_type_and_index(shortname: str,
type = 2
elif 'WRCAS' in event_name:
type = 3
elif shortname in ['ICX', 'SNR', 'SPR']:
elif shortname in ['EMR', 'ICX', 'SNR', 'SPR']:
if pmu.startswith('iio_free_running'):
if 'CLOCKTICKS' in event_name:
type = 1
Expand Down

0 comments on commit 9f23a78

Please sign in to comment.