]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:50:01 +0000 (10:50 +0200)
commit590c62890cfbf1f54db8ec6775ab37264884f203
tree7c4cbc91f89a5b8696438a4e73ea830d76b8d6dc
parent39b17b59c83d362453881eb7601d2903819653d0
selftests/bpf: Re-generate vmlinux.h and BPF skeletons if bpftool changed

[ Upstream commit cab62c37be057379a2a17b1b2eacd9dcba1e14dc ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/Makefile