Code-snippets for developing eBPF programs
- Search for
@category:"snippets" ebpf-snippetsin extensions and clickinstall
OR
- Install using
ext install
- GOTO latest release and download the
vsixfile.
- In vscode, hit
ctrl+shift+p,- type
install from vsixhit-enter, then - choose the downloaded
vsix file
- type
Enjoy :)
- https://docs.ebpf.io/
- https://docs.kernel.org/bpf/libbpf/program_types.html
- for
prog_typeandprog_context: https://elixir.bootlin.com/linux/v6.13.6/source/include/linux/bpf_types.h - for
prog_section: https://elixir.bootlin.com/linux/v6.13.6/source/tools/lib/bpf/libbpf.c#L9403
Improvements to eBPF-snippets are always welcome !
If you’d like to contribute, feel free to open an issue or submit a pull request.



