intel/perf: fix regex escaping
authorEric Engestrom <eric@igalia.com>
Fri, 24 Nov 2023 09:48:35 +0000 (09:48 +0000)
committerEric Engestrom <eric@engestrom.ch>
Tue, 28 Nov 2023 13:03:56 +0000 (13:03 +0000)
commit2525258917532bcc8b3dee6089ee235890e73ec6
tree57c5d62acc0a36cb73a157c3f65bbcfe2d707382
parent94ad18d1e7cc8f3613a275676a8273e47714a7b9
intel/perf: fix regex escaping

`\$` is interpreted before being passed to `re.search()`, but luckily
for us the escape is also invalid and because of that, python 3.12+
warns us about it.

Use a raw string instead, so that the `\` is passed untouched to
`re.search()`.

Fixes: aa04b47c6e43e6cc3561 ("intel/perf: add support for GtSlice/GtSliceXDualsubsliceY variables")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26355>
(cherry picked from commit 19420731123e850e10c68eb3cd672b00561c48d7)
.pick_status.json
src/intel/perf/gen_perf.py