Commit Graph

12 Commits (136f109cb557547aa9b5b18c80f273d14e02750c)

Author SHA1 Message Date
Tamir Duberstein 136f109cb5
Replace xtask builds with build scripts
Adapt https://github.com/aya-rs/aya/commit/3d463a3 and subsequent work
to the template. This has worked very well for us in the main project,
and our users should get the same hotness.

Note that xtask is still used for running, as it is in the main project.
Tamir Duberstein 4da4bf4729 Run clippy in CI
Install Rust stable *after* nightly so that the default is stable.
Tamir Duberstein ee45752006 Move dependencies to workspace
Add "{{project-name}}-ebpf" to workspace. Update various cargo configs
to match main aya repo.
Tamir Duberstein 1247fdea1d socket_filter: fix build
The signature of attach changed in
https://github.com/aya-rs/aya/pull/723.
Luca BRUNO 463013a11e cargo-generate: sort program types
Michal Rostecki 70475f3b2a Add raw_tracepoint program type
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
Kenjiro Nakayama dcb6523ada Fix wrong elif condition
Michal Rostecki e1fb8024a6 fentry/fexit: Add template for fentry/fexit programs
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
William Findlay 89fb552f98
ci: fix ci to work with include_bytes_aligned!
This change requires the eBPF program to be built _before_ userspace.
Update CI to do this.
William Findlay 3f082e713e
tp_btf: add template for tp_btf programs
William Findlay 7ffb47cc6b
template: add a new template for LSM programs
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>