Skip to content

Commit

Permalink
Add hybrid pmu_prefix regular expression end of line substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
weilinwa committed Jun 6, 2024
1 parent d9c2faa commit 8ced75e
Show file tree
Hide file tree
Showing 4 changed files with 2,772 additions and 91 deletions.
4 changes: 4 additions & 0 deletions scripts/create_perf_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,10 @@ def fixup(form: str) -> str:
form = re.sub(rf'([^@]){name}([^a-zA-Z0-9_])',
rf'\1{pmu_prefix}@{name}@\2',
form, re.IGNORECASE)
form = re.sub(rf'([^@]){name}$',
rf'\1{pmu_prefix}@{name}@',
form, re.IGNORECASE)


changed = True
while changed:
Expand Down
Loading

0 comments on commit 8ced75e

Please sign in to comment.