An open API service indexing awesome lists of open source software.

https://github.com/h0x0er/ebpf-snippets

Code-snippets for developing eBPF programs
https://github.com/h0x0er/ebpf-snippets

ebpf ebpf-programs snippets-collection vscode-snippets

Last synced: 8 months ago
JSON representation

Code-snippets for developing eBPF programs

Awesome Lists containing this project

README

          

# eBPF Snippets

Code-snippets for developing eBPF programs

![alt text](./media/usage.gif)

# Install

## Within vscode

- Search for `@category:"snippets" ebpf-snippets` in extensions and click `install`

OR

- Install using `ext install`

![alt text](./media/install-ext.png)

## From github-release

1. GOTO latest [release](https://github.com/h0x0er/ebpf-snippets/releases) and download the `vsix` file.

![alt text](./media/release.png)

2. In vscode, hit `ctrl+shift+p`,
1. type `install from vsix` hit-enter, then
2. choose the downloaded `vsix file`

![alt text](./media/install-vscode.png)

**Enjoy :)**

## References

- https://docs.ebpf.io/
- https://docs.kernel.org/bpf/libbpf/program_types.html

## Contribution

Improvements to **eBPF-snippets** are always welcome !
If you’d like to contribute, feel free to open an issue or submit a pull request.