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

2019-01-18 Thread Tony Jones
On 1/18/19 5:12 PM, Tony Jones wrote: > On 1/17/19 1:45 AM, Seeteena Thoufeek wrote: > >> +from __future__ import print_function > > You don't need this unless you're actually requiring functionality that only > exists in v3. > For example, you need it to handle the suppress newline

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

2019-01-18 Thread Tony Jones
On 1/17/19 1:45 AM, Seeteena Thoufeek wrote: > +from __future__ import print_function You don't need this unless you're actually requiring functionality that only exists in v3. For example, you need it to handle the suppress newline functionality such as "end=". > def print_error_totals(): >

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

2019-01-17 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in failed-syscalls-by-pid.py. ``print`` is now a function rather than a statement. This should have no functional change. Fixes lambda syntax error. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria Please enter the commit message for your changes.