This is a very simple example eBPF/XDP program, that utilizes a CPU infintiely with a single packet.
- clang (tested with clang v16, at least v11 or later should work, though)
- libbpf
Either run make on your system:
$ make
Or use the container to build:
docker build --rm -t clbuild .
docker run --rm --volume $(pwd):/build clbuild
Warning: Running the program results in CPU 0 being busy for about a minute.
$ ./cpumap_loop