Lines Matching refs:perf_link

9659 	struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link);  in bpf_link_perf_detach()  local
9662 if (ioctl(perf_link->perf_event_fd, PERF_EVENT_IOC_DISABLE, 0) < 0) in bpf_link_perf_detach()
9665 if (perf_link->perf_event_fd != link->fd) in bpf_link_perf_detach()
9666 close(perf_link->perf_event_fd); in bpf_link_perf_detach()
9670 if (perf_link->legacy_probe_name) { in bpf_link_perf_detach()
9671 if (perf_link->legacy_is_kprobe) { in bpf_link_perf_detach()
9672 err = remove_kprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
9673 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
9675 err = remove_uprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
9676 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
9685 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_dealloc() local
9687 free(perf_link->legacy_probe_name); in bpf_link_perf_dealloc()
9688 free(perf_link); in bpf_link_perf_dealloc()
10123 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_kprobe_opts() local
10125 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_kprobe_opts()
10126 perf_link->legacy_is_kprobe = true; in bpf_program__attach_kprobe_opts()
10127 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_kprobe_opts()
10817 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_uprobe_opts() local
10819 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_uprobe_opts()
10820 perf_link->legacy_is_kprobe = false; in bpf_program__attach_uprobe_opts()
10821 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_uprobe_opts()