Debian Codegraph @

examples/bpf/README

raw
1 eBPF toy code examples (running in kernel) to familiarize yourself
2 with syntax and features:
3
4 - BTF defined map examples
5 - bpf_graft.c -> Demo on altering runtime behaviour
6 - bpf_shared.c -> Ingress/egress map sharing example
7 - bpf_map_in_map.c -> Using map in map example
8
9 - legacy struct bpf_elf_map defined map examples
10 - legacy/bpf_shared.c -> Ingress/egress map sharing example
11 - legacy/bpf_tailcall.c -> Using tail call chains
12 - legacy/bpf_cyclic.c -> Simple cycle as tail calls
13 - legacy/bpf_graft.c -> Demo on altering runtime behaviour
14 - legacy/bpf_map_in_map.c -> Using map in map example
15
16 Note: Users should use new BTF way to defined the maps, the examples
17 in legacy folder which is using struct bpf_elf_map defined maps is not
18 recommended.