This repo contains the code and slides for course EECS6891 (eBPF Seminar). The examples were tested on a Debian 12 VM.
Slides are contained in a PDF file called EECS6891 - eBPF Tutorial.pdf
Install the following packages:
sudo apt-get install \
clang \
llvm \
libelf-dev \
libpcap-dev \
build-essential \
libbpf-dev \
linux-headers-$(uname -r) \
bpftool
Each folder contains an example. To run it, first compile:
make
And then run the .out
file which is the driver.