path: root/scripts/
diff options
authorLorenz Bauer <>2020-06-08 10:42:57 +0100
committerAlexei Starovoitov <>2020-06-09 11:05:49 -0700
commit21a85bd601ee50f2796d52c542c46d04e21cedac (patch)
tree9e036569cfb1ee0a84906d2357d91e1e3a9357d0 /scripts/
parent75e68e5bf2c7fa9d3e874099139df03d5952a3e1 (diff)
scripts: Require pahole v1.16 when generating BTF
bpf_iter requires the kernel BTF to be generated with pahole >= 1.16, since otherwise the function definitions that the iterator attaches to are not included. This failure mode is indistiguishable from trying to attach to an iterator that really doesn't exist. Since it's really easy to miss this requirement, bump the pahole version check used at build time to at least 1.16. Fixes: 15d83c4d7cef ("bpf: Allow loading of a bpf_iter program") Suggested-by: Ivan Babrou <> Signed-off-by: Lorenz Bauer <> Signed-off-by: Alexei Starovoitov <> Acked-by: Yonghong Song <> Link:
Diffstat (limited to 'scripts/')
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ b/scripts/
index 3adef49250af..a37875904ca6 100755
--- a/scripts/
+++ b/scripts/
@@ -143,8 +143,8 @@ gen_btf()
pahole_ver=$(${PAHOLE} --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/')
- if [ "${pahole_ver}" -lt "113" ]; then
- echo >&2 "BTF: ${1}: pahole version $(${PAHOLE} --version) is too old, need at least v1.13"
+ if [ "${pahole_ver}" -lt "116" ]; then
+ echo >&2 "BTF: ${1}: pahole version $(${PAHOLE} --version) is too old, need at least v1.16"
return 1