Commit Graph

2334 Commits (a71866c78ebe02ce69024eb945bb13624b34c326)
 

Author SHA1 Message Date
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
Tamir Duberstein 54bd3ac202
Skip `lsm_cgroup` when loading fails
squash into proper check
2 months ago
Tamir Duberstein 2e5f5efbf1
aya: make ProgramInfo a proper enum
This allows us to distinguish between LSM and LSM_CGROUP programs and do
the proper capability check in is_program_supported.
2 months ago
Tamir Duberstein 3d0b53111f
integration-test: remove skips 2 months ago
Tamir Duberstein 8e9404ecd4
aya-obj: apply enum64-to-union fixup in reloc
This code is just awful.
2 months ago
Tamir Duberstein 7224efcad8
aya-obj: patch up 0-size datasec
Use OnceCell for ENUM64 while I'm here as well.
2 months ago
Tamir Duberstein 166ad2f40f
btf: reduce repetition
This code is bad.
2 months ago
Tamir Duberstein 122cf17a43
btf: avoid `unreachable!()` and `unwrap()` 2 months ago
Tamir Duberstein 3ade19b869
Promote BTF loading failure to error on BTF relocs 2 months ago
Tamir Duberstein b2fd9493a8
integration-test: handle !bpf_perf_link 2 months ago
Tamir Duberstein 4c974d33a3
xdp: replace kernel version check with fallback 2 months ago
Tamir Duberstein 0ec60c4f23
Skip `bpf_strncmp` on kernel < 5.17 2 months ago
Tamir Duberstein 4c22a99cb0
Skip af_xdp when AF_XDP is unsupported 2 months ago
Tamir Duberstein 984a0501c6
Raise RLIMIT_MEMLOCK on kernel version < 5.11.0
See https://github.com/cilium/ebpf/blob/main/docs/ebpf/concepts/rlimit.md.
2 months ago
Quentin VIGNAUD 8d4585958d Adding apt update 2 months ago
Quentin VIGNAUD 2df772eef4 Add arm64 packages 2 months ago
Quentin VIGNAUD cf4f1a3b91 Adding specific arch version 2 months ago
Quentin VIGNAUD dfa126b81d Add lzma-dev 2 months ago
Tamir Duberstein e5306901a0
Skip `test_uprobe_cookie` on kernel < 5.15 2 months ago
Quentin VIGNAUD c027d41a0c Direct connection 2 months ago
Tyrone Wu 3d7fbaad28 aya: enforce valid perf_event type & config combos
Add guardrails for when setting event type and config for perf_event
programs. The `PerfEventConfig` enum now defines the event `type` and
`config` of interest.

Remove public re-exports, and add idiomatic Rust types for:
- perf_hw_id => HardwareEvent
- perf_sw_ids => SoftwareEvent
- perf_hw_cache_id => HwCacheEvent
- perf_hw_cache_op_id => HwCacheOp
- perf_hw_cache_op_result_id => HwCacheResult

The motivation behind this is mainly for the `type` and `config` fields
of `bpf_link_info.perf_event.event`. The newly added enums are planned
to also be used in the `bpf_link_info` metadata.

Although `Breakpoint`/`PERF_TYPE_BREAKPOINT` variant exists, it is not
fully implemented. It's only usage at the moment is in link info.
2 months ago
Tamir Duberstein 08cf90881f
integration-test: extract run_pin_program_lifecycle_test 2 months ago
Tamir Duberstein fe43f776c3
integration-test: extract from_pin 2 months ago
Tamir Duberstein 0840faf6b1
integration-test: extract pin paths 2 months ago
Tamir Duberstein 0f1c975632
integration-test: extract run_unload_program_test 2 months ago
Tamir Duberstein a6458804fc
integration-test: extract types 2 months ago
Tamir Duberstein a2f4951cce
integration-test: remove errant semicolons 2 months ago
Tamir Duberstein 89d746ad1b
integration-test: extract attach fns 2 months ago
Tamir Duberstein 48300b6498
integration-test: extract program names 2 months ago
Tamir Duberstein 4041fe9293
integration-test: move memmove out of pin tests 2 months ago
Tamir Duberstein c2fb7fed6c
Remove useless impl 2 months ago
Tamir Duberstein f76fdf9da5
Improve error output
- Use consistent casing.
- Emit syscall return value.
2 months ago
Tamir Duberstein 82aec26963
flow_dissector: add missing impl_try_into_fdlink 2 months ago
Tamir Duberstein 0cb52e850a
xtask: tolerate curl failure when possible
Codex sandbox forbids network access.
2 months ago
Tamir Duberstein 667790e103
xtask: avoid `git submodule update` when possible
`git submodule update` fails when running in a codex sandbox:

```
  error: could not lock config file /Users/tamird/src/aya/.git/modules/libbpf/config: Operation not permitted
```

so just avoid it when not necessary.
2 months ago
Tamir Duberstein 6fc06b9fcf
Remove unused error variant 2 months ago
Tamir Duberstein 4ce1e29804
clippy.sh: build for BPF after everything else
In cases where I run `./clippy.sh ... -p <crate>` I really want the
results for that crate to come quickly.
2 months ago
Tamir Duberstein 57a75dfd61
.vscode: always use linux in rust-analyzer 2 months ago
Christian A. Jacobsen a98b638fa9 feat(log): add support for logging raw pointer types
* Requires the usage of `:p` display hint.
* Will, like stdlib, log with `0x` prefix.
2 months ago
Quentin VIGNAUD 5943d5c180 Change back to prepare 2 months ago
Quentin VIGNAUD 61765fbb5c Update pending state trigger 2 months ago
Quentin VIGNAUD 152b32cf50 Using main release 2 months ago
Quentin VIGNAUD 3332e5befe Doing some fixes 2 months ago
Tamir Duberstein 29dc775535
test-distro: appease unreachable code check
See https://github.com/rust-lang/rust/commit/ff6dc928c5e33ce8e65c6911a7.
2 months ago
Altug Bozkurt fc5387c806
lsm: cgroup attachment type support 2 months ago
Quentin VIGNAUD 4155c7e63a Trying fix on stop 2 months ago
Quentin VIGNAUD 83dfe27bcd Triggering pending directly 2 months ago
Tamir Duberstein 66ed37c8a9
integration-test: add LSM 2 months ago