• Home
  • Raw
  • Download

Lines Matching refs:prog

67 	const struct bpf_prog *prog;  member
154 const struct bpf_prog *prog = ctx->prog; in build_prologue() local
210 ctx->stack_size = prog->aux->stack_depth + 4; in build_prologue()
328 const int i = insn - ctx->prog->insnsi; in build_insn()
621 if (i == ctx->prog->len - 1) in build_insn()
806 const struct bpf_prog *prog = ctx->prog; in build_body() local
809 for (i = 0; i < prog->len; i++) { in build_body()
810 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
848 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() argument
850 struct bpf_prog *tmp, *orig_prog = prog; in bpf_int_jit_compile()
860 tmp = bpf_jit_blind_constants(prog); in bpf_int_jit_compile()
866 if (tmp != prog) { in bpf_int_jit_compile()
868 prog = tmp; in bpf_int_jit_compile()
872 ctx.prog = prog; in bpf_int_jit_compile()
874 ctx.offset = kcalloc(prog->len, sizeof(int), GFP_KERNEL); in bpf_int_jit_compile()
876 prog = orig_prog; in bpf_int_jit_compile()
884 prog = orig_prog; in bpf_int_jit_compile()
889 prog = orig_prog; in bpf_int_jit_compile()
901 prog = orig_prog; in bpf_int_jit_compile()
914 prog = orig_prog; in bpf_int_jit_compile()
923 prog = orig_prog; in bpf_int_jit_compile()
929 bpf_jit_dump(prog->len, image_size, 2, ctx.image); in bpf_int_jit_compile()
934 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
935 prog->jited = 1; in bpf_int_jit_compile()
936 prog->jited_len = image_size; in bpf_int_jit_compile()
942 bpf_jit_prog_release_other(prog, prog == orig_prog ? in bpf_int_jit_compile()
944 return prog; in bpf_int_jit_compile()