From c5657320a283f8652efc09de2068845f9956afcd Mon Sep 17 00:00:00 2001 From: jharper5 Date: Tue, 14 May 2024 08:31:41 -0700 Subject: [PATCH] fix event filtering --- src/prepare_perf_events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prepare_perf_events.py b/src/prepare_perf_events.py index c236645..8daeba5 100644 --- a/src/prepare_perf_events.py +++ b/src/prepare_perf_events.py @@ -63,8 +63,8 @@ def is_cpu_event(line): if ( (len(tmp_list) == 1 or tmp_list[0] == "cpu" or tmp_list[0].startswith("cstate")) and "OCR." not in line - and "uops_retired.ms" not in line - and "int_misc.unknown_branch_cycles" not in line + and "uops_retired.ms" not in line.lower() + and "int_misc.unknown_branch_cycles" not in line.lower() and "power/" not in line ): return True