OSDN Git Service

perf script python: Add Python3 support to event_analyzing_sample.py
authorTony Jones <tonyj@suse.de>
Sat, 2 Mar 2019 01:19:00 +0000 (17:19 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Mar 2019 21:11:11 +0000 (18:11 -0300)
commitc253c72e9d6723c8b078beb362f050059ef5de39
tree6dc05c3c5c97ec1a0033dd4483262a9c12125472
parent57e604b16362273af6a517abaa6cd1133a7fc732
perf script python: Add Python3 support to event_analyzing_sample.py

Support both Python2 and Python3 in the event_analyzing_sample.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>
Cc: Feng Tang <feng.tang@intel.com>
Link: http://lkml.kernel.org/r/20190302011903.2416-5-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/event_analyzing_sample.py