Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3238311imm; Fri, 20 Jul 2018 12:36:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeICYxujMT2yT2FDKB5bTuinV0t5dLn/y8gOpRkKZj2LtjWV1Mu9m8mCVwMRy4JICph38hA X-Received: by 2002:a65:64c8:: with SMTP id t8-v6mr3268559pgv.110.1532115395638; Fri, 20 Jul 2018 12:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532115395; cv=none; d=google.com; s=arc-20160816; b=IHQeG1lwHP2lY1dLS4Aa8RfFxopBkUs+UQuVJiosT73j5pmdSeO+IJmqnmPwB8wUFu 0QiRjfJV332aqQp0KK0nZa8yMgOusQITtaQj06CpkFLTkQ8CKt47wvZpVrQIbeYRcRYN kNxZDD+qWsp72aMZYX12Itzu+tbH9Tgx/K8kwBDiat9rQrsUOwpsUvF1Ms4hMPFP7fdF k67KwamPmVQH48gPmusX8yFEAU4jvcxD19ySXEwHzy3CYApLyUh8nWza7cbcWnMCU7dU 1/pXAr0Qs5GhATxG7OoA/5Om8y0pT+XWGFFxdx3RM3bGCqvqWGnCY1UxXxDOsLHjEEli wIlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=O8+Y8bW0oRvSU/ywx4comujtorf6PMC/+Bdlx2CHISg=; b=eVWphDZX+5MqLDW3FLyfrk9rRMWryybInttN5EO4twxX+42RDpIjiyeDljFSVXQHG8 PpeDyWYItG7HJb+8TPMfBr2kpY+kd9fntgKylh5t64XQ/WZz3ttA21ZuysLk1Jf+Ilwh 6JPLq2ZIseE5tkNJya21UCQCW4XhBGk5zpnPTnbU95lYgE8K2EsXioUxvg7NQpQDx5Zc vyMAo75Dq+t5vya/taKSMo/IVsJB1h1HcWlDvWg1G450omUU11UAs2NgeQFqu6ugfrA+ xWw/X/ozrK0y8olJg7xm2ZFLR/XOjfF8Q6MKGcjFF17tTkIvBt6nBbWkXdT/N4u0aRjf cJVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u186-v6si2616096pfu.263.2018.07.20.12.36.20; Fri, 20 Jul 2018 12:36:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388500AbeGTUZ1 (ORCPT + 99 others); Fri, 20 Jul 2018 16:25:27 -0400 Received: from mail-qt0-f176.google.com ([209.85.216.176]:44934 "EHLO mail-qt0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388036AbeGTUZ0 (ORCPT ); Fri, 20 Jul 2018 16:25:26 -0400 Received: by mail-qt0-f176.google.com with SMTP id b15-v6so11267049qtp.11 for ; Fri, 20 Jul 2018 12:35:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=O8+Y8bW0oRvSU/ywx4comujtorf6PMC/+Bdlx2CHISg=; b=D7C/OAIMwTiiKsrdZqtVc5Ezk2HBfNKbv7q1RnLLCFBWWn5pbN6QJ3Cpts6kPbw1QB CZG/osy9cY/NgD/SqwVdews+F1EPoG3IrEYBYT6koG00Jl1GcI043EY/k83U/jkY0cf9 DrgG7ufYcmwbfZH/aBaTRIZY+8qmK3pY/tx5hsUmwnVY6u6r7HaxM0+PsJSR7PbdGlt3 UK2qewt+UJ2uYP2Q0eIsVZ/pomZiHh9PYt5qAgz2kG0PH/6I+N2GUxq4IQDA9/hP4cZU qLNSDfmTNjfdQWXNmIu443JINyi23NjiIJD1nCNR1zyOZpeSwdSGBWQ/hiq8HB8MylEq J3vA== X-Gm-Message-State: AOUpUlGED8jPqzbXVpQ58RYZ/9hgKrYeHMkukHyIwZcxlfW80UKy0uH6 cEfjcZt7fgZfNpxQ9R7ZzW0yWyHS8nA= X-Received: by 2002:ac8:709:: with SMTP id g9-v6mr3289854qth.110.1532115344715; Fri, 20 Jul 2018 12:35:44 -0700 (PDT) Received: from laptop.jcline.org.com (cpe-2606-A000-1127-D1-82A4-FE7D-5832-CB87.dyn6.twc.com. [2606:a000:1127:d1:82a4:fe7d:5832:cb87]) by smtp.gmail.com with ESMTPSA id n24-v6sm2476492qkh.39.2018.07.20.12.35.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jul 2018 12:35:44 -0700 (PDT) From: Jeremy Cline To: Masahiro Yamada , Michal Marek Cc: Frederic Weisbecker , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Jeremy Cline Subject: [PATCH] scripts: Add Python 3 support to tracing/draw_functrace.py Date: Fri, 20 Jul 2018 15:35:28 -0400 Message-Id: <20180720193528.1341-1-jcline@redhat.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the print function. This maintains Python 2 support and should have no functional change. Signed-off-by: Jeremy Cline --- scripts/tracing/draw_functrace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tracing/draw_functrace.py b/scripts/tracing/draw_functrace.py index db40fa04cd51..7d44e796d362 100755 --- a/scripts/tracing/draw_functrace.py +++ b/scripts/tracing/draw_functrace.py @@ -20,6 +20,7 @@ Usage: $ scripts/draw_functrace.py < raw_trace_func > draw_functrace Then you have your drawn trace in draw_functrace """ +from __future__ import print_function import sys, re @@ -123,7 +124,7 @@ def main(): tree = tree.getParent(caller) tree = tree.calls(callee, calltime) - print CallTree.ROOT + print(CallTree.ROOT) if __name__ == "__main__": main() -- 2.17.1