Home
last modified time | relevance | path

Searched refs:perf_link (Results 1 – 3 of 3) sorted by relevance

/linux/tools/bpf/bpftool/skeleton/
H A Dpid_iter.bpf.c58 struct bpf_perf_link___local *perf_link; in get_bpf_cookie() local
61 perf_link = container_of(link, struct bpf_perf_link___local, link); in get_bpf_cookie()
62 event = BPF_CORE_READ(perf_link, perf_file, private_data); in get_bpf_cookie()
/linux/tools/lib/bpf/
H A Dlibbpf.c10767 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_detach() local
10770 if (ioctl(perf_link->perf_event_fd, PERF_EVENT_IOC_DISABLE, 0) < 0) in bpf_link_perf_detach()
10773 if (perf_link->perf_event_fd != link->fd) in bpf_link_perf_detach()
10774 close(perf_link->perf_event_fd); in bpf_link_perf_detach()
10778 if (perf_link->legacy_probe_name) { in bpf_link_perf_detach()
10779 if (perf_link->legacy_is_kprobe) { in bpf_link_perf_detach()
10780 err = remove_kprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10781 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
10783 err = remove_uprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach()
10784 perf_link->legacy_is_retprobe); in bpf_link_perf_detach()
[all …]
/linux/kernel/bpf/
H A Dsyscall.c3688 struct bpf_perf_link *perf_link = container_of(link, struct bpf_perf_link, link); in bpf_perf_link_release() local
3689 struct perf_event *event = perf_link->perf_file->private_data; in bpf_perf_link_release()
3692 fput(perf_link->perf_file); in bpf_perf_link_release()
3697 struct bpf_perf_link *perf_link = container_of(link, struct bpf_perf_link, link); in bpf_perf_link_dealloc() local
3699 kfree(perf_link); in bpf_perf_link_dealloc()
3847 struct bpf_perf_link *perf_link; in bpf_perf_link_fill_link_info() local
3850 perf_link = container_of(link, struct bpf_perf_link, link); in bpf_perf_link_fill_link_info()
3851 event = perf_get_event(perf_link->perf_file); in bpf_perf_link_fill_link_info()