Tamir Duberstein
dab1aa4e29
maps: avoid retagging in tests
2 weeks ago
Tamir Duberstein
f51ab80075
perf_buffer: attempt to preserve provenance
...
In tests, provide write provenance.
2 weeks ago
Tamir Duberstein
888701425b
perf_buffer: use MMap from ring_buf
2 weeks ago
Tamir Duberstein
ff82c244f7
netlink: avoiding casting pointers to usize
2 weeks ago
Tamir Duberstein
e17feca2d6
maps: remove some stale comments
2 weeks ago
Tamir Duberstein
935ba20224
Enable test under miri
...
nr_cpus() is stubbed since 9e1bcd0ab8
.
2 weeks ago
Tamir Duberstein
5ff57f1d9e
Use `ignore` rather than not compile on big endian
2 weeks ago
Tamir Duberstein
9a47495227
aya,aya-obj: preserve pointer provenance
2 weeks ago
Tamir Duberstein
b500a6326b
tests: use `cfg!` to tidy up
2 weeks ago
Tamir Duberstein
122c49fca4
*: appease clippy
...
While I'm here convert a String to a PathBuf in an error to avoid lossy
conversions.
See https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error .
2 weeks ago
tamird
f49a761c27
aya-obj, aya-ebpf-bindings: regenerate
...
libbpf commit: 20ea95b4505c477af3b6ff6ce9d19cee868ddc5d
2 weeks ago
Tamir Duberstein
5d5b63dcb1
gen: run on ubuntu-latest
...
ubuntu-20.04 is being deprecated.
See https://github.com/actions/runner-images/issues/11101 .
2 weeks ago
aorhant
9e1bcd0ab8
aya: Fix PerCpuHashMap NotFound
...
PerCpuHashMap was never returning MapError::KeyNotFound because
bpf_map_lookup_elem_per_cpu was replacing Ok(None) with
Ok(Some(zeroed_value)).
Update bpf_map_lookup_elem_per_cpu to map the Option value.
2 weeks ago
tamird
39e40ba5c7
public-api: regenerate
2 weeks ago
tamird
ae317961ef
public-api: regenerate
2 weeks ago
Tamir Duberstein
9e52d2c123
Correctly specify git dependency
...
Fixes #1178 .
3 weeks ago
dependabot[bot]
8724cc1b2d
Merge pull request #1177 from aya-rs/dependabot/cargo/cargo-crates-b42da3d535
4 weeks ago
dependabot[bot]
5e5cd29922
build(deps): update rand requirement
...
Updates the requirements on [rand](https://github.com/rust-random/rand ) to permit the latest version.
Updates `rand` to 0.8.5
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.8.0...0.8.5 )
---
updated-dependencies:
- dependency-name: rand
dependency-type: direct:production
dependency-group: cargo-crates
...
Signed-off-by: dependabot[bot] <support@github.com>
4 weeks ago
Tamir Duberstein
c608a2d3d2
Update public-api to 0.44.0
4 weeks ago
tamird
ade2e2a739
aya-obj, aya-ebpf-bindings: regenerate
...
libbpf commit: 20ea95b4505c477af3b6ff6ce9d19cee868ddc5d
1 month ago
Tamir Duberstein
8af5f38056
gen: run automatically
1 month ago
Tamir Duberstein
83b791223f
gen: remove pointless "update"
...
libbpf is a submodule, so its version is already effectively pinned.
`xtask codegen` also runs `git submodule update` which reverts the
action of updating to `origin/HEAD`. Remove the cruft.
1 month ago
Tamir Duberstein
76d1b9f46e
gen: use peter-evans/create-pull-request@v7
...
We already use this for the lint job on main.
1 month ago
Tamir Duberstein
c8f14b18d4
codegen: tidy up
...
Move some code out of a loop, where it appears to be nonsense.
1 month ago
Tamir Duberstein
9198335100
codegen: remove outdated workaround
...
bindgen can handle these macros now.
1 month ago
Tamir Duberstein
ed92e7eb66
aya-tool: use write_all
1 month ago
tamird
76ca85c8c3
public-api: regenerate
1 month ago
Tamir Duberstein
942ea51906
Avoid handwritten assembly
1 month ago
Tamir Duberstein
8ea11ef9e8
Remove duplication
...
Use `BPF_PROG_TYPE_TRACEPOINT` instead of `BPF_PROG_TYPE_SOCKET_FILTER`
as the former seems to work with more feature detection functions.
1 month ago
Tamir Duberstein
b010b0f028
Avoid raw slice construction
...
The safety requirements of this transmutation are simpler.
1 month ago
Tamir Duberstein
94c857261a
aya-obj: use generated constants
1 month ago
tamird
e82253c915
chore(aya-obj, aya-ebpf-bindings): Regenerate bindings
...
libbpf commit: d4a841a32b04d69194ab5bdac359a51938a206ce
Files changed:
M aya-obj/src/generated/linux_bindings_aarch64.rs
M aya-obj/src/generated/linux_bindings_armv7.rs
M aya-obj/src/generated/linux_bindings_mips.rs
M aya-obj/src/generated/linux_bindings_powerpc64.rs
M aya-obj/src/generated/linux_bindings_riscv64.rs
M aya-obj/src/generated/linux_bindings_s390x.rs
M aya-obj/src/generated/linux_bindings_x86_64.rs
M xtask/public-api/aya-obj.txt
1 month ago
Tamir Duberstein
2319770f5b
codegen: generate additional userspace constants
1 month ago
Tamir Duberstein
ee7861a6ed
codegen: avoid lossy string conversion
...
This can't possibly work right if lossy conversion is required.
1 month ago
Tyrone Wu
665d4f20bb
chore: remove aya_obj -> obj alias
...
When `aya::obj` was migrated to be its own crate `aya-obj`, the `obj`
alias was created to preserve existing imports that relied on
`crate::obj`.
This resulted in 3 ways to import `aya-obj` objects:
- `use aya_obj::*`
- `use obj::*`
- `use crate::obj::*`
The `obj` alias is now removed to avoid confusion, and all `obj` imports
are funneled through `aya_obj`.
1 month ago
Dave Tucker
67a0595f87
Merge pull request #1159 from dave-tucker/codegen-pr-message
...
ci: Update codegen PR template
1 month ago
Dave Tucker
921e45747b
Merge pull request #690 from dave-tucker/netlink-errors
...
aya: Return error messages from netlink
1 month ago
Dave Tucker
39cf6c12f2
feat(aya): Return error messages from netlink
...
This returns error strings from netlink since they are more informative
than the raw os error. For example:
"Device or Resource Busy" vs. "XDP program already attached".
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
1 month ago
Dave Tucker
5d27e62b6a
ci: Update codegen PR template
...
Updated to match the commit message
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
1 month ago
Dave Tucker
0865e08dcf
Merge pull request #1158 from aya-rs/codegen
...
Update libbpf to d4a841a32b04d69194ab5bdac359a51938a206ce
1 month ago
dave-tucker
b686d6a245
chore(aya-obj, aya-ebpf-bindings): Regenerate bindings
...
libbpf commit: d4a841a32b04d69194ab5bdac359a51938a206ce
Files changed:
M aya-obj/src/generated/linux_bindings_aarch64.rs
M aya-obj/src/generated/linux_bindings_armv7.rs
M aya-obj/src/generated/linux_bindings_mips.rs
M aya-obj/src/generated/linux_bindings_powerpc64.rs
M aya-obj/src/generated/linux_bindings_riscv64.rs
M aya-obj/src/generated/linux_bindings_s390x.rs
M aya-obj/src/generated/linux_bindings_x86_64.rs
M xtask/public-api/aya-obj.txt
1 month ago
Dave Tucker
5942fe3702
Merge pull request #1157 from dave-tucker/codegen-improvements
...
ci: Improve Codegen Workflow
1 month ago
Dave Tucker
34be19a24d
ci: Improve Codegen Workflow
...
1. Bless public-api changes
2. (Hopefully) fix the commit message
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
1 month ago
Dave Tucker
9ddee3552d
Merge pull request #1156 from dave-tucker/nlmsgerr_attrs
...
chore(codegen): Add nlmsgerr_attrs
1 month ago
Dave Tucker
b16ca6f570
chore(codegen): Add nlmsgerr_attrs
...
This is required for nicer netlink error messages
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
1 month ago
Dave Tucker
2f757b2091
Merge pull request #482 from ishanjain28/add_mips_support
...
Added MIPS bindings
1 month ago
Dave Tucker
2eaae09c31
chore(aya-ebpf-cty): Add mips support
...
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
1 month ago
Dave Tucker
1495a93c45
ci: Include mips architecture in tests
...
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
1 month ago
Dave Tucker
1ccac3c135
feat(ebpf): Implement FromPtRegs for mips
...
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
1 month ago
Ishan Jain
3ff609114e
feat(aya): Added MIPS bindings
...
Updated `aya-obj/src/generated/mod.rs` and
`bpf/aya-bpf-bindings/src/lib.rs to use the mips bindings.
1 month ago