From 0614ff8f150f8652921b3aa9a3b4ddc1403dcb99 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Mon, 22 Apr 2024 11:58:01 -0700 Subject: [PATCH] toplev: Workaround perf stat breakage --- toplev.py | 1 + 1 file changed, 1 insertion(+) diff --git a/toplev.py b/toplev.py index fba91ca5..be6542f1 100755 --- a/toplev.py +++ b/toplev.py @@ -2425,6 +2425,7 @@ def do_execute(rlist, summary, evstr, flat_rmap, out, rest, resoff, revnum): # code later relies on stripping ku flags event = remove_qual(event) + event = re.sub(r'\s+\[.*\]', '', event) # duplicated duration_time in perf ~6.5. was already added from the first. if event == "duration_time" and count == "":