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