Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp921294ybj; Tue, 5 May 2020 09:42:04 -0700 (PDT) X-Google-Smtp-Source: APiQypJxF4GHU+WGfm/7IRiYyLc1vWBQeDRS7cJN7wFMhbFqXmw7gJ3Ls9MG0Rkl9HkpTTsCrp34 X-Received: by 2002:aa7:dc48:: with SMTP id g8mr3460273edu.33.1588696924660; Tue, 05 May 2020 09:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588696924; cv=none; d=google.com; s=arc-20160816; b=XTI16bmw++72s3HtP0tPy+k6ofQKcx1Pfh5SSmeBFkZD4Yw7tfSylNWZrFICFQdAHa P3ltpzyfZgS+wRXh0YJ2aAKwzgLdi+OMhQMdUm1HUHKMHnm/uwxzwA+z0FiJOYr4eYPj AfIwDBCvUI+BD+o35LrWMk7DxRXnlI4XIV7W9Y6/o1Nqpikinxs63xmp62ftkyfo3oPc hOFkt5r8tAI7G4EA94f7jOo0BB5/uRlswNgl1Z4MeJT5FbfkiUy0nM6LwlWQR6pBiooX g75CcL/LxFSG1QiEpxv72mCh5Yt8D05cPaKs9Ggxw+K4IeNlJ3X2Cs9dOBG7pyGQ7btc 5ihA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=y7yq0XdDHvHmtj9MaLNUjkmFFQ9+bgFTYTDYA/E7uGw=; b=pIiDETLV96gBTo5qvuNl4KUyBcf9BZ7E5A7R1ChWOgwDXBjQVI8DiOXCmQ7yctH6gK QfJZBy8pN4mLaufebWEDxEcB2VmqYB0SBzENMN8E2inkbrrosyfel7AkGGDauKRPIlBk feq8OmFpZ8qN2xC98Wo6lQSxPBrQpwWFPUQdvsIHR3NzYdWXuR8UA8zUa2EAnqNY+jx0 lqYeuAIouXOtzXx2PmsMmj7BwDb4OlRG+5RMoQ+W+dhU2tLc411PzImCQsfx7jtksprc 8pihjQJ/MM5fyklis4q6yoPzBft9o6UbblW+S4AAoaUDnptb7Z+f4nFuyxRs6IVkycMt D0WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PJ+S5nHN; 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=fail (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 s13si1307415eja.102.2020.05.05.09.41.40; Tue, 05 May 2020 09:42:04 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PJ+S5nHN; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730408AbgEEQiB (ORCPT + 99 others); Tue, 5 May 2020 12:38:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728804AbgEEQiB (ORCPT ); Tue, 5 May 2020 12:38:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2173AC061A0F; Tue, 5 May 2020 09:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=y7yq0XdDHvHmtj9MaLNUjkmFFQ9+bgFTYTDYA/E7uGw=; b=PJ+S5nHNXYFjBh5XG85gs5Xg5W bbI4vxmLMkxJBdXvmEygmrSzaliEsK1es2k/y0l9+u2YMdCjYeHWPcCLxSg7Tii9fePSmYIyww8wm rbEvi+XorLY5GHz8uv2/8/krcL3mEj5THMW03gQlfDV6tR2NTWWhyJB6FcLYOC1qU4peqFrSry8gm RF9xy5u1RSgxyI7jRl5APpxmR6JdtTVZa+QPT6FJamZsY8OV7zBOfb5/VI+X3cyggAVVps/Q8cPWf y6wKzqOAkMbYsfucq8JUrVWjCqrciJcFF5ABvQirYBzeGZbQWTtMXAkyHspTqETkqO9Un4k+BcPj3 vvGhN+rQ==; Received: from [179.97.37.151] (helo=sandy.ghostprotocols.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jW0Zp-0006h8-Nd; Tue, 05 May 2020 16:37:50 +0000 Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id B04241B0; Tue, 5 May 2020 13:37:45 -0300 (BRT) Date: Tue, 5 May 2020 13:37:45 -0300 From: Arnaldo Carvalho de Melo To: Daniel =?iso-8859-1?Q?D=EDaz?= Cc: 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: <20200505163745.GD3777@redhat.com> References: <20200420115316.18781-1-acme@kernel.org> <20200422120943.GA110748@gmail.com> <20200424130722.GK19437@kernel.org> <0f6403ec-36cd-f43f-b3a6-b87e628f3789@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 User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- "$@"