Commit Graph

2331 Commits (aeb25e158f9d492130e42057df9829ec5afa2e12)
 

Author SHA1 Message Date
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
Andrew Werner 17171647f7 aya/maps/ring_buf: fix producer position initialization
The RingBuf caches the last value it read of the producer so it doesn't
need to constantly contend on the actual producer cache line if lots of
messages have yet to be consumed. It was bogus to initialize this cache
at 0. This patch initializes it properly and adds testing.

Fixes: #1309
2 months ago
Andrew Werner 5802dc7a23 aya: allow specifying a pin path for a named map
This commit extends the EbpfLoader with set_map_pin_path that allows the
caller to associate a named map with a pin path.

One note is that this path is an absolute path, not relative to
`map_pin_path`, and it forces the map to be loaded from that path.
2 months ago
Andrew Werner 1c924bb421 aya: rename map_pin_path to default_map_pin_path
This is the path in which pinned maps are created or resolved. It
isn't actually the path for any specific map itself. This rename
makes way for a method `set_map_pin_path` that actually specifies
the pin path for a specific map.
2 months ago
Quentin VIGNAUD 2216cecf6e Adding qemu aarch64 2 months ago
Quentin VIGNAUD 69eada6430 Using new I/O 2 months ago
Tamir Duberstein 0144c0eb22
integration-test: defer cleanup to ensure unpin 2 months ago
Tamir Duberstein e3f69829de
.github: run old kernels first 2 months ago
Tamir Duberstein c7d4cd3943
ci: test against 5.10
This is the earliest LTS that still exists on debian mirrors.
2 months ago
Tamir Duberstein 907920a629
Skip `cpumap_chain` when attachment fails 2 months ago