Commit Graph

2153 Commits (4155c7e63afe3265a7a30999ff95a012301f9045)
 

Author SHA1 Message Date
Quentin VIGNAUD 4155c7e63a Trying fix on stop 2 months ago
Quentin VIGNAUD 83dfe27bcd Triggering pending directly 2 months ago
Quentin VIGNAUD dee95d9044 Using trixie (as ubuntu-latest) 2 months ago
Quentin VIGNAUD 53eb17c312 Reenabling contexts 2 months ago
Quentin VIGNAUD 2817680177 Changing trigger 2 months ago
Quentin VIGNAUD f8ae28ba36 Trying another trigger 2 months ago
Quentin VIGNAUD b59a94206e Enabling only one state 2 months ago
Quentin VIGNAUD df899b7e1b Try W/O Github API 2 months ago
Quentin VIGNAUD 4bace3c004 Check stuff 2 months ago
Quentin VIGNAUD 352fd1841a Use debug registry 2 months ago
Quentin VIGNAUD 7d18a3393e Check Github API 2 months ago
Quentin VIGNAUD 67d1efee0a Disabling Github API 3 months ago
Quentin VIGNAUD e993609125 Avoiding js 3 months ago
Quentin VIGNAUD 06367700ea Trying stuff on Github 3 months ago
Quentin VIGNAUD 88355dae5f Fixing llvm 3 months ago
Quentin VIGNAUD 57dac00c00 Trying things 3 months ago
Quentin VIGNAUD a8a23bb902 Fixing command 3 months ago
Quentin VIGNAUD 2a4824acc2 Trying stuff 3 months ago
Quentin VIGNAUD 7d97a35b1a Debug 3 months ago
Quentin VIGNAUD 57901f8571 Trying with cross 3 months ago
Quentin VIGNAUD c7b28a9cce Chaging image 3 months ago
Quentin VIGNAUD c24725f536 Fixes 3 months ago
Quentin VIGNAUD 8a231441d5 Trying fix 3 months ago
Quentin VIGNAUD 16184a14b8 Fix curl 3 months ago
Quentin VIGNAUD 1973becce7 Fix token 3 months ago
Quentin VIGNAUD efa13eb84a Add pseudo-token 3 months ago
Quentin VIGNAUD b6edcc63db Fix tag 3 months ago
Quentin VIGNAUD 0f19b18c1e Trying direct run 3 months ago
Quentin VIGNAUD d2bdeddeb9 Try fix according to gha file location rules 3 months ago
Quentin VIGNAUD 1622618184 Fix syntax 3 months ago
Quentin VIGNAUD 80dde0f774 Setup workspaces 3 months ago
Quentin VIGNAUD 584584f557 Adding checkout 3 months ago
Quentin VIGNAUD 86818ce0d7 Trying fix 3 months ago
Quentin VIGNAUD 9bf64dfbe1 COmment unused code 3 months ago
Quentin VIGNAUD 09ba8a2185 Trying first Mélodium CI impl 3 months ago
Tamir Duberstein d1fdbb9930
Update to macOS 15 (#1351) 3 months ago
Thomas Eizinger e2a68ee384 aya-log: add `#[must_use]` attribute to `EbpfLogger` 3 months ago
Tamir Duberstein 30182463bd
aya-obj: explicitly enable hashbrown features 3 months ago
tamird 32071bdca7 public-api: regenerate 3 months ago
Michal R 0b2a544ddd aya-ebpf: Add BTF array definition
Before this change, Aya supported only legacy BPF map definitions, which
are instances of the `bpf_map_def` struct and end up in the `maps` ELF
section.

This change introduces a BTF map definition for arrays, with custom
structs indicating the metadata of the map, which end up in the `.maps`
section.

Co-authored-by: Tamir Duberstein <tamird@gmail.com>
3 months ago
Michal R e0ceb6214b aya-obj: Remove `Safety: union` comments
They serve no purpose, there are no unions no unsafe operations around.
3 months ago
Tamir Duberstein 658ae0fbb9 aya-obj: simplify using CStr::from_bytes_until_nul 3 months ago
Michal R d5e4e9270a aya-ebpf: Remove irrelevant `FIXME` comment
eBPF verifier in recent kernels should be smart enough to track map
map types and catch invalid pointer casts. Rust type system makes sure
that the `get` method can return only the same type the map was created
with. Therefore, safe usage of Aya map types shouldn't cause element
type mismatches.

Manual alignment checks (`pointer::is_aligned` or manual pointer
arithmetic operations) cause the following verifier error:

```
bitwise operator &= on pointer prohibited
```

And it extremely unlikely `bpf_map_lookup_elem` ever returns a
misaligned pointer.
3 months ago
Michal R 3569c9afc3 aya-ebpf: Take `c_void` instead of `bpf_map_def` in map helpers
`bpf_map_def` is a legacy map definition. To be able to introduce BTF
map definitions, make the `lookup` and `remove` helpers work with
`c_void` and let the callers cast the map types to it.
3 months ago
Adam Schreck 263e864cd9 aya: add Map::from_map_data() for pinned map access
Enables creation of Map enum variants directly from MapData instances,
allowing user-space handles to pinned BPF maps without requiring the
original BPF object.

Supports multiple BPF map types.

Motivation:
- Simplifies accessing pinned maps from user space applications.
- Avoids full BPF reloads and potential deadlocks.
- Matches existing ergonomic APIs like LruHashMap::try_from.
- Keeps user code safe and idiomatic.

Closes https://github.com/aya-rs/aya/issues/1305.

Includes test coverage to validate the new API.
3 months ago
Tamir Duberstein 214fe3c367
aya-log-common: seal Argument 3 months ago
Tamir Duberstein 353b83383d
aya-log-ebpf: zero copy! 3 months ago
Tamir Duberstein 3f60168d4b
ring_buf: add RingBufBytes for raw byte slices 3 months ago
Tamir Duberstein 8e2632921f
aya-log: add DST test 3 months ago
Tamir Duberstein f537dc6684
ring_buf: destructure, avoid `as` casts 3 months ago