projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3597fd5
)
scripts/pahole-flags.sh: Use pahole-version.sh
author
Nathan Chancellor
<nathan@kernel.org>
Tue, 1 Feb 2022 20:56:22 +0000
(13:56 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 25 Feb 2023 11:06:46 +0000
(12:06 +0100)
commit
2d6c9810eb8915c4ddede707b8e167a1d919e1ca
upstream.
Use pahole-version.sh to get pahole's version code to reduce the amount
of duplication across the tree.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20220201205624.652313-4-nathan@kernel.org
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/pahole-flags.sh
patch
|
blob
|
history
diff --git
a/scripts/pahole-flags.sh
b/scripts/pahole-flags.sh
index 7acee326aa6c9f80da4de7b94d38d79c9cdb1780..d38fa6d84d62a60bcff9805c8b1184bc69e0162a 100755
(executable)
--- a/
scripts/pahole-flags.sh
+++ b/
scripts/pahole-flags.sh
@@
-7,7
+7,7
@@
if ! [ -x "$(command -v ${PAHOLE})" ]; then
exit 0
fi
-pahole_ver=$($
{PAHOLE} --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/'
)
+pahole_ver=$($
(dirname $0)/pahole-version.sh ${PAHOLE}
)
if [ "${pahole_ver}" -ge "118" ] && [ "${pahole_ver}" -le "121" ]; then
# pahole 1.18 through 1.21 can't handle zero-sized per-CPU vars