Lines Matching refs:prog
60 const struct bpf_prog *prog; member
256 const int i = insn - ctx->prog->insnsi; in build_insn()
537 if (i == ctx->prog->len - 1) in build_insn()
723 const struct bpf_prog *prog = ctx->prog; in build_body() local
726 for (i = 0; i < prog->len; i++) { in build_body()
727 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
751 void bpf_jit_compile(struct bpf_prog *prog) in bpf_jit_compile() argument
756 void bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() argument
766 if (!prog || !prog->len) in bpf_int_jit_compile()
770 ctx.prog = prog; in bpf_int_jit_compile()
772 ctx.offset = kcalloc(prog->len, sizeof(int), GFP_KERNEL); in bpf_int_jit_compile()
810 bpf_jit_dump(prog->len, image_size, 2, ctx.image); in bpf_int_jit_compile()
815 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
816 prog->jited = 1; in bpf_int_jit_compile()
821 void bpf_jit_free(struct bpf_prog *prog) in bpf_jit_free() argument
823 unsigned long addr = (unsigned long)prog->bpf_func & PAGE_MASK; in bpf_jit_free()
826 if (!prog->jited) in bpf_jit_free()
833 bpf_prog_unlock_free(prog); in bpf_jit_free()