selftests/bpf: Re-generate vmlinux.h and BPF skeletons if bpftool changed
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 18 Mar 2021 19:40:34 +0000 (12:40 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 18 Mar 2021 23:14:23 +0000 (16:14 -0700)
commitcab62c37be057379a2a17b1b2eacd9dcba1e14dc
tree851a6012389b5157c67f5e4f8de5d42a36aafe39
parentd80b2fcbe0a023619e0fc73112f2a02c2662f6ab
selftests/bpf: Re-generate vmlinux.h and BPF skeletons if bpftool changed

Trigger vmlinux.h and BPF skeletons re-generation if detected that bpftool was
re-compiled. Otherwise full `make clean` is required to get updated skeletons,
if bpftool is modified.

Fixes: acbd06206bbb ("selftests/bpf: Add vmlinux.h selftest exercising tracing of syscalls")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210318194036.3521577-11-andrii@kernel.org
tools/testing/selftests/bpf/Makefile