Lines Matching refs:progfd

771 static int bpf_attach_tracing_event(int progfd, const char *event_path, int pid,  in bpf_attach_tracing_event()  argument
815 if (ioctl(*pfd, PERF_EVENT_IOC_SET_BPF, progfd) < 0) { in bpf_attach_tracing_event()
827 int bpf_attach_kprobe(int progfd, enum bpf_probe_attach_type attach_type, in bpf_attach_kprobe() argument
873 if (bpf_attach_tracing_event(progfd, buf, -1 /* PID */, &pfd) == 0) in bpf_attach_kprobe()
943 int bpf_attach_uprobe(int progfd, enum bpf_probe_attach_type attach_type, in bpf_attach_uprobe() argument
993 if (bpf_attach_tracing_event(progfd, buf, pid, &pfd) == 0) in bpf_attach_uprobe()
1083 int bpf_attach_tracepoint(int progfd, const char *tp_category, in bpf_attach_tracepoint() argument
1091 if (bpf_attach_tracing_event(progfd, buf, -1 /* PID */, &pfd) == 0) in bpf_attach_tracepoint()
1106 int bpf_attach_raw_tracepoint(int progfd, char *tp_name) in bpf_attach_raw_tracepoint() argument
1113 attr.raw_tracepoint.prog_fd = progfd; in bpf_attach_raw_tracepoint()
1228 int bpf_attach_xdp(const char *dev_name, int progfd, uint32_t flags) { in bpf_attach_xdp() argument
1289 nla_xdp->nla_len = NLA_HDRLEN + sizeof(progfd); in bpf_attach_xdp()
1290 memcpy((char *)nla_xdp + NLA_HDRLEN, &progfd, sizeof(progfd)); in bpf_attach_xdp()
1349 int bpf_attach_perf_event_raw(int progfd, void *perf_event_attr, pid_t pid, in bpf_attach_perf_event_raw() argument
1357 if (ioctl(fd, PERF_EVENT_IOC_SET_BPF, progfd) != 0) { in bpf_attach_perf_event_raw()
1371 int bpf_attach_perf_event(int progfd, uint32_t ev_type, uint32_t ev_config, in bpf_attach_perf_event() argument
1396 return bpf_attach_perf_event_raw(progfd, &attr, pid, cpu, group_fd, 0); in bpf_attach_perf_event()