Commit Graph

22 Commits (b6ecbb8bd1e8e1a6257d88b786ed8178c08ea8dd)

Author SHA1 Message Date
Tamir Duberstein 7425e7bd2d Add Rust 1.80.1 to CI
Tamir Duberstein 8250a09bc0 Add rustfmt to CI
Tamir Duberstein 4da4bf4729 Run clippy in CI
Install Rust stable *after* nightly so that the default is stable.
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.
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>
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>
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>
Tamir Duberstein d6334c269a
github: add rust-cache
Fixes .
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.
Michal Rostecki 11f406414e Unpin Rust nightly
The issues with core::sync::atomic got fixed.

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
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.
arctic-alpaca 9e3027896e
CI: Pin nightly toolchain to 2023-01-10, install bpf-linker on stable
Michal Rostecki 70475f3b2a Add raw_tracepoint program type
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
Kenjiro Nakayama 8621ea7d5f Add cgroup_sockopt template for BPF_PROG_TYPE_CGROUP_SOCKOPT
Kenjiro Nakayama 886182d1bc Add cgroup_sysctl to CI
Kenjiro Nakayama 11798df0ab Fix sock_filter to socket_filter
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
```
Michal Rostecki e1fb8024a6 fentry/fexit: Add template for fentry/fexit programs
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
William Findlay 3f082e713e
tp_btf: add template for tp_btf programs
William Findlay 7ffb47cc6b
template: add a new template for LSM programs
Dmitry Savintsev 2dfbeb8371
CI: fix cargo install command for cargo-generate
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>