prototype-kernel icon indicating copy to clipboard operation
prototype-kernel copied to clipboard

Missing header files while compiling eBPF samples

Open eloydegen opened this issue 5 years ago • 1 comments

I'm trying to build the bpf modules. Inside the kernel/samples/bpf directory I'm running make kbuilddir=/home/kernel/linux-5.3/

The first time, autoconf.h was missing, which I fixed by running make prepare in the kernel source directory.

After this was fixed, I keep running into issues with errors and missing header files. Is there some essential step I am missing?

eloydegen avatar Sep 26 '19 17:09 eloydegen

Well... we are working on deprecating the files under kernel/samples/bpf, both because (1) Makefile dependency on a kernel tree breaks all the time (as you have experienced), and (2) people should instead use libbpf (instead of ELF-loader in this repo)

We have not removed the files, as they still provide BPF examples that have not been moved to our XDP-tutorial ... yet!

Maybe we need to be more clear in samples/bpf/README.rst ?

netoptimizer avatar Sep 30 '19 14:09 netoptimizer