Re: [PATCH v2] perf scripts python: Add Python 3 support to syscall-counts-by-pid.py

2019-01-18 Thread Tony Jones
On 1/17/19 1:45 AM, Seeteena Thoufeek wrote: > - print "\nsyscall events for %s:\n\n" % (for_comm), > + print("\nsyscall events for %s:\n\n" % (for_comm)), > else: > - print "\nsyscall events by comm/pid:\n\n", > + print("\nsyscall events by comm/pid:\n\n"), >

[PATCH v2] perf scripts python: Add Python 3 support to syscall-counts-by-pid.py

2019-01-17 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in syscall-counts-by-pid.py. ``print`` is now a function rather than a statement. This should have no functional change. Fix lambda syntax error. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria ---