History

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

Tony Jones committed 7 years ago

Commit a38352d1 parent d72eadb4 files · +2 −6Browse files

Showing the changes to tools/perf/scripts/python (3 of 4 files). Show all

Unified · Split

3 files
  1. tools/perf/scripts/python/exported-sql-viewer.py +0 −1
  2. tools/perf/scripts/python/sched-migration.py +0 −2
  3. tools/perf/scripts/python/stat-cpi.py +0 −1
tools/perf/scripts/python/exported-sql-viewer.py+0−1
@@ -1,4 +1,3 @@
1#!/usr/bin/python2
2# SPDX-License-Identifier: GPL-2.01# SPDX-License-Identifier: GPL-2.0
3# exported-sql-viewer.py: view data from sql database2# exported-sql-viewer.py: view data from sql database
4# Copyright (c) 2014-2018, Intel Corporation.3# Copyright (c) 2014-2018, Intel Corporation.
tools/perf/scripts/python/sched-migration.py+0−2
@@ -1,5 +1,3 @@
1#!/usr/bin/python
2#
3# Cpu task migration overview toy1# Cpu task migration overview toy
4#2#
5# Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com>3# Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com>
tools/perf/scripts/python/stat-cpi.py+0−1
@@ -1,4 +1,3 @@
1#!/usr/bin/env python
2# SPDX-License-Identifier: GPL-2.01# SPDX-License-Identifier: GPL-2.0
3 2
4data = {}3data = {}