Searched refs:perf_link (Results 1 - 3 of 3) sorted by relevance
/kernel/linux/linux-6.6/tools/bpf/bpftool/skeleton/ |
H A D | pid_iter.bpf.c | 57 struct bpf_perf_link___local *perf_link; in get_bpf_cookie() local 60 perf_link = container_of(link, struct bpf_perf_link___local, link); in get_bpf_cookie() 61 event = BPF_CORE_READ(perf_link, perf_file, private_data); in get_bpf_cookie()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | libbpf.c | 10076 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); in bpf_link_perf_detach() local 10079 if (ioctl(perf_link->perf_event_fd, PERF_EVENT_IOC_DISABLE, 0) < 0) in bpf_link_perf_detach() 10082 if (perf_link->perf_event_fd != link->fd) in bpf_link_perf_detach() 10083 close(perf_link->perf_event_fd); in bpf_link_perf_detach() 10087 if (perf_link->legacy_probe_name) { in bpf_link_perf_detach() 10088 if (perf_link->legacy_is_kprobe) { in bpf_link_perf_detach() 10089 err = remove_kprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach() 10090 perf_link->legacy_is_retprobe); in bpf_link_perf_detach() 10092 err = remove_uprobe_event_legacy(perf_link->legacy_probe_name, in bpf_link_perf_detach() 10093 perf_link in bpf_link_perf_detach() 10102 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); bpf_link_perf_dealloc() local 10587 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); bpf_program__attach_kprobe_opts() local 11486 struct bpf_link_perf *perf_link = container_of(link, struct bpf_link_perf, link); bpf_program__attach_uprobe_opts() local [all...] |
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | syscall.c | 3397 struct bpf_perf_link *perf_link = container_of(link, struct bpf_perf_link, link); in bpf_perf_link_release() local 3398 struct perf_event *event = perf_link->perf_file->private_data; in bpf_perf_link_release() 3401 fput(perf_link->perf_file); in bpf_perf_link_release() 3406 struct bpf_perf_link *perf_link = container_of(link, struct bpf_perf_link, link); in bpf_perf_link_dealloc() local 3408 kfree(perf_link); in bpf_perf_link_dealloc() 3535 struct bpf_perf_link *perf_link; in bpf_perf_link_fill_link_info() local 3538 perf_link = container_of(link, struct bpf_perf_link, link); in bpf_perf_link_fill_link_info() 3539 event = perf_get_event(perf_link->perf_file); in bpf_perf_link_fill_link_info()
|
Completed in 22 milliseconds