Lines Matching refs:opts
309 static inline int bpf_load_and_run(struct bpf_load_and_run_opts *opts) in bpf_load_and_run() argument
316 err = map_fd = skel_map_create(BPF_MAP_TYPE_ARRAY, "__loader.map", 4, opts->data_sz, 1); in bpf_load_and_run()
318 opts->errstr = "failed to create loader map"; in bpf_load_and_run()
323 err = skel_map_update_elem(map_fd, &key, opts->data, 0); in bpf_load_and_run()
325 opts->errstr = "failed to update loader map"; in bpf_load_and_run()
332 attr.insns = (long) opts->insns; in bpf_load_and_run()
333 attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn); in bpf_load_and_run()
337 attr.log_level = opts->ctx->log_level; in bpf_load_and_run()
338 attr.log_size = opts->ctx->log_size; in bpf_load_and_run()
339 attr.log_buf = opts->ctx->log_buf; in bpf_load_and_run()
343 opts->errstr = "failed to load loader prog"; in bpf_load_and_run()
350 attr.test.ctx_in = (long) opts->ctx; in bpf_load_and_run()
351 attr.test.ctx_size_in = opts->ctx->sz; in bpf_load_and_run()
354 opts->errstr = "failed to execute loader prog"; in bpf_load_and_run()