Lines Matching refs:prog_fd
45 int prog_fd; member
277 static inline int skel_raw_tracepoint_open(const char *name, int prog_fd) in skel_raw_tracepoint_open() argument
279 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint.prog_fd); in skel_raw_tracepoint_open()
284 attr.raw_tracepoint.prog_fd = prog_fd; in skel_raw_tracepoint_open()
289 static inline int skel_link_create(int prog_fd, int target_fd, in skel_link_create() argument
296 attr.link_create.prog_fd = prog_fd; in skel_link_create()
313 int map_fd = -1, prog_fd = -1, key = 0, err; in bpf_load_and_run() local
341 err = prog_fd = skel_sys_bpf(BPF_PROG_LOAD, &attr, prog_load_attr_sz); in bpf_load_and_run()
342 if (prog_fd < 0) { in bpf_load_and_run()
349 attr.test.prog_fd = prog_fd; in bpf_load_and_run()
369 if (prog_fd >= 0) in bpf_load_and_run()
370 close(prog_fd); in bpf_load_and_run()