Lines Matching refs:prog
60 const struct bpf_prog *prog; member
223 const int i = insn - ctx->prog->insnsi; in build_insn()
504 if (i == ctx->prog->len - 1) in build_insn()
672 const struct bpf_prog *prog = ctx->prog; in build_body() local
675 for (i = 0; i < prog->len; i++) { in build_body()
676 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
700 void bpf_jit_compile(struct bpf_prog *prog) in bpf_jit_compile() argument
705 void bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() argument
715 if (!prog || !prog->len) in bpf_int_jit_compile()
719 ctx.prog = prog; in bpf_int_jit_compile()
721 ctx.offset = kcalloc(prog->len, sizeof(int), GFP_KERNEL); in bpf_int_jit_compile()
759 bpf_jit_dump(prog->len, image_size, 2, ctx.image); in bpf_int_jit_compile()
764 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
765 prog->jited = true; in bpf_int_jit_compile()
770 void bpf_jit_free(struct bpf_prog *prog) in bpf_jit_free() argument
772 unsigned long addr = (unsigned long)prog->bpf_func & PAGE_MASK; in bpf_jit_free()
775 if (!prog->jited) in bpf_jit_free()
782 bpf_prog_unlock_free(prog); in bpf_jit_free()