Lines Matching refs:pfd

772                                     int *pfd)  in bpf_attach_tracing_event()  argument
780 if (*pfd < 0) { in bpf_attach_tracing_event()
808 *pfd = syscall(__NR_perf_event_open, &attr, pid, cpu, -1 /* group_fd */, PERF_FLAG_FD_CLOEXEC); in bpf_attach_tracing_event()
809 if (*pfd < 0) { in bpf_attach_tracing_event()
815 if (ioctl(*pfd, PERF_EVENT_IOC_SET_BPF, progfd) < 0) { in bpf_attach_tracing_event()
819 if (ioctl(*pfd, PERF_EVENT_IOC_ENABLE, 0) < 0) { in bpf_attach_tracing_event()
830 int kfd, pfd = -1; in bpf_attach_kprobe() local
836 pfd = bpf_try_perf_event_open_with_probe(fn_name, fn_offset, -1, event_type, in bpf_attach_kprobe()
840 if (pfd < 0) { in bpf_attach_kprobe()
873 if (bpf_attach_tracing_event(progfd, buf, -1 /* PID */, &pfd) == 0) in bpf_attach_kprobe()
874 return pfd; in bpf_attach_kprobe()
877 bpf_close_perf_event_fd(pfd); in bpf_attach_kprobe()
950 int res, kfd = -1, pfd = -1, ns_fd = -1; in bpf_attach_uprobe() local
952 pfd = bpf_try_perf_event_open_with_probe(binary_path, offset, pid, event_type, in bpf_attach_uprobe()
956 if (pfd < 0) { in bpf_attach_uprobe()
993 if (bpf_attach_tracing_event(progfd, buf, pid, &pfd) == 0) in bpf_attach_uprobe()
994 return pfd; in bpf_attach_uprobe()
1000 bpf_close_perf_event_fd(pfd); in bpf_attach_uprobe()
1087 int pfd = -1; in bpf_attach_tracepoint() local
1091 if (bpf_attach_tracing_event(progfd, buf, -1 /* PID */, &pfd) == 0) in bpf_attach_tracepoint()
1092 return pfd; in bpf_attach_tracepoint()
1094 bpf_close_perf_event_fd(pfd); in bpf_attach_tracepoint()
1124 int pfd; in bpf_open_perf_buffer() local
1137 pfd = syscall(__NR_perf_event_open, &attr, pid, cpu, -1, PERF_FLAG_FD_CLOEXEC); in bpf_open_perf_buffer()
1138 if (pfd < 0) { in bpf_open_perf_buffer()
1143 perf_reader_set_fd(reader, pfd); in bpf_open_perf_buffer()
1148 if (ioctl(pfd, PERF_EVENT_IOC_ENABLE, 0) < 0) { in bpf_open_perf_buffer()