- bpftool
- clang
- libbpf
- libelf
- libseccomp (for converting the syscall IDs to names)
- libz
- llvm (
llvm-strip
)
Running make invokes a series of commands to build the application:
- Creates a
vmlinux.h
viabpftool btf dump file
- Builds the ebpf application object via
clang -target bpf
- Strips the object via
llvm-strip
- Generate the skeleton (
.skel.h
) from the object viabpftool gen skeleton
- Compile the application by using the skeleton and link the required libs