Messages in this thread Patch in this message | | | From | Seeteena Thoufeek <> | Subject | [PATCH] perf scripts python: Add Python 3 support to stackcollapse.py | Date | Wed, 16 Jan 2019 21:53:41 +0530 |
| |
Support both Python 2 and Python 3 in stackcollapse.py. ``print`` is now a function rather than a statement. This should have no functional change.
Signed-off-by: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com> Reviewed-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> --- tools/perf/scripts/python/stackcollapse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/scripts/python/stackcollapse.py b/tools/perf/scripts/python/stackcollapse.py index 1697b5e..3edeb7e 100755 --- a/tools/perf/scripts/python/stackcollapse.py +++ b/tools/perf/scripts/python/stackcollapse.py @@ -123,4 +123,4 @@ def trace_end(): list = lines.keys() list.sort() for stack in list: - print "%s %d" % (stack, lines[stack]) + print("%s %d" % (stack, lines[stack])) -- 1.8.3.1
| |