eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
791 stars 74 forks source link

[FEATURE] Need a way to clean up a specific eBPF program in the global shm #168

Open agentzh opened 8 months ago

agentzh commented 8 months ago

The global shm is leaking because there is no way to release a particular eBPF program individually. We can only free up everything like this:

$ bpftimetool remove
[2024-01-26 23:03:24.274] [info] [bpftime_shm_internal.cpp:46] Global shm removed

Maybe we can specify an argument of ebpf program name or ebpf program ID (we'll also need a way to lookup such IDs, though).

Zheaoli commented 7 months ago

Maybe we need to identify all the ebpf program we used in the global shm and manage it