mirror of https://github.com/aya-rs/aya
It's necessary to call `bpf_probe_read` not only for pointers retrieved from `PtRegs`, but also from BTF arguments. `bpf_probe_read` might return an error, so the return type of `.arg()` methods in contexts handling BTF arguments changes from `T` to `Option<T>`. `None` is returned when `bpf_probe_read` call is not successful. Fixes: #542 |
6 months ago | |
---|---|---|
.. | ||
bpf | 6 months ago | |
src | 6 months ago | |
Cargo.toml | 6 months ago | |
build.rs | 6 months ago |