Lines Matching refs:perf_link
9390 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_detach() local
9393 if (ioctl(perf_link->perf_event_fd, PERF_EVENT_IOC_DISABLE, 0) < 0) in bpf_link_perf_detach()
9396 if (perf_link->perf_event_fd != link->fd) in bpf_link_perf_detach()
9397 close(perf_link->perf_event_fd); in bpf_link_perf_detach()
9401 if (perf_link->legacy_probe_name) { in bpf_link_perf_detach()
9402 if (perf_link->legacy_is_kprobe) { in bpf_link_perf_detach()
9403 err = remove_kprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
9404 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
9406 err = remove_uprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
9407 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
9416 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_dealloc() local
9418 free(perf_link->legacy_probe_name); in bpf_link_perf_dealloc()
9419 free(perf_link); in bpf_link_perf_dealloc()
9764 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_kprobe_opts() local
9766 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_kprobe_opts()
9767 perf_link->legacy_is_kprobe = true; in bpf_program__attach_kprobe_opts()
9768 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_kprobe_opts()
9960 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_uprobe_opts() local
9962 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_uprobe_opts()
9963 perf_link->legacy_is_kprobe = false; in bpf_program__attach_uprobe_opts()
9964 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_uprobe_opts()