diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-07-08 13:45:40 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-07-09 19:03:36 -0700 |
commit | a459f4bb27f2e2730039c57786b82288742c8c74 (patch) | |
tree | e4a4e77fe98c18d7efda89eabd3de9fd9d8bc962 /tools/testing/selftests/bpf/prog_tests/recursive_attach.c | |
parent | 99fb9531886d8ffa0aa9a693089784c7338518a3 (diff) |
libbpf: improve old BPF skeleton handling for map auto-attach
Improve how we handle old BPF skeletons when it comes to BPF map
auto-attachment. Emit one warn-level message per each struct_ops map
that could have been auto-attached, if user provided recent enough BPF
skeleton version. Don't spam log if there are no relevant struct_ops
maps, though.
This should help users realize that they probably need to regenerate BPF
skeleton header with more recent bpftool/libbpf-cargo (or whatever other
means of BPF skeleton generation).
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240708204540.4188946-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursive_attach.c')
0 files changed, 0 insertions, 0 deletions