I'm trying to compile the sample bpf program in Linux source code. So I downloaded the current kernel source code and entered samples/bpf folder
apt source linux
cd linux-*/samples/bpf
Then I tried to compile a sample program with gcc:
# gcc sock_example.c
sock_example.c:29:10: fatal error: bpf/bpf.h: No such file or directory
29 | #include <bpf/bpf.h>
| ^~~~~~~~~~~
compilation terminated.
And I'm unable to find bpf/bpf.h with apt-file
# apt-file find bpf/bpf.h
(no output)
What was wrong?