Lines Matching refs:perf_link

10720 	struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link);  in bpf_link_perf_detach()  local
10723 if (ioctl(perf_link->perf_event_fd, PERF_EVENT_IOC_DISABLE, 0) < 0) in bpf_link_perf_detach()
10726 if (perf_link->perf_event_fd != link->fd) in bpf_link_perf_detach()
10727 close(perf_link->perf_event_fd); in bpf_link_perf_detach()
10731 if (perf_link->legacy_probe_name) { in bpf_link_perf_detach()
10732 if (perf_link->legacy_is_kprobe) { in bpf_link_perf_detach()
10733 err = remove_kprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10734 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
10736 err = remove_uprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10737 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
10746 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_dealloc() local
10748 free(perf_link->legacy_probe_name); in bpf_link_perf_dealloc()
10749 free(perf_link); in bpf_link_perf_dealloc()
11231 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_kprobe_opts() local
11233 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_kprobe_opts()
11234 perf_link->legacy_is_kprobe = true; in bpf_program__attach_kprobe_opts()
11235 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_kprobe_opts()
12175 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_uprobe_opts() local
12177 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_uprobe_opts()
12178 perf_link->legacy_is_kprobe = false; in bpf_program__attach_uprobe_opts()
12179 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_uprobe_opts()