Tamir Duberstein
ab8d5d7c0a
ci: `brew update` to install LLVM 20
4 months ago
Tamir Duberstein
273f30a0da
ci: use latest stable rust
...
cargo_metadata depends on e.g. `home`[0] whose MSRV is N-2[1], so we
can't easily pin our Rust version.
Link: https://crates.io/crates/home [0]
Link: https://github.com/rust-lang/cargo/commit/c6c1df47 [1]
7 months ago
Tamir Duberstein
59c882cebf
Enable unwinding in userspace
8 months ago
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.
9 months ago
Tamir Duberstein
5622ca4df1
Test execution of projects
9 months ago
Tamir Duberstein
dec0021b58
Use cancel-in-progress
9 months ago
Tamir Duberstein
7425e7bd2d
Add Rust 1.80.1 to CI
10 months ago
Tamir Duberstein
8250a09bc0
Add rustfmt to CI
10 months ago
Tamir Duberstein
4da4bf4729
Run clippy in CI
...
Install Rust stable *after* nightly so that the default is stable.
10 months ago
Tamir Duberstein
91518b64b3
Build on ubuntu-22.04
...
This matches the version used in the bpf-linker binstall job. Otherwise
we fail with:
```
= note: bpf-linker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by bpf-linker)
bpf-linker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by bpf-linker)
bpf-linker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by bpf-linker)
```
Add a nightly build so we catch these earlier.
10 months ago
dependabot[bot]
6abd727868
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Dave Tucker
162599934c
ci: Use taiki-e/install-action
...
This should binstall cargo-generate to save CI time
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2 years ago
dependabot[bot]
1a1d2b625e
Bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Tamir Duberstein
b14a75f692
github: add dependabot
2 years ago
Tamir Duberstein
d6334c269a
github: add rust-cache
...
Fixes #50 .
2 years ago
Tamir Duberstein
37654a088e
Replace actions-rs/toolchain with dtolnay/rust-toolchain
...
See https://github.com/actions-rs/toolchain/issues/216 ; actions-rs seems
to be unmaintained.
2 years ago
Michal Rostecki
11f406414e
Unpin Rust nightly
...
The issues with core::sync::atomic got fixed.
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
3 years ago
Luca BRUNO
554702e63d
cargo-generate: add perf_event
...
This adds `perf_event` program type as a template entry.
The new entry comes with a skeleton example which register
scheduled events on each CPU at 1 HZ, triggered by the kernel
(based on clock ticks). The corresponding BPF logic logs each
event, and can identify kernel tasks from userland processes.
3 years ago
arctic-alpaca
9e3027896e
CI: Pin nightly toolchain to 2023-01-10, install bpf-linker on stable
3 years ago
Michal Rostecki
70475f3b2a
Add raw_tracepoint program type
...
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
3 years ago
Kenjiro Nakayama
8621ea7d5f
Add cgroup_sockopt template for BPF_PROG_TYPE_CGROUP_SOCKOPT
3 years ago
Kenjiro Nakayama
886182d1bc
Add cgroup_sysctl to CI
3 years ago
Kenjiro Nakayama
11798df0ab
Fix sock_filter to socket_filter
4 years ago
Kenjiro Nakayama
8dcda393c4
Add template for socket_filter program type
...
This patch adds template for socket_filter.
e.g.
```sh
cargo generate --path ~/dev/aya-template \
--name my-test \
-d program_type=socket_filter
```
4 years ago
Michal Rostecki
e1fb8024a6
fentry/fexit: Add template for fentry/fexit programs
...
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
4 years ago
William Findlay
3f082e713e
tp_btf: add template for tp_btf programs
4 years ago
William Findlay
7ffb47cc6b
template: add a new template for LSM programs
4 years ago
Dmitry Savintsev
2dfbeb8371
CI: fix cargo install command for cargo-generate
4 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>
4 years ago