Lines Matching refs:prog

18 	const struct bpf_prog *prog = ctx->prog;  in build_body()  local
22 for (i = 0; i < prog->len; i++) { in build_body()
23 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
44 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() argument
48 struct bpf_prog *tmp, *orig_prog = prog; in bpf_int_jit_compile()
53 if (!prog->jit_requested) in bpf_int_jit_compile()
56 tmp = bpf_jit_blind_constants(prog); in bpf_int_jit_compile()
59 if (tmp != prog) { in bpf_int_jit_compile()
61 prog = tmp; in bpf_int_jit_compile()
64 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
68 prog = orig_prog; in bpf_int_jit_compile()
71 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
82 ctx->prog = prog; in bpf_int_jit_compile()
83 ctx->offset = kcalloc(prog->len, sizeof(int), GFP_KERNEL); in bpf_int_jit_compile()
85 prog = orig_prog; in bpf_int_jit_compile()
88 for (i = 0; i < prog->len; i++) { in bpf_int_jit_compile()
97 prog = orig_prog; in bpf_int_jit_compile()
110 extable_size = prog->aux->num_exentries * in bpf_int_jit_compile()
120 prog = orig_prog; in bpf_int_jit_compile()
137 prog = orig_prog; in bpf_int_jit_compile()
142 prog->aux->extable = (void *)ctx->insns + prog_size; in bpf_int_jit_compile()
151 prog = orig_prog; in bpf_int_jit_compile()
158 bpf_jit_dump(prog->len, prog_size, pass, ctx->insns); in bpf_int_jit_compile()
163 prog->bpf_func = (void *)ctx->insns; in bpf_int_jit_compile()
164 prog->jited = 1; in bpf_int_jit_compile()
165 prog->jited_len = prog_size; in bpf_int_jit_compile()
169 if (!prog->is_func || extra_pass) { in bpf_int_jit_compile()
172 prog->bpf_func = NULL; in bpf_int_jit_compile()
173 prog->jited = 0; in bpf_int_jit_compile()
174 prog->jited_len = 0; in bpf_int_jit_compile()
178 for (i = 0; i < prog->len; i++) in bpf_int_jit_compile()
180 bpf_prog_fill_jited_linfo(prog, ctx->offset); in bpf_int_jit_compile()
184 prog->aux->jit_data = NULL; in bpf_int_jit_compile()
191 bpf_jit_prog_release_other(prog, prog == orig_prog ? in bpf_int_jit_compile()
193 return prog; in bpf_int_jit_compile()