]> git.baikalelectronics.ru Git - kernel.git/commit
scripts: Require pahole v1.16 when generating BTF
authorLorenz Bauer <lmb@cloudflare.com>
Mon, 8 Jun 2020 09:42:57 +0000 (10:42 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 9 Jun 2020 18:05:49 +0000 (11:05 -0700)
commit9c5c25582b092a4db5412de291e24eebe9318dbf
tree9e036569cfb1ee0a84906d2357d91e1e3a9357d0
parent0a0c1c9becfe6582c992e4ab067c99e03ff7b4d2
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: c73cf96a66fd ("bpf: Allow loading of a bpf_iter program")
Suggested-by: Ivan Babrou <ivan@cloudflare.com>
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200608094257.47366-1-lmb@cloudflare.com
scripts/link-vmlinux.sh