]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01efcb21f34f38841e5604f924bacbbfa9b345b0
treedb43b6bb43701a50298463ab1ee73d0cde1a6142
parent7013bd432a53a878fd83287ec220abdc016522a1
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