summaryrefslogtreecommitdiff
path: root/tools/perf/include
diff options
context:
space:
mode:
authorTony Jones <tonyj@suse.de>2019-01-24 03:52:29 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-01-25 17:12:10 +0300
commit35ea7e4bbb89ecd32057f5f6a2a8feb0d7224e51 (patch)
tree95ee9fd3ea7347531d83c762d34ded5eaa16ffe0 /tools/perf/include
parenta38352de4495a6a4662609a560b2db4b03d6b352 (diff)
downloadlinux-35ea7e4bbb89ecd32057f5f6a2a8feb0d7224e51.tar.xz
perf script python: Add Python3 support to tests/attr.py
Support both Python 2 and Python 3 in tests/attr.py The use of "except as" syntax implies the minimum supported Python2 version is now v2.6 Committer testing: $ make -C tools/perf PYTHON3=python install-bin Before: # perf test attr 16: Setup struct perf_event_attr : FAILED! 48: Synthesize attr update : Ok [root@quaco ~]# perf test -v attr 16: Setup struct perf_event_attr : --- start --- test child forked, pid 3121 File "/home/acme/libexec/perf-core/tests/attr.py", line 324 except Unsup, obj: ^ SyntaxError: invalid syntax test child finished with -1 ---- end ---- Setup struct perf_event_attr: FAILED! 48: Synthesize attr update : --- start --- test child forked, pid 3124 test child finished with 0 ---- end ---- Synthesize attr update: Ok # After: # perf test attr 16: Setup struct perf_event_attr : Ok 48: Synthesize attr update : Ok # Signed-off-by: Tony Jones <tonyj@suse.de> Acked-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Cc: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/20190124005229.16146-7-tonyj@suse.de Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/include')
0 files changed, 0 insertions, 0 deletions