hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/tools/perf/perf-with-kcore.sh
....@@ -1,15 +1,8 @@
11 #!/bin/bash
2
+# SPDX-License-Identifier: GPL-2.0-only
23 # perf-with-kcore: use perf with a copy of kcore
34 # Copyright (c) 2014, Intel Corporation.
45 #
5
-# This program is free software; you can redistribute it and/or modify it
6
-# under the terms and conditions of the GNU General Public License,
7
-# version 2, as published by the Free Software Foundation.
8
-#
9
-# This program is distributed in the hope it will be useful, but WITHOUT
10
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
-# more details.
136
147 set -e
158
....@@ -110,11 +103,6 @@
110103 fi
111104
112105 USER_HOME=$(bash <<< "echo ~$SUDO_USER")
113
-
114
- if [ "$HOME" != "$USER_HOME" ] ; then
115
- echo "Fix unnecessary because root has a home: $HOME" >&2
116
- exit 1
117
- fi
118106
119107 echo "Fixing buildid cache permissions"
120108