This repository contains eBPF tutorials and examples that introduce eBPF concepts for tracing, security, networking, and more. It uses eunomia-bpf and libbpf to show how to write eBPF programs in C and load them into the kernel.
To get started, follow these steps:
git clone https://github.com/cloudarxiv/ebpf-inside-out.git
cd ebpf-inside-out
git submodule update --init --recursive
make install-deps
make setup-tools
The examples are organized into three directories:
basicadvancedextras
Each of these directories contains subdirectories for different eBPF concepts and use cases. Moreover, they contain tasks that can be done for learning purposes. We recommend going through the examples in order, starting with the basic directory and progressing to the advanced and extras directories.
You can use the slides to go through the basics of eBPF. The slides also contain directions for basic and advanced examples.