]> git.baikalelectronics.ru Git - kernel.git/commit
perf scripts python: Let script to be python2 compliant
authorLeo Yan <leo.yan@linaro.org>
Mon, 25 Jul 2022 10:42:20 +0000 (18:42 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 Jul 2022 14:17:50 +0000 (11:17 -0300)
commit856dae6b33441392af0d907638c76a63d3ded0bc
tree3acee484f451b7b1672510994772a11fdd2b8e19
parent0916e046f0d5c4adb1641ac35b25e4402de45d5f
perf scripts python: Let script to be python2 compliant

The mainline kernel can be used for relative old distros, e.g. RHEL 7.
The distro doesn't upgrade from python2 to python3, this causes the
building error that the python script is not python2 compliant.

To fix the building failure, this patch changes from the python f-string
format to traditional string format.

Fixes: 9654b9dc54ef7afd ("perf scripts python: Support Arm CoreSight trace data disassembly")
Reported-by: Akemi Yagi <toracat@elrepo.org>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: ElRepo <contact@elrepo.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220725104220.1106663-1-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/arm-cs-trace-disasm.py