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.15k stars 281 forks source link

Hashmap is not cleaned on every execution #904

Open juan-mart-delb opened 7 months ago

juan-mart-delb commented 7 months ago

I have created a simple project based on the LSM example that uses a HashMap to exchange information between the eBPF program and the user space program. However, I notice that when I execute the user space program (which loads the eBPF program), the map still has information from the previous execution.

Is this the expected behavior? If so, why?

viveksb007 commented 5 months ago

are you using pinned maps?

if possible point to your codebase