Commit Graph

19 Commits (7e2f86c1c0463ba8ff8765299561287e4661efe3)

Author SHA1 Message Date
Tamir Duberstein 439aeed171
Enable unwinding in userspace
Tamir Duberstein b1d6fb31ea Always build eBPF; remove xtask
Tamir Duberstein 27e7867528 Add cross-compilation to CI
Updates the README to use cargo target config instead of RUSTFLAGS to
avoid setting the linker for ebpf in cargo-in-cargo.
Tamir Duberstein 89eb550856 Reformat test.sh
Tamir Duberstein 5622ca4df1 Test execution of projects
Tamir Duberstein b6ecbb8bd1 Appease shellcheck
Tamir Duberstein 8250a09bc0 Add rustfmt to CI
Tamir Duberstein 5811d6ff56 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>