From f2582c95febbbee1de31cb5ebfe863f36aedec58 Mon Sep 17 00:00:00 2001 From: Paschalis Mpeis Date: Mon, 2 Jun 2025 08:22:45 +0100 Subject: [PATCH] [BOLT][NFC] Align fdata pattern ordering in link_fdata.py (#142102) The mispred and execnt values were originally recorded in reverse order and then consumed in the opposite order to compensate. This patch records and uses them in the same order (FDATA) for clarity. That order is: ``` ``` --- bolt/test/link_fdata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bolt/test/link_fdata.py b/bolt/test/link_fdata.py index bcf9a777922d..b6358fae1b8d 100755 --- a/bolt/test/link_fdata.py +++ b/bolt/test/link_fdata.py @@ -33,7 +33,7 @@ prefix_pat = re.compile(f"^# {args.prefix}: (.*)") # # # -fdata_pat = re.compile(r"([01].*) (?P\d+) (?P\d+)") +fdata_pat = re.compile(r"([01].*) (?P\d+) (?P\d+)") # Pre-aggregated profile: # {T|B|F|f} [:] [:] [] @@ -61,7 +61,7 @@ with open(args.input, "r") as f: preagg_match = preagg_pat.match(profile_line) nolbr_match = nolbr_pat.match(profile_line) if fdata_match: - src_dst, execnt, mispred = fdata_match.groups() + src_dst, mispred, execnt = fdata_match.groups() # Split by whitespaces not preceded by a backslash (negative lookbehind) chunks = re.split(r"(?