Skip to content

Commit

Permalink
toplev: Handle perf 6.2+ -Ixxxx output without leading white space
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Jul 13, 2023
1 parent 9f1ac50 commit 2b4d176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toplev.py
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,7 @@ def do_execute(rlist, summary, evstr, flat_rmap, out, rest, resoff, revnum):
if prun.skip_first_line():
continue
if args.interval:
m = re.match(r"\s+([0-9.]{9,}|SUMMARY);(.*)", l)
m = re.match(r"\s*([0-9.]{9,}|SUMMARY);(.*)", l)
if m:
interval = float(m.group(1)) if m.group(1) != "SUMMARY" else 0.0
l = m.group(2)
Expand Down

0 comments on commit 2b4d176

Please sign in to comment.