]> Git Repo - linux.git/commit - scripts/link-vmlinux.sh
scripts: Require pahole v1.16 when generating BTF
authorLorenz Bauer <[email protected]>
Mon, 8 Jun 2020 09:42:57 +0000 (10:42 +0100)
committerAlexei Starovoitov <[email protected]>
Tue, 9 Jun 2020 18:05:49 +0000 (11:05 -0700)
commit21a85bd601ee50f2796d52c542c46d04e21cedac
tree9e036569cfb1ee0a84906d2357d91e1e3a9357d0
parent75e68e5bf2c7fa9d3e874099139df03d5952a3e1
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 <[email protected]>
Signed-off-by: Lorenz Bauer <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
scripts/link-vmlinux.sh
This page took 0.051088 seconds and 4 git commands to generate.