Lines Matching refs:prog
852 const struct bpf_prog *prog = ctx->program; in build_body() local
856 for (i = 0; i < prog->len; i++) { in build_body()
857 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
883 ctx->descriptors[prog->len] = ctx->jit_index; in build_body()
890 const struct bpf_prog *prog = ctx->program; in set_convert_flag() local
894 for (i = 0; i <= prog->len; i++) in set_convert_flag()
912 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() argument
914 struct bpf_prog *tmp, *orig_prog = prog; in bpf_int_jit_compile()
927 if (!prog->jit_requested) in bpf_int_jit_compile()
934 tmp = bpf_jit_blind_constants(prog); in bpf_int_jit_compile()
937 if (tmp != prog) { in bpf_int_jit_compile()
939 prog = tmp; in bpf_int_jit_compile()
943 ctx.program = prog; in bpf_int_jit_compile()
949 ctx.descriptors = kcalloc(prog->len + 1, sizeof(*ctx.descriptors), in bpf_int_jit_compile()
1012 bpf_prog_fill_jited_linfo(prog, &ctx.descriptors[1]); in bpf_int_jit_compile()
1021 bpf_jit_dump(prog->len, image_size, 2, ctx.target); in bpf_int_jit_compile()
1023 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()
1024 prog->jited = 1; in bpf_int_jit_compile()
1025 prog->jited_len = image_size; in bpf_int_jit_compile()
1029 bpf_jit_prog_release_other(prog, prog == orig_prog ? in bpf_int_jit_compile()
1032 return prog; in bpf_int_jit_compile()
1035 prog = orig_prog; in bpf_int_jit_compile()