bpftime icon indicating copy to clipboard operation
bpftime copied to clipboard

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

Open agentzh opened this issue 1 year ago • 1 comments

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).

agentzh avatar Jan 27 '24 20:01 agentzh

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

Zheaoli avatar Feb 18 '24 07:02 Zheaoli