From 9f23a78ca5ebb1d44c58ad3c2c8a654d9725e4c8 Mon Sep 17 00:00:00 2001 From: Ed Baker Date: Fri, 25 Aug 2023 10:34:07 -0700 Subject: [PATCH] create_perf_json: Add EMR to freerunning counter checks Add EMR to the same check as SPR. Fixes "AssertionError: EMR: iio_free_running UNC_IIO_CLOCKTICKS_FREERUN 0". --- scripts/create_perf_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_perf_json.py b/scripts/create_perf_json.py index 9afb07b0..4974df3a 100644 --- a/scripts/create_perf_json.py +++ b/scripts/create_perf_json.py @@ -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