Lines Matching refs:usdt_link
815 struct bpf_link_usdt *usdt_link = container_of(link, struct bpf_link_usdt, link); in bpf_link_usdt_detach() local
816 struct usdt_manager *man = usdt_link->usdt_man; in bpf_link_usdt_detach()
819 for (i = 0; i < usdt_link->uprobe_cnt; i++) { in bpf_link_usdt_detach()
821 bpf_link__destroy(usdt_link->uprobes[i].link); in bpf_link_usdt_detach()
831 &usdt_link->uprobes[i].abs_ip); in bpf_link_usdt_detach()
840 man->free_spec_ids = usdt_link->spec_ids; in bpf_link_usdt_detach()
841 man->free_spec_cnt = usdt_link->spec_cnt; in bpf_link_usdt_detach()
842 usdt_link->spec_ids = NULL; in bpf_link_usdt_detach()
845 size_t new_cnt = man->free_spec_cnt + usdt_link->spec_cnt; in bpf_link_usdt_detach()
857 memcpy(new_free_ids + man->free_spec_cnt, usdt_link->spec_ids, in bpf_link_usdt_detach()
858 usdt_link->spec_cnt * sizeof(*usdt_link->spec_ids)); in bpf_link_usdt_detach()
869 struct bpf_link_usdt *usdt_link = container_of(link, struct bpf_link_usdt, link); in bpf_link_usdt_dealloc() local
871 free(usdt_link->spec_ids); in bpf_link_usdt_dealloc()
872 free(usdt_link->uprobes); in bpf_link_usdt_dealloc()
873 free(usdt_link); in bpf_link_usdt_dealloc()