Commit Graph

2340 Commits (555c212686111c6aca5159f8ce994c8e74b9d705)
 

Author SHA1 Message Date
Tamir Duberstein 866cbe4837
all: bump MSRV to 1.87.0
Use newly stabilized `is_multiple_of`.
1 month ago
Tamir Duberstein 468b9b73db
xtask: use `-cpu host` on x86
We have started to see errors in CI:

  qemu-system-x86_64: warning: host doesn't support requested feature: CPUID[eax=80000001h].ECX.svm [bit 2]

The internet says this is the remedy.
1 month ago
swananan 4fbce44b6a aya: tolerate proc map trailing newline
Proc maps terminate with a newline so split(b'\n') yields an empty
slice at the end. Filter it out before parsing so the absolute-path
fallback for pid-scoped attach doesn't get short-circuited by a
ProcMap::ParseLine error.
2 months ago
Tim W 17573e0e47 aya-build: plumb features of ebpf crates
This allows callers to select features of the ebpf crate.
2 months ago
Tamir Duberstein 948b8553ee
aya-build: guess `bpf_target_arch` from `HOST`
Remove the use of `CARGO_CFG_TARGET_ARCH` in ebpf crate build scripts,
moving it back only to `aya_build::build_ebpf` where it refers to the
userspace crate's target. In the ebpf crates restore the use of `HOST`
as the default compilation target when neither `--cfg bpf_target_arch`
nor `AYA_BPF_TARGET_ARCH` are provided.
2 months ago
Tamir Duberstein fe3f5c4e7d
aya-build: read AYA_BPF_TARGET_ARCH
This allows users to set `bpf_target_arch` from the environment without
touching RUSTFLAGS.
2 months ago
Tamir Duberstein 4b0ddfc2b0
aya-build: simplify
Cargo sets `CARGO_CFG_BPF_TARGET_ARCH` so we don't have to inspect
`CARGO_ENCODED_RUSTFLAGS`.
2 months ago
Tamir Duberstein 0c7c8097b2
aya-build: clarify naming 2 months ago
Tamir Duberstein e2c50ac221
aya-build: use OsString::into_string 2 months ago
Tamir Duberstein 4dc4a6ce08
.github: exercise targets for real 2 months ago
Alessandro Decina 3a3c451009 aya: restore must_exist argument to set_global
In
03e8487177
we deprecated set_global but accidentally broke its API by deleting the
must_exist argument.
2 months ago
Quentin VIGNAUD dff5eb8743 Disabling only docker daemon 2 months ago
Quentin VIGNAUD 8e36a8c471 Disabling service start 2 months ago
Quentin VIGNAUD 045ac2065a Only aarch64 2 months ago
Quentin VIGNAUD 8ad882d4d3 Merge branch 'former_work' into melodium_ci 2 months ago
Quentin VIGNAUD ce814e6cb5 Enabling armv7 & aarch64 on same runner 2 months ago
Quentin VIGNAUD 07508484f6 Merge remote-tracking branch 'origin/main' into former_work 2 months ago
Quentin VIGNAUD 3d70b3fb3d Fix env load 2 months ago
Quentin VIGNAUD 94ea0bbc80 Trying again to understand behavior of remote script 2 months ago
Quentin VIGNAUD 5e574641a8 Trying fix 2 months ago
Quentin VIGNAUD 40b874ce2a Fix typo 2 months ago
Quentin VIGNAUD 1570037354 Trying stuff 2 months ago
Quentin VIGNAUD cd0d23fa26 Trying fix 2 months ago
Quentin VIGNAUD ed6e139b35 Fix typo 2 months ago
Quentin VIGNAUD f00833431e Trying things 2 months ago
Quentin VIGNAUD 2c4d914565 Fixing stuff 2 months ago
Quentin VIGNAUD 6670b34579 Test direct run 2 months ago
Quentin VIGNAUD 4a112188e7 Running only directly aarch64 2 months ago
Quentin VIGNAUD b9dcb261b5 Trying only two at a time 2 months ago
Tamir Duberstein 03fea9e304
aya-ebpf: reduce duplication 2 months ago
Tamir Duberstein b4bcf52ef1
aya-build: pass bpf_target_arch with cfg
Retire the use of `CARGO_CFG_BPF_TARGET_ARCH` -- using a `cfg` allows
cargo to properly use a cache per cfg, making `./clippy.sh` much faster.

```
Cold: ./clippy.sh --target x86_64-unknown-linux-gnu -p aya-build  75.38s user 137.28s system 211% cpu 1:40.43 total
Warm: ./clippy.sh --target x86_64-unknown-linux-gnu -p aya-build   4.46s user   3.41s system  71% cpu   11.01 total
```
2 months ago
Tamir Duberstein d73c65caae
Add some type ascription 2 months ago
Tamir Duberstein 17c7c7951c
lints: enable clippy::as_underscore 2 months ago
Tamir Duberstein 778b447e3b
lints: enable unsafe_op_in_unsafe_fn 2 months ago
Tamir Duberstein d9704be77d
aya-build: remove cargo_metadata from public API 2 months ago
Tamir Duberstein a18e283e2a
clippy: lint all bpf target archs 2 months ago
Tamir Duberstein f610453ec2
ebpf: extract CARGO_CFG_BPF_TARGET_ARCH logic 2 months ago
Tamir Duberstein e5eb3058aa
.github: save CI time
These jobs take 18 seconds of machine time and 21 seconds of setup;
consolidate them into one job to cut down on the overhead.
2 months ago
Tamir Duberstein 05250da20b
aya-ebpf: reduce repetition and excessive traits
The traits `FromBtfArgument`, `FromRawTracepointArgs`, `FromPtRegs` are
all fancy ways of saying `Argument` - so replace these traits with it.

This also removes the use of `bpf_probe_read` which was introduced in
05c1586202 because I can't reproduce the
need for it.
2 months ago
Godones 4b4b9f83bd
enable bpf_target_arch = loongarch64
Signed-off-by: Godones <chenlinfeng25@outlook.com>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
2 months ago
Tamir Duberstein 9e577f60b5
integration-test: remove `netns-rs`
This crate uses a very old version of `nix` which is preventing us from
adding support for loongarch64.

Make panic-in-panic more uniform while I'm here.
2 months ago
Quentin VIGNAUD 1b175704a0 Updating yaml 2 months ago
Quentin VIGNAUD 889cdd5405 Trying full implementation for buildTestAya 2 months ago
Tamir Duberstein 12d963ddfd
brewfile: remove dpkg
This is unused since a7cfc694bd.
2 months ago
Quentin VIGNAUD 07ca2f0d50 Updating Mélodium version 2 months ago
Quentin VIGNAUD 5737bfb85f Install qemu-user 2 months ago
Michal R a7cfc694bd xtask: Allow to run VM integration tests without dpkg
Debian packages are just nested archives, where the outer one is ar
and the inner one is lzma2 tarball. Use Rust crates to unpack them.

Co-authored-by: Tamir Duberstein <tamird@gmail.com>
2 months ago
Andrew Werner 03e8487177 aya: rename `set_` methods on `EbpfLoader`
This loader is more of a builder, so these `set_` methods didn't
quite fit. See [this discussion][1] for the motivation.

[1]: https://reviewable.io/reviews/aya-rs/aya/1318#gh-2384180366
2 months ago
Quentin VIGNAUD 3cb7f77ab4 More details 2 months ago
Quentin VIGNAUD 972ab83a61 Looking what is done 2 months ago