Re: [PATCH v2] perf scripts python: Add Python 3 support to sctop.py

2019-01-18 Thread Tony Jones
On 1/17/19 1:45 AM, Seeteena Thoufeek wrote: > +from __future__ import print_function Again, you don't need this. > - print "\nsyscall events for %s:\n\n" % (for_comm), > + print("\nsyscall events for %s:\n\n" % (for_comm)), same comments regarding trail

[PATCH v2] perf scripts python: Add Python 3 support to sctop.py

2019-01-17 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in sctop.py.``print`` is now a function rather than a statement. This should have no functional change. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/sctop.py | 15 --- 1 file changed, 8 insertions(+), 7