Skip to content

A template repository for quickly creating one-off eBPF experiments.

License

Notifications You must be signed in to change notification settings

FridayOrtiz/easy-bpf-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy-bpf-playground

A template repository for quickly creating one-off eBPF experiments.

Building

Once you have your BPF code written, cd to the bpf/ folder and run docker compose up. That should be all you need to build the filter_program_x86_64.

Once this is done, from the project root cargo build should build your executable with the filter bundled in. If you want to run it with cargo, you may need to invoke it with root privileges. I recommend creating an alias scargo='sudo -E $HOME/.cargo/bin/cargo' so you can easily scargo run during testing.

Note: The template will not build and run as-is. You will need to provide a BPF filter and modify main.rs to load the appropriate filter type. If you want an example of this template in action, check out timebase.

About

A template repository for quickly creating one-off eBPF experiments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published