OSDN Git Service

perf script python: Add Python3 support to futex-contention.py
authorTony Jones <tonyj@suse.de>
Sat, 2 Mar 2019 01:18:58 +0000 (17:18 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Mar 2019 21:10:43 +0000 (18:10 -0300)
commitde2ec16bd438945813198d4de2339a396904c206
treedb43b6bb43701a50298463ab1ee73d0cde1a6142
parentb504d7f6876515b74c8e27a44ccdb22372616d97
perf script python: Add Python3 support to futex-contention.py

Support both Python2 and Python3 in the futex-contention.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>
Link: http://lkml.kernel.org/r/20190302011903.2416-3-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/futex-contention.py