Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp47774ybj; Fri, 8 May 2020 06:16:11 -0700 (PDT) X-Google-Smtp-Source: APiQypJzhP29VJMEcs3JbmDP+Gbqjx6InJG0Evh3FrSqB1SRhQZ5Ge9rL+1ZHHtu5CITJXMVXqiW X-Received: by 2002:a17:906:ce49:: with SMTP id se9mr1850973ejb.345.1588943770886; Fri, 08 May 2020 06:16:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588943770; cv=none; d=google.com; s=arc-20160816; b=D1Q4HHbnA0UXtxn+jm32nGVd73R5nubDQ6VELI+FM74g9RyQ5s40FzsaQR+fkVIjE4 YS3bcB4A58ypfr9ROd/XQJwt/IkQL2xbH4H7SaxeUzbUKnYCkmT60bg7YWwNngWH2vgN 7rgWA44o6AjcB6r+GbNu7LtoiqbSLerYi/H9a6xsKbjxA8Sa02xCEcTAHTApbXoHnF9S B7yIqpJAu3Meg0s+HvfF1t7v7imjLHfzOHdujrzK0FtBkyL2CvrmEZmOc0yss1zZDIDa AFOa38Uw2F0V14Rc1mM/+fRHpp3JFnPg0vugtLzlf1KPvgRvxC2aCjY/ncgLXGdSli3H 9dDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=uC5vKHXvG/RGO8grGd/S6RkmTl0aOapdG9JTKMjVZKE=; b=vkM4IF8uHTRDMupn7pfSykdGdBa9EV9lwfDPpHF4vxEzMfgrrWnEZ0xPt3u/HGziGS eCvzHcii4OIDLCK8VgjMAOmyoBsrtnHcPP3wm7/M4fqJZX/wTstNNXncGAdGqDOR4TpW wGTiW/GXy5DX/KhIRj3LDlni+PK/dQSZ2x0VUqVNz70zZDfvymQwieFXObAkNwKTNTCE j0UjjdF7A1bB1il8lXz/1yopOPiSt1RRpp9e331U2vVp0s+hq3nFn3AcV/rqdfQFM8Oo oNhHQ9nXHCdmTnFXMZbzLvpB0u9neqkBI57mjlaY5H4r8gVevKjji4c4eAm3dTN4EmXu Jh+g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c3si852704edv.205.2020.05.08.06.15.46; Fri, 08 May 2020 06:16:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730397AbgEHNM0 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 May 2020 09:12:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730022AbgEHNEt (ORCPT ); Fri, 8 May 2020 09:04:49 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06C52C05BD0B; Fri, 8 May 2020 06:04:49 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jX2gB-00073n-Cl; Fri, 08 May 2020 15:04:39 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id EF32D1C0080; Fri, 8 May 2020 15:04:38 +0200 (CEST) Date: Fri, 08 May 2020 13:04:38 -0000 From: "tip-bot2 for Arnaldo Carvalho de Melo" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf flamegraph: Use /bin/bash for report and record scripts Cc: daniel.diaz@linaro.org, Andreas Gerstmayr , Adrian Hunter , Jiri Olsa , lkft-triage@lists.linaro.org, Namhyung Kim , Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: References: MIME-Version: 1.0 Message-ID: <158894307885.8414.8667037968260608820.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 19ce2321739da5fc27f6a5ed1e1cb15e384ad030 Gitweb: https://git.kernel.org/tip/19ce2321739da5fc27f6a5ed1e1cb15e384ad030 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 05 May 2020 13:33:12 -03:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Tue, 05 May 2020 16:35:32 -03:00 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/20200505170320.GZ30487@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/scripts/python/bin/flamegraph-record | 2 +- tools/perf/scripts/python/bin/flamegraph-report | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/scripts/python/bin/flamegraph-record b/tools/perf/scripts/python/bin/flamegraph-record index 725d66e..7df5a19 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 b1a79af..53c5dc9 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 -- "$@"