Re: [PATCH v2] selftests/bpf: clarify build error if no vmlinux

2020-12-16 Thread Andrii Nakryiko
On Tue, Dec 15, 2020 at 10:20 AM Kamal Mostafa wrote: > > If Makefile cannot find any of the vmlinux's in its VMLINUX_BTF_PATHS list, > it tries to run btftool incorrectly, with VMLINUX_BTF unset: > > bpftool btf dump file $(VMLINUX_BTF) format c > > Such that the keyword 'format' is misinterp

[PATCH v2] selftests/bpf: clarify build error if no vmlinux

2020-12-15 Thread Kamal Mostafa
If Makefile cannot find any of the vmlinux's in its VMLINUX_BTF_PATHS list, it tries to run btftool incorrectly, with VMLINUX_BTF unset: bpftool btf dump file $(VMLINUX_BTF) format c Such that the keyword 'format' is misinterpreted as the path to vmlinux. The resulting build error message is