]> asedeno.scripts.mit.edu Git - linux.git/commit
perf script python: Add Python3 support to intel-pt-events.py
authorTony Jones <tonyj@suse.de>
Tue, 5 Mar 2019 16:19:02 +0000 (08:19 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Mar 2019 21:12:33 +0000 (18:12 -0300)
commitfdf2460c297f1bb2f3bd20b3b52903b267af9050
treeeaa985691694948a888daec730ec0b1eb5ac6234
parentc253c72e9d6723c8b078beb362f050059ef5de39
perf script python: Add Python3 support to intel-pt-events.py

Support both Python2 and Python3 in the intel-pt-events.py script

There may be differences in the ordering of output lines due to
differences in dictionary ordering etc.  However the format within lines
should be unchanged.

The use of 'from __future__' implies the minimum supported Python2 version
is now v2.6

Signed-off-by: Tony Jones <tonyj@suse.de>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: http://lkml.kernel.org/r/fd26acf9-0c0f-717f-9664-a3c33043ce19@suse.de
Signed-off-by: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/intel-pt-events.py