Lines Matching refs:jit
103 struct jit_buffer jit; member
152 dump_bytes(ctx->jit.buf, ctx->jit.len, header); in jit_dump()
155 bpf_jit_dump(ctx->prog->len, ctx->jit.len, pass, ctx->jit.buf); in jit_dump()
235 ctx->jit.buf = NULL; in jit_ctx_cleanup()
236 ctx->jit.index = 0; in jit_ctx_cleanup()
237 ctx->jit.len = 0; in jit_ctx_cleanup()
271 if (!ctx->jit.buf) { in jit_buffer_check()
275 } else if (ctx->jit.index > ctx->jit.len) { in jit_buffer_check()
288 ctx->jit.len += n; in jit_buffer_update()
290 ctx->jit.index += n; in jit_buffer_update()
296 return ctx->emit ? (ctx->jit.buf + ctx->jit.index) : NULL; in effective_jit_buf()
1071 ctx->bpf2insn[i] = ctx->jit.len; in handle_body()
1115 ctx->bpf2insn = kcalloc(ctx->prog->len, sizeof(ctx->jit.len), in jit_prepare_early_mem_alloc()
1135 ctx->bpf_header = bpf_jit_binary_alloc(ctx->jit.len, &ctx->jit.buf, in jit_prepare_final_mem_alloc()
1174 ctx->epilogue_offset = ctx->jit.len; in jit_prepare()
1205 if (ctx->jit.index != ctx->jit.len) { in jit_compile()
1208 ctx->jit.len, ctx->jit.index); in jit_compile()
1241 BUF(ctx->jit.buf, ctx->jit.len)); in jit_finalize()
1247 prog->bpf_func = (void *)ctx->jit.buf; in jit_finalize()
1248 prog->jited_len = ctx->jit.len; in jit_finalize()
1283 ctx->jit.buf = (u8 *)ctx->prog->bpf_func; in jit_resume_context()
1284 ctx->jit.len = ctx->prog->jited_len; in jit_resume_context()
1320 ctx->jit.index = ctx->bpf2insn[i]; in jit_patch_relocations()