Lines Matching refs:perf_link
10844 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_detach() local
10847 if (ioctl(perf_link->perf_event_fd, PERF_EVENT_IOC_DISABLE, 0) < 0) in bpf_link_perf_detach()
10850 if (perf_link->perf_event_fd != link->fd) in bpf_link_perf_detach()
10851 close(perf_link->perf_event_fd); in bpf_link_perf_detach()
10855 if (perf_link->legacy_probe_name) { in bpf_link_perf_detach()
10856 if (perf_link->legacy_is_kprobe) { in bpf_link_perf_detach()
10857 err = remove_kprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10858 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
10860 err = remove_uprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10861 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
10870 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_dealloc() local
10872 free(perf_link->legacy_probe_name); in bpf_link_perf_dealloc()
10873 free(perf_link); in bpf_link_perf_dealloc()
11347 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_kprobe_opts() local
11349 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_kprobe_opts()
11350 perf_link->legacy_is_kprobe = true; in bpf_program__attach_kprobe_opts()
11351 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_kprobe_opts()
12335 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_program__attach_uprobe_opts() local
12337 perf_link->legacy_probe_name = legacy_probe; in bpf_program__attach_uprobe_opts()
12338 perf_link->legacy_is_kprobe = false; in bpf_program__attach_uprobe_opts()
12339 perf_link->legacy_is_retprobe = retprobe; in bpf_program__attach_uprobe_opts()