Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp944165ybj; Tue, 5 May 2020 10:06:31 -0700 (PDT) X-Google-Smtp-Source: APiQypLbTDsJpnNB2oGj3rAchdFPbD7tKEbAwftS1LHfQkJi0VD7cWmuC0A1sreMHa9vtRsuJYhH X-Received: by 2002:a17:907:42d6:: with SMTP id ng6mr3562234ejb.265.1588698390895; Tue, 05 May 2020 10:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588698390; cv=none; d=google.com; s=arc-20160816; b=tzc9O27VuTES55yltKqPCIny4L7CWcMlgyygWMrLULg06v6KoVP/yCcQhafl4Oq/6E RM1i3N8ndolKfgsUTdqGNqwMk9furyNvPHh5Jcsk2XEl4Hq90XXdtT3x4Tx5YW+XPqHS 0cxWzUpC7qZ5bWrqjepOrARRqBSDJ88o65kjZHqK5E/yoKm4/Sm2zUJ56Np9ay4bKLQd 8p/arYTfkAgYBwPxh5XlPerF7mCeUiyIC2obDDkArNelAw1E3xlXkoc828np79ninEug qRyJ9REbAJDRJ63KEYOGp4l2zVvudQ0XCq2qrcCVX6X4YG6W5hUviABnpNnTu7ZNMUV8 RO4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=F8F8bzNlpzN6oJWmUcTLbx9MTKOgobYXMqZrgiO3eU8=; b=fPlMmocwBgPAuooqquUuHUe5VGR990hA9Y2s70ZR7xrH2YU+Aj/HaocBBy0okCPLtH DgSeGdXZ5Is/2WN78Jmp2+xy/c1ItxJkyfhCNHwV/xW/np91EvwyF9uYA/rkN7KgCZYP JOPODY9U+sYJkkBFqaBh4xQF7pAQIR6zB9eEBBKWIPs6JwYLbZ4wXeUXMmcvPPYbGqEy XAsnKelICQljFMxjM4ugnUrDbanvCdujzSdgdnjxdok5/nNxONW7MSaSPgFuimvkkrVe W34GqQXkwcB34JOKojmeymXmaVRNQ3ymANSxpJWYnb7/jfJ5ivADUBFxULBoopSRsoV5 bzBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oHLr6bBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si1439780edz.585.2020.05.05.10.06.04; Tue, 05 May 2020 10:06:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oHLr6bBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730671AbgEERD0 (ORCPT + 99 others); Tue, 5 May 2020 13:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729553AbgEERDZ (ORCPT ); Tue, 5 May 2020 13:03:25 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B16AC061A0F; Tue, 5 May 2020 10:03:25 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id i68so2569274qtb.5; Tue, 05 May 2020 10:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=F8F8bzNlpzN6oJWmUcTLbx9MTKOgobYXMqZrgiO3eU8=; b=oHLr6bBm4X2Z8gdqb6WxXF30Muajj7pEaD8OdPqSuUU5yNyE2V1n6UcL0r5w4aKa7F 0S4A4MZxARYWQGLWWJsOflyIZsAzwq5ONnbtdthGMIIj2kCjFP3yid8AbxItzRGSlt4s qrjtK+LRIDj91x18EyO7i0cDJmJHNh5riZ+BZbMecgyAoZ8E/VCafbOtzU/ZcZwPqLGo P4YCn+L/nUU08I7fZQkssnjKA9hh1xyNuIIm1YnDS0jBXxrPLD9AWupuiXN7nDKOo93k Vr6NYKHh8fR7ssasumurUX/bZw7zqhBVZzVDyyJCGrvSETXkxvGIPuM3P9tQgHpeuWTB Pp9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=F8F8bzNlpzN6oJWmUcTLbx9MTKOgobYXMqZrgiO3eU8=; b=TMgwQo/9XGFy8/R2h3CIO5hF8j34WeUgICyiq5fmkJF9u9HYZTwtdQz32l2qBwxmGz kW/A2WHPPmqdkCZfDvhEnV53nJFNRJDkDTbj3m9+1tivkUVoeDzFt2uXy0ncKxwYVf/k o0hKUXWW7yqIGbFC9ovHCiW8rVf1NW7Uw364Ch7s0jJ3p0MheDirVR82UPR2tVo5Cb/W Lsz1dV3+4m8b9K4DOEGPdEcMaMekXf4UWZlIDsu/jlrk5xzdR17ywH6F9k7PuQWcEAwY mOz9jImi/KcaOTAtogG5jnKPofjSZ+bsqXloIShhBl8tZ1DVE2xkCNOhKkDX2HubsC+E c/Xg== X-Gm-Message-State: AGi0PuZOflXw6PEkpvAqRRHUYvxZLJDUECSrgYOEvJhrd7T2a2i9iBfJ 3xn9H1BqIZj2xBf+oHi7E9A= X-Received: by 2002:ac8:4e86:: with SMTP id 6mr3604724qtp.37.1588698204311; Tue, 05 May 2020 10:03:24 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id o33sm2300452qtj.62.2020.05.05.10.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 10:03:23 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id D0484409A3; Tue, 5 May 2020 14:03:20 -0300 (-03) Date: Tue, 5 May 2020 14:03:20 -0300 To: Daniel =?iso-8859-1?Q?D=EDaz?= Cc: Arnaldo Carvalho de Melo , Andreas Gerstmayr , Ingo Molnar , Thomas Gleixner , Jiri Olsa , Namhyung Kim , Clark Williams , open list , linux-perf-users@vger.kernel.org, Adrian Hunter , Alexey Budankov , He Zhe , Ian Rogers , Kajol Jain , Kan Liang , Konstantin Kharlamov , Stephane Eranian , Thomas Richter , lkft-triage@lists.linaro.org Subject: Re: [GIT PULL] perf/core improvements and fixes Message-ID: <20200505170320.GZ30487@kernel.org> References: <20200420115316.18781-1-acme@kernel.org> <20200422120943.GA110748@gmail.com> <20200424130722.GK19437@kernel.org> <0f6403ec-36cd-f43f-b3a6-b87e628f3789@redhat.com> <20200505163745.GD3777@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, May 05, 2020 at 11:57:18AM -0500, Daniel D?az escreveu: > Hello! > > On Tue, 5 May 2020 at 11:37, Arnaldo Carvalho de Melo > wrote: > > > > Em Mon, May 04, 2020 at 02:07:56PM -0500, Daniel D?az escreveu: > > > Hello! > > > > > > On Fri, 24 Apr 2020 at 09:10, Andreas Gerstmayr wrote: > > > > > > > > On 24.04.20 15:07, Arnaldo Carvalho de Melo wrote: > > > > > Em Thu, Apr 23, 2020 at 04:28:46PM -0500, Daniel D?az escreveu: > > > > >> On Wed, 22 Apr 2020 at 07:09, Ingo Molnar wrote: > > > > >>>> 85 files changed, 1851 insertions(+), 513 deletions(-) > > > > > > > > > >>> Pulled, thanks a lot Arnaldo! > > > > > > > > > >> Our OpenEmbedded builds detected an issue with 5287f9269206 ("perf > > > > >> script: Add flamegraph.py script"): > > > > >> ERROR: perf-1.0-r9 do_package_qa: QA Issue: > > > > >> /usr/libexec/perf-core/scripts/python/bin/flamegraph-report contained > > > > >> in package perf-python requires /usr/bin/sh, but no providers found in > > > > >> RDEPENDS_perf-python? [file-rdeps] > > > > > > > > > > > > > > > yeah, the flamegraph scripts are the outliers, there, everything else is > > > > > using /bin/bash, so I'll switch to that, ok Andreas? > > > > > > > > Sure, no problem. Thanks! > > > > > > Just a gentle reminder that this can still be fixed in today's > > > linux-next tree (next-20200504). > > > > Thanks for the reminder, I've just added this to my tree: > > > > commit c74ab13a30d3bec443c116e25b611255c58f32c0 > > Author: Arnaldo Carvalho de Melo > > Date: Tue May 5 13:33:12 2020 -0300 > > > > perf flamegraph: Use /bin/bash for report script > > > > As all the other tools/perf/scripts/python/bin/*-report scripts, fixing > > the this problem reported by Daniel Diaz: > > > > Our OpenEmbedded builds detected an issue with 5287f9269206 ("perf > > script: Add flamegraph.py script"): > > ERROR: perf-1.0-r9 do_package_qa: QA Issue: > > /usr/libexec/perf-core/scripts/python/bin/flamegraph-report contained > > in package perf-python requires /usr/bin/sh, but no providers found in > > RDEPENDS_perf-python? [file-rdeps] > > > > This means that there is a new binary pulled in in the shebang line > > which was unaccounted for: `/usr/bin/sh`. I don't see any other usage > > of /usr/bin/sh in the kernel tree (does not even exist on my Ubuntu > > dev machine) but plenty of /bin/sh. This patch is needed: > > -----8<----------8<----------8<----- > > diff --git a/tools/perf/scripts/python/bin/flamegraph-record > > b/tools/perf/scripts/python/bin/flamegraph-record > > index 725d66e71570..a2f3fa25ef81 100755 > > --- a/tools/perf/scripts/python/bin/flamegraph-record > > +++ b/tools/perf/scripts/python/bin/flamegraph-record > > @@ -1,2 +1,2 @@ > > -#!/usr/bin/sh > > +#!/bin/sh > > perf record -g "$@" > > diff --git a/tools/perf/scripts/python/bin/flamegraph-report > > b/tools/perf/scripts/python/bin/flamegraph-report > > index b1a79afd903b..b0177355619b 100755 > > --- a/tools/perf/scripts/python/bin/flamegraph-report > > +++ b/tools/perf/scripts/python/bin/flamegraph-report > > @@ -1,3 +1,3 @@ > > -#!/usr/bin/sh > > +#!/bin/sh > > # description: create flame graphs > > perf script -s "$PERF_EXEC_PATH"/scripts/python/flamegraph.py -- "$@" > > ----->8---------->8---------->8----- > > > > Fixes: 5287f9269206 ("perf script: Add flamegraph.py script") > > Reported-by: Daniel D?az > > Cc: Adrian Hunter > > Cc: Andreas Gerstmayr > > Cc: Jiri Olsa > > Cc: lkft-triage@lists.linaro.org > > Cc: Namhyung Kim > > Link: http://lore.kernel.org/lkml/CAEUSe7_wmKS361mKLTB1eYbzYXcKkXdU26BX5BojdKRz8MfPCw@mail.gmail.com > > Signed-off-by: Arnaldo Carvalho de Melo > > > > diff --git a/tools/perf/scripts/python/bin/flamegraph-report b/tools/perf/scripts/python/bin/flamegraph-report > > index b1a79afd903b..53c5dc90c87e 100755 > > --- a/tools/perf/scripts/python/bin/flamegraph-report > > +++ b/tools/perf/scripts/python/bin/flamegraph-report > > @@ -1,3 +1,3 @@ > > -#!/usr/bin/sh > > +#!/bin/bash > > # description: create flame graphs > > perf script -s "$PERF_EXEC_PATH"/scripts/python/flamegraph.py -- "$@" > > What about flamegraph-record? oops, make that this instead: commit b3a63d0c17e6e1d23a6b44502b55f066adfd8e6a Author: Arnaldo Carvalho de Melo Date: Tue May 5 13:33:12 2020 -0300 perf flamegraph: Use /bin/bash for report and record scripts As all the other tools/perf/scripts/python/bin/*-{report,record} scripts, fixing the this problem reported by Daniel Diaz: Our OpenEmbedded builds detected an issue with 5287f9269206 ("perf script: Add flamegraph.py script"): ERROR: perf-1.0-r9 do_package_qa: QA Issue: /usr/libexec/perf-core/scripts/python/bin/flamegraph-report contained in package perf-python requires /usr/bin/sh, but no providers found in RDEPENDS_perf-python? [file-rdeps] This means that there is a new binary pulled in in the shebang line which was unaccounted for: `/usr/bin/sh`. I don't see any other usage of /usr/bin/sh in the kernel tree (does not even exist on my Ubuntu dev machine) but plenty of /bin/sh. This patch is needed: -----8<----------8<----------8<----- diff --git a/tools/perf/scripts/python/bin/flamegraph-record b/tools/perf/scripts/python/bin/flamegraph-record index 725d66e71570..a2f3fa25ef81 100755 --- a/tools/perf/scripts/python/bin/flamegraph-record +++ b/tools/perf/scripts/python/bin/flamegraph-record @@ -1,2 +1,2 @@ -#!/usr/bin/sh +#!/bin/sh perf record -g "$@" diff --git a/tools/perf/scripts/python/bin/flamegraph-report b/tools/perf/scripts/python/bin/flamegraph-report index b1a79afd903b..b0177355619b 100755 --- a/tools/perf/scripts/python/bin/flamegraph-report +++ b/tools/perf/scripts/python/bin/flamegraph-report @@ -1,3 +1,3 @@ -#!/usr/bin/sh +#!/bin/sh # description: create flame graphs perf script -s "$PERF_EXEC_PATH"/scripts/python/flamegraph.py -- "$@" ----->8---------->8---------->8----- Fixes: 5287f9269206 ("perf script: Add flamegraph.py script") Reported-by: Daniel D?az Acked-by: Andreas Gerstmayr Cc: Adrian Hunter Cc: Jiri Olsa Cc: lkft-triage@lists.linaro.org Cc: Namhyung Kim Link: http://lore.kernel.org/lkml/CAEUSe7_wmKS361mKLTB1eYbzYXcKkXdU26BX5BojdKRz8MfPCw@mail.gmail.com Link: http://lore.kernel.org/lkml/20200505163745.GD3777@redhat.com Signed-off-by: Arnaldo Carvalho de Melo diff --git a/tools/perf/scripts/python/bin/flamegraph-record b/tools/perf/scripts/python/bin/flamegraph-record index 725d66e71570..7df5a19c0163 100755 --- a/tools/perf/scripts/python/bin/flamegraph-record +++ b/tools/perf/scripts/python/bin/flamegraph-record @@ -1,2 +1,2 @@ -#!/usr/bin/sh +#!/bin/bash perf record -g "$@" diff --git a/tools/perf/scripts/python/bin/flamegraph-report b/tools/perf/scripts/python/bin/flamegraph-report index b1a79afd903b..53c5dc90c87e 100755 --- a/tools/perf/scripts/python/bin/flamegraph-report +++ b/tools/perf/scripts/python/bin/flamegraph-report @@ -1,3 +1,3 @@ -#!/usr/bin/sh +#!/bin/bash # description: create flame graphs perf script -s "$PERF_EXEC_PATH"/scripts/python/flamegraph.py -- "$@"