perf tools: Address python 3.6 DeprecationWarning for string scapes 30/313830/1 accepted/tizen/unified/x/20240703.103802
authorBenjamin Gray <bgray@linux.ibm.com>
Tue, 12 Sep 2023 06:07:59 +0000 (16:07 +1000)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 2 Jul 2024 09:35:54 +0000 (18:35 +0900)
commit2444777bade73db75a31bc1c70c2367070e8cb1b
tree8189f50f19fb2b9c1402007398b35c02f0440d4d
parent9bd94cfd8db25632de6dc91bc55b807206eed84d
perf tools: Address python 3.6 DeprecationWarning for string scapes

Python 3.6 introduced a DeprecationWarning for invalid escape sequences.
This is upgraded to a SyntaxWarning in Python 3.12, and will eventually
be a syntax error.

Fix these now to get ahead of it before it's an error.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mykola Lysenko <mykolal@fb.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Todd E Brandt <todd.e.brandt@linux.intel.com>
Cc: Tom Rix <trix@redhat.com>
Cc: linux-doc@vger.kernel.org
Cc: linux-ia64@vger.kernel.org
Cc: linux-kselftest@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: llvm@lists.linux.dev
Link: https://lore.kernel.org/r/20230912060801.95533-6-bgray@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
[sw0312.kim: cherry-pick the mainline commit 280b4e4a9e80 to resolve python 3.12 syntax warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I06385423db9dc27f2bd93adb0ed9f1db2c032e4c
tools/perf/pmu-events/jevents.py
tools/perf/scripts/python/arm-cs-trace-disasm.py
tools/perf/scripts/python/compaction-times.py
tools/perf/scripts/python/exported-sql-viewer.py