• Home
Name Date Size #Lines LOC

..--

READMED03-May-2024492 1410

bpf_agent.cD03-May-20246 KiB259172

bpf_cyclic.cD03-May-2024669 3119

bpf_graft.cD03-May-20241.8 KiB6825

bpf_prog.cD03-May-202414.7 KiB500254

bpf_shared.cD03-May-20241.3 KiB4922

bpf_shared.hD03-May-2024341 2318

bpf_sys.hD03-May-2024462 2418

bpf_tailcall.cD03-May-20242.5 KiB10059

README

1eBPF toy code examples (running in kernel) to familiarize yourself
2with syntax and features:
3
4 - bpf_prog.c		-> Classifier examples with using maps
5 - bpf_shared.c		-> Ingress/egress map sharing example
6 - bpf_tailcall.c	-> Using tail call chains
7 - bpf_cyclic.c		-> Simple cycle as tail calls
8 - bpf_graft.c		-> Demo on altering runtime behaviour
9
10User space code example:
11
12 - bpf_agent.c		-> Counterpart to bpf_prog.c for user
13                           space to transfer/read out map data
14