Lines Matching refs:perf_link
10876 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_detach() local
10879 if (ioctl(perf_link->perf_event_fd, PERF_EVENT_IOC_DISABLE, 0) < 0) in bpf_link_perf_detach()
10882 if (perf_link->perf_event_fd != link->fd) in bpf_link_perf_detach()
10883 close(perf_link->perf_event_fd); in bpf_link_perf_detach()
10887 if (perf_link->legacy_probe_name) { in bpf_link_perf_detach()
10888 if (perf_link->legacy_is_kprobe) { in bpf_link_perf_detach()
10889 err = remove_kprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10890 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
10892 err = remove_uprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10893 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
10902 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_dealloc() local
10904 free(perf_link->legacy_probe_name); in bpf_link_perf_dealloc()
10905 free(perf_link); in bpf_link_perf_dealloc()
11382 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_kprobe_opts() local
11384 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_kprobe_opts()
11385 perf_link->legacy_is_kprobe = true; in bpf_program__attach_kprobe_opts()
11386 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_kprobe_opts()
12357 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_uprobe_opts() local
12359 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_uprobe_opts()
12360 perf_link->legacy_is_kprobe = false; in bpf_program__attach_uprobe_opts()
12361 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_uprobe_opts()