Package: linux-perf-4.19
Version: 4.19.67-2+deb10u2
Severity: normal
Tags: upstream

perf embeds a python interpreter and the debian linux source package has
debian/rules.d/tools/perf/Makefile:MAKE_PERF += PYTHON=/usr/bin/python3

However, many of the scripts in tools/perf/scripts/python, executed via `perf
script [...]`, did not support python3 in the 4.19 release.

For example:
root@vdebian:~# perf script net_dropmonitor
  File "/usr/lib/perf_4.19-core/scripts/python/net_dropmonitor.py", line 53
    print "%25s %25s %25s" % ("LOCATION", "OFFSET", "COUNT")
                         ^
SyntaxError: invalid syntax
Error running python script 
/usr/lib/perf_4.19-core/scripts/python/net_dropmonitor.py
---

This issue was fixed upstream in the following series:
02b03ec383e0 perf script python: Add Python3 support to netdev-times.py
9b2700efc57f perf script python: Add Python3 support to 
failed-syscalls-by-pid.py
e4d053ddb4c4 perf script python: Add Python3 support to mem-phys-addr.py
8c42b9600e56 perf script python: Add Python3 support to net_dropmonitor.py
118af5bf799b perf script python: Add Python3 support to powerpc-hcalls.py
ee75a896ae53 perf script python: Add Python3 support to sctop.py
6d22d9991cf3 perf script python: Add Python3 support to stackcollapse.py
e985bf761db7 perf script python: Add Python3 support to stat-cpi.py
1d1b0dbb859d perf script python: Add Python3 support to syscall-counts.py
de667cce7f4f perf script python: Add Python3 support to syscall-counts-by-pid.py

Reply via email to