158 Commits (bc2db6b11279c79bc672bf5ded39d4dca2f69821)
 

Author SHA1 Message Date
Alessandro Decina 81a98fe13a ebpf: set opt-level = 2
Pretty much all non trivial programs need at least opt-level=2 to
compile and link successfully
3 years ago
Alessandro Decina a9a659716b ebpf: set target and enable -Z build-std in .cargo/config.toml
This makes it possible to build with:

    cd {{project-name}}-ebpf && cargo +nightly build
3 years ago
Dave Tucker d98d90be7a Generate Skeleton Programs for all program types
User may specify a program_type by prompt or CLI flag.
We then generate skeleton code to the ebpf program for a noop program of
that type.

Requires cargo-generate@main

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago
Dave Tucker 250c9ff653
Merge pull request #2 from vadorovsky/readme-fix-arg
readme: Fix the cargo run --bin flag
3 years ago
Michal Rostecki f3a8f5d003 readme: Fix the cargo run --bin flag
The flag for `cargo run` is `--bin`, not `-bin`.

Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
3 years ago
Dave Tucker 273123abb7 aya isn't optional for the main program
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago
Dave Tucker 5d018fd6ba Add xtask for building ebpf programs
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago
Dave Tucker 9e1c761d8d Initial Commit
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago