Lines Matching refs:usdt_link
823 struct bpf_link_usdt *usdt_link = container_of(link, struct bpf_link_usdt, link); in bpf_link_usdt_detach() local
824 struct usdt_manager *man = usdt_link->usdt_man; in bpf_link_usdt_detach()
827 bpf_link__destroy(usdt_link->multi_link); in bpf_link_usdt_detach()
830 for (i = 0; i < usdt_link->uprobe_cnt; i++) { in bpf_link_usdt_detach()
832 bpf_link__destroy(usdt_link->uprobes[i].link); in bpf_link_usdt_detach()
842 &usdt_link->uprobes[i].abs_ip); in bpf_link_usdt_detach()
851 man->free_spec_ids = usdt_link->spec_ids; in bpf_link_usdt_detach()
852 man->free_spec_cnt = usdt_link->spec_cnt; in bpf_link_usdt_detach()
853 usdt_link->spec_ids = NULL; in bpf_link_usdt_detach()
856 size_t new_cnt = man->free_spec_cnt + usdt_link->spec_cnt; in bpf_link_usdt_detach()
871 memcpy(new_free_ids + man->free_spec_cnt, usdt_link->spec_ids, in bpf_link_usdt_detach()
872 usdt_link->spec_cnt * sizeof(*usdt_link->spec_ids)); in bpf_link_usdt_detach()
883 struct bpf_link_usdt *usdt_link = container_of(link, struct bpf_link_usdt, link); in bpf_link_usdt_dealloc() local
885 free(usdt_link->spec_ids); in bpf_link_usdt_dealloc()
886 free(usdt_link->uprobes); in bpf_link_usdt_dealloc()
887 free(usdt_link); in bpf_link_usdt_dealloc()