Lines Matching refs:perf_link
10070 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_detach() local
10073 if (ioctl(perf_link->perf_event_fd, PERF_EVENT_IOC_DISABLE, 0) < 0) in bpf_link_perf_detach()
10076 if (perf_link->perf_event_fd != link->fd) in bpf_link_perf_detach()
10077 close(perf_link->perf_event_fd); in bpf_link_perf_detach()
10081 if (perf_link->legacy_probe_name) { in bpf_link_perf_detach()
10082 if (perf_link->legacy_is_kprobe) { in bpf_link_perf_detach()
10083 err = remove_kprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10084 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
10086 err = remove_uprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10087 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
10096 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_dealloc() local
10098 free(perf_link->legacy_probe_name); in bpf_link_perf_dealloc()
10099 free(perf_link); in bpf_link_perf_dealloc()
10581 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_kprobe_opts() local
10583 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_kprobe_opts()
10584 perf_link->legacy_is_kprobe = true; in bpf_program__attach_kprobe_opts()
10585 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_kprobe_opts()
11480 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_uprobe_opts() local
11482 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_uprobe_opts()
11483 perf_link->legacy_is_kprobe = false; in bpf_program__attach_uprobe_opts()
11484 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_uprobe_opts()