OSDN Git Service

perf script python: add Python3 support to check-perf-trace.py
authorTony Jones <tonyj@suse.de>
Sat, 2 Mar 2019 01:18:59 +0000 (17:18 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Mar 2019 21:10:46 +0000 (18:10 -0300)
commit57e604b16362273af6a517abaa6cd1133a7fc732
treea2218c8ccbfb56bfa2ca51799da573bf84f25fc1
parentde2ec16bd438945813198d4de2339a396904c206
perf script python: add Python3 support to check-perf-trace.py

Support both Python 2 and Python 3 in the check-perf-trace.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 version of
Python2 is now v2.6

Signed-off-by: Tony Jones <tonyj@suse.de>
Cc: Tom Zanussi <tzanussi@gmail.com>
Link: http://lkml.kernel.org/r/20190302011903.2416-4-tonyj@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/check-perf-trace.py