eunomia-bpf / bpftime

Userspace eBPF runtime for fast Uprobe & Syscall hook & Extensions with LLVM JIT
https://eunomia.dev/bpftime/
MIT License
693 stars 68 forks source link

[FEATURE] Use bpf_link_handler to record all attach links #234

Closed Officeyutong closed 4 months ago

Officeyutong commented 4 months ago

Currently we record attach link (which means, A certain program's attach to a certain perf event) in the handler of program. This way is inconvenient (e.g, if we want to remove a attach or perf event, we have to operate something on the handler of program.) Use bpf_link_handler to record such links, and recursively initialize program or perf event when scanning handlers and meet a bpf_link_handler