https://github.com/yeet-src/yeet-template
https://github.com/yeet-src/yeet-template
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yeet-src/yeet-template
- Owner: yeet-src
- Created: 2024-10-21T23:49:08.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-12T18:51:14.000Z (over 1 year ago)
- Last Synced: 2025-03-12T19:34:30.785Z (over 1 year ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yeet template
This is a template for creating a new BPF program for loading with yeet.
## Usage
```sh
make init
```
This will create a new directory with the name you provided, copy the template into it, and initialize a git repository.
To get started, run `make` to build the BPF program.
```sh
make -C
```
This will build the BPF program in a docker container. If you do not have docker installed, you can build the program natively with `CONTAINER=no make -C ` but you will need to have the necessary tooling installed.
## Loading the BPF program
To load the BPF program, use yeet.
```sh
sudo yeet add path/to/
sudo yeet start
```
This will load the BPF program and start it. You can then check the status of the BPF program with `sudo yeet ls`.
You can also view the output of bpf_printk statements with
```
sudo yeet trace
```
NOTE: In order to load properly, the BPF program must pass the verifier.
To view logs from yeetd, use
```sh
sudo journalctl -u yeetd.service -f
```