aya-rs / aya

Aya is an eBPF library for the Rust programming language, built with a focus on developer experience and operability.
https://aya-rs.dev/book/
Apache License 2.0
3.25k stars 291 forks source link

Automatically Size PerfEventArrays #996

Closed dave-tucker closed 4 months ago

dave-tucker commented 4 months ago

This brings Aya into compliance with libbpf and other popular loaders. PerfEventArray sizes should be set to 0 at compile time. At load time, they are set to the number of online CPUs.

Fixes: #995

netlify[bot] commented 4 months ago

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
Latest commit fd4d354bb008f447d9a6315b5638b27b6e37e351
Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/66a7560dc4a4660008ed9a97
Deploy Preview https://deploy-preview-996--aya-rs-docs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

tamird commented 4 months ago

FYI this broke the book build: https://github.com/aya-rs/book/actions/runs/10156051789