Tamir Duberstein
Tamir Duberstein
This is almost done. We have two instances of held `RawFd` left: https://github.com/aya-rs/aya/blob/0b6ea313ded3240715d1b30d3b247e2bc983659e/aya/src/programs/socket_filter.rs#L126-L127 https://github.com/aya-rs/aya/blob/0b6ea313ded3240715d1b30d3b247e2bc983659e/aya/src/programs/xdp.rs#L234 I'm not exactly sure what the semantics there are supposed to be. @dave-tucker ?
Sounds good. You interested in making that change?
@ajwerner I believe you ran into this.
@dave-tucker did you recently fix this?
@vadorovsky looks like we still don't have get_mut?
@pooladkhay could you send a patch that increases this limit with a test? I'd be happy to guide you through writing the test.
Ah, sorry I missed your reply. The tests are in the [`integration-test` directory](https://github.com/aya-rs/aya/blob/main/test/integration-test). I think the [`smoke test`](https://github.com/aya-rs/aya/blob/main/test/integration-test/src/tests/smoke.rs) is closest to what you're looking for, but have a look around....
Actually, this may be the test you're looking for: https://github.com/aya-rs/aya/blob/445cb8b46318a13a94e10e11000232d4bd5b23af/test/integration-test/src/tests/load.rs#L17
Looks like we need to implement the equivalent of [bpftool's `do_show`](https://github.com/torvalds/linux/blob/5d0c230f1de8c7515b6567d9afba1f196fb4e2f4/tools/bpf/bpftool/link.c#L454-L514).
I think this happens because `freeze_time` takes an optional `tz_offset` argument that defaults to 0.