Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5285103ybb; Tue, 24 Mar 2020 14:28:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuVZ/khO8XsJNYAx12wQ/C8TvxKpikPlsOMPkXz6P+18jkmKvCWDmEX2ahZKhVPq0Di4biM X-Received: by 2002:a05:6830:4035:: with SMTP id i21mr87640ots.348.1585085314495; Tue, 24 Mar 2020 14:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585085314; cv=none; d=google.com; s=arc-20160816; b=sNQXufLUjrAtb6fg69mIQL3wAUGGqYe9PFqN7J8Enuz8j2n5LgTQQJ+CMbF5+GQurN 36ZK+geHNl0TI4p+CZmLRAQzlIOwPHufW7YQ25Y6+maL9R5u3Lo3H63B/TChYYz1XOug 2K901af0Glqhfa0ZAexDqUduHskpk/pEjQrefVDO5NctA08kbJe6tDBnVeS+T6+XOMgi iU9cJuJ9/35Qd1FA3VLHV0Nxu4U5Ypyep6w5wKDzjTL4++hboV5nIx/NAseVNDUldofA AO+TmknIaY42qocvLaLWuWDefOklfRPOHJ3UruApI22Z8HyILRu+bbdDn9MKNogRcEjz 7Xhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=1QM8CveRQhCE6XJRJPAlMs7ApDPghnQQSQVpjxsUQj0=; b=Dmb7sSzHrXEQaTFZwRSIcCJDCBBM+JXWEJojjof9waYkpUgqXo3fm2DYtnpsOhqBLP SXH9JJ1ChKEY5uPMsEk3wgXnQ10pCBwzinYlgrIDVUXKtk9qXlr6heFJSTGYSplLGYF0 FHQfEsVRHJzWQdykkEcTjvbHY+9mys2RLYcm5uk6ujfkFI1t8FTH3AI44pExsHuZsG7T BPjteVFNLev2Z9PVroBXfmNKLrUwvfhJwC+NSFB8mRmCFgkGXzSyMuWPCf4xHbAITEQr l3GEUMYncCgmh+oXzz4eJ1+rdvJrl5pqkClGq1C4q5ToJaMhO08uUTVBsL7B+EzOLjbK IKMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=BdZM4QZu; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si9618103otk.87.2020.03.24.14.28.20; Tue, 24 Mar 2020 14:28:34 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=BdZM4QZu; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728241AbgCXV13 (ORCPT + 99 others); Tue, 24 Mar 2020 17:27:29 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:45120 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbgCXV12 (ORCPT ); Tue, 24 Mar 2020 17:27:28 -0400 Received: by mail-qk1-f195.google.com with SMTP id c145so160962qke.12; Tue, 24 Mar 2020 14:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=1QM8CveRQhCE6XJRJPAlMs7ApDPghnQQSQVpjxsUQj0=; b=BdZM4QZuz9C2CEPCw0eLZ9854zPru32+2mw6iCPsknrDFfoR3g6XnBgpmZ4YTvs0vg QtZEd1asA5kIWaZz21+QYV7klCNZPy9x/4GI6fXE/Ty73Zc2jIWi1FdGPxea0oTcUreM cgIhC2Xo6mJrs39PkT8QbLeE2bIfhZNviRS6lyRT0vH0rIIXoXOZYKtMq1Bb73ONiFWO DMiK59/oGV6hpjvcxFq+ySy6J/t4IRfVoYgCGLZ8EW3qgecW+MuYLwVKhHtE/suD75T/ LX7o7SSiiNm8l0pidQFckgmfn4Hjh9jx2DEIPT6Am5poErc4OGuZUzKH0nGuWGja8npF sTeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=1QM8CveRQhCE6XJRJPAlMs7ApDPghnQQSQVpjxsUQj0=; b=RqrZrMMl2m0hXway5VFAJna421FXz81NVQuWSEf4D0cp8xc5JoEx3PIAwoxBjJF316 OtT/ZIQNBbH4tR1mr0rny3SZOiI+ssFbIiTtut+penspS+nn8NDW7/+7PuvMIvR5l7J5 CQCYyMztkKyVXnO6Y+2f8U9sXWQUts/7Wrl+pw2mcZctKt0XGxdUq0IbY/xwRO/qTA+k Rlb4wGF6j3WY93S6Rixfcp2P62OOxLZRtXXPgfvFbDA5lxmfS6BVdYAmY+yeyvckaJof 408CSRuLuPRCo9PlFt2QqWz2USKv+GRg2zNnh6aa+econyYdFMozo/jHHf4agwoR0nbo jvSA== X-Gm-Message-State: ANhLgQ3EvE3nXqFne4H+ks9W0iqm4i9YAlX38Kgw3cdJEvIarcv/xB8p l3DcD35mCZ/Y/NaEZVaL1W9H0LaZ X-Received: by 2002:ae9:eb11:: with SMTP id b17mr27974091qkg.501.1585085247337; Tue, 24 Mar 2020 14:27:27 -0700 (PDT) Received: from [192.168.86.185] ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id x89sm15080681qtd.43.2020.03.24.14.27.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2020 14:27:26 -0700 (PDT) Date: Tue, 24 Mar 2020 18:26:29 -0300 User-Agent: K-9 Mail for Android In-Reply-To: <21c81775-876a-4dd2-f52f-42645963350f@redhat.com> References: <20200320151355.66302-1-agerstmayr@redhat.com> <7176b535-f95b-bf6d-c181-6ccb91425f96@amd.com> <21c81775-876a-4dd2-f52f-42645963350f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] perf script: add flamegraph.py script To: Andreas Gerstmayr , Kim Phillips , linux-perf-users@vger.kernel.org CC: Martin Spier , Brendan Gregg , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org From: Arnaldo Melo Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On March 24, 2020 4:05:15 PM GMT-03:00, Andreas Gerstmayr wrote: >On 24=2E03=2E20 17:16, Kim Phillips wrote: >> On Ubuntu 19=2E10, where python 2=2E7 is still the default, I get: >>=20 >> $ perf script report flamegraph >> File "/usr/libexec/perf-core/scripts/python/flamegraph=2Epy", line >46 >> print(f"Flame Graph template {self=2Eargs=2Etemplate} does not " + >> ^ >> SyntaxError: invalid syntax >> Error running python script >/usr/libexec/perf-core/scripts/python/flamegraph=2Epy >>=20 >> Installing libpython3-dev doesn't help=2E > >Hmm, I was hoping that I can drop support for Python 2 in 2020 ;) (it's > >officially EOL since Jan 1, 2020) > >The Ubuntu 18=2E04 release notes mention that "Python 2 is no longer=20 >installed by default=2E Python 3 has been updated to 3=2E6=2E This is the >last=20 >LTS release to include Python 2 in main=2E"=20 >(https://wiki=2Eubuntu=2Ecom/BionicBeaver/ReleaseNotes) - so imho it shou= ld > >be fine to drop Python 2 support=2E > >I tested it with a Ubuntu VM, and by default the Python bindings aren't > >enabled in perf (see=20 >https://bugs=2Elaunchpad=2Enet/ubuntu/+source/linux/+bug/1707875)=2E > >But you can compile perf and select Python 3: > >$ make -j2 PYTHON=3Dpython3 > I plan to make this the default soon=2E - Arnaldo >in the perf source directory (libpython3-dev must be installed)=2E > > >Does this work for you? > > >Cheers, >Andreas --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E