bpftime
bpftime copied to clipboard
[FEATURE] Need a way to clean up a specific eBPF program in the global shm
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).
Maybe we need to identify all the ebpf program we used in the global shm and manage it