Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1408381imu; Sat, 26 Jan 2019 02:09:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN5DcSrTIk2EChTYHTYR3IfhWfnfohQGv/pu0vgigOBRhsMCSCh9bJlCgDGIyBD/ap7JToV0 X-Received: by 2002:a17:902:bb05:: with SMTP id l5mr14811277pls.230.1548497382577; Sat, 26 Jan 2019 02:09:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548497382; cv=none; d=google.com; s=arc-20160816; b=YCFVcR3OEampAUD8iD5bDPNf8VP7UrHS6wr7UNWP+/0tq0sFfkRV5UAuMzV85vfNs5 cnOz9nXA6DC7BWO1mVlpfbSzQtqb8BLngJezl37LEomQ4rM4OJHFXEFQBfOTX6NLV9DD DkzCkhUCJvxpKM+qKTxFEqhvNhzYzUTJHIcpOzl8V6MQNjYT9KCWD0myTxJRWtA7laHt yBCPoOVpTUTgGDWNKuS88kDH0r0jhenKHZDZk+LamKTkbC5EBrJbeHoRo3Vq0xQMP8k9 /wtQFJTRIfl6pBWVcKhu4v6DV4yjHuKFv/VCsV32TMwY8jU2nqTl8Gbvny7g65z8Cs47 Sd4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=J+zbdcBRvWqKkQWHSxsguC8JrsxhgfGui+rBo8UFy5Q=; b=EC9WPg0d4mcvWsV0q0afxfV+nvelWVqMMzlGlquf3m7uH677NrnfMNor2N0905Oxzq KYOVev4FVQQXjMck8QD0tRofO6+qZbWmfT5dKMekMADqEh+6uyTGzTltaMNgQrNlSN80 eepcnncm+9CwwuEWKUR0jVxovT6uTM22+tGomda9XIn5V6648A6qTrYoLaaCO+oHsQDJ NE8Ryp39xNPBxRvGrvwTLCMZ9KyK+BpJ/zjXgpy+So4pd20nDg/9dGsT1O7eJ4UdbpqP ZNBd2ET/6vQbyVrAg8+/aIZXrkqRbrsIDXLi6w2oApRSsqxbQU4E3VEcW+BkVGApNe22 mT1Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si26602674pfb.178.2019.01.26.02.09.28; Sat, 26 Jan 2019 02:09:42 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728545AbfAZKJQ (ORCPT + 99 others); Sat, 26 Jan 2019 05:09:16 -0500 Received: from terminus.zytor.com ([198.137.202.136]:46661 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbfAZKJQ (ORCPT ); Sat, 26 Jan 2019 05:09:16 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x0QA91dO513460 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 26 Jan 2019 02:09:01 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x0QA915i513457; Sat, 26 Jan 2019 02:09:01 -0800 Date: Sat, 26 Jan 2019 02:09:01 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Tony Jones Message-ID: Cc: corbet@lwn.net, tglx@linutronix.de, hpa@zytor.com, jolsa@kernel.org, ravi.bangoria@linux.ibm.com, fweisbec@gmail.com, adrian.hunter@intel.com, tonyj@suse.de, mingo@kernel.org, linux-kernel@vger.kernel.org, s1seetee@linux.vnet.ibm.com, acme@redhat.com Reply-To: s1seetee@linux.vnet.ibm.com, acme@redhat.com, linux-kernel@vger.kernel.org, mingo@kernel.org, tonyj@suse.de, adrian.hunter@intel.com, fweisbec@gmail.com, ravi.bangoria@linux.ibm.com, jolsa@kernel.org, hpa@zytor.com, tglx@linutronix.de, corbet@lwn.net In-Reply-To: <20190124005229.16146-6-tonyj@suse.de> References: <20190124005229.16146-6-tonyj@suse.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf script python: Remove explicit shebang from Python scripts Git-Commit-ID: a38352de4495a6a4662609a560b2db4b03d6b352 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=1.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_24_48,FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a38352de4495a6a4662609a560b2db4b03d6b352 Gitweb: https://git.kernel.org/tip/a38352de4495a6a4662609a560b2db4b03d6b352 Author: Tony Jones AuthorDate: Wed, 23 Jan 2019 16:52:28 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 25 Jan 2019 15:12:10 +0100 perf script python: Remove explicit shebang from Python scripts The scripts in scripts/python are intended to be run from 'perf script' and the Python version used is dictated by how perf was built (PYTHON=). Also most distros follow pep-0394 which recommends that /usr/bin/python refer to Python2 and so may not exist on the system (if PYTHON=python3). - Remove the explicit shebang - Install the scripts as mode 644 Signed-off-by: Tony Jones Acked-by: Jiri Olsa Cc: Adrian Hunter Cc: Frederic Weisbecker Cc: Jonathan Corbet Cc: Ravi Bangoria Cc: Seeteena Thoufeek Link: http://lkml.kernel.org/r/20190124005229.16146-6-tonyj@suse.de Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.perf | 4 ++-- tools/perf/scripts/python/exported-sql-viewer.py | 1 - tools/perf/scripts/python/sched-migration.py | 2 -- tools/perf/scripts/python/stat-cpi.py | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 0ee6795d82cc..09df1c8a4ec9 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -863,8 +863,8 @@ ifndef NO_LIBPYTHON $(call QUIET_INSTALL, python-scripts) \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'; \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin'; \ - $(INSTALL) scripts/python/Perf-Trace-Util/lib/Perf/Trace/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'; \ - $(INSTALL) scripts/python/*.py -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python'; \ + $(INSTALL) scripts/python/Perf-Trace-Util/lib/Perf/Trace/* -m 644 -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'; \ + $(INSTALL) scripts/python/*.py -m 644 -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python'; \ $(INSTALL) scripts/python/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin' endif $(call QUIET_INSTALL, perf_completion-script) \ diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py index f278ce5ebab7..c3091401df91 100755 --- a/tools/perf/scripts/python/exported-sql-viewer.py +++ b/tools/perf/scripts/python/exported-sql-viewer.py @@ -1,4 +1,3 @@ -#!/usr/bin/python2 # SPDX-License-Identifier: GPL-2.0 # exported-sql-viewer.py: view data from sql database # Copyright (c) 2014-2018, Intel Corporation. diff --git a/tools/perf/scripts/python/sched-migration.py b/tools/perf/scripts/python/sched-migration.py index 3473e7f66081..3984bf51f3c5 100644 --- a/tools/perf/scripts/python/sched-migration.py +++ b/tools/perf/scripts/python/sched-migration.py @@ -1,5 +1,3 @@ -#!/usr/bin/python -# # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker diff --git a/tools/perf/scripts/python/stat-cpi.py b/tools/perf/scripts/python/stat-cpi.py index 8410672efb8b..a81ad8835a74 100644 --- a/tools/perf/scripts/python/stat-cpi.py +++ b/tools/perf/scripts/python/stat-cpi.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0 data = {}