Home
last modified time | relevance | path

Searched refs:jit_data (Results 1 – 12 of 12) sorted by relevance

/linux/arch/riscv/net/
H A Dbpf_jit_core.c50 struct rv_jit_data *jit_data; in bpf_int_jit_compile() local
64 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
65 if (!jit_data) { in bpf_int_jit_compile()
66 jit_data = kzalloc_obj(*jit_data); in bpf_int_jit_compile()
67 if (!jit_data) { in bpf_int_jit_compile()
71 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
74 ctx = &jit_data->ctx; in bpf_int_jit_compile()
117 if (jit_data->header) in bpf_int_jit_compile()
124 jit_data->ro_header = in bpf_int_jit_compile()
126 &jit_data->ro_image, sizeof(u32), in bpf_int_jit_compile()
[all …]
/linux/arch/parisc/net/
H A Dbpf_jit_core.c50 struct hppa_jit_data *jit_data; in bpf_int_jit_compile() local
64 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
65 if (!jit_data) { in bpf_int_jit_compile()
66 jit_data = kzalloc_obj(*jit_data); in bpf_int_jit_compile()
67 if (!jit_data) { in bpf_int_jit_compile()
71 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
74 ctx = &jit_data->ctx; in bpf_int_jit_compile()
107 if (jit_data->header) in bpf_int_jit_compile()
114 jit_data->header = in bpf_int_jit_compile()
116 &jit_data->image, in bpf_int_jit_compile()
[all …]
/linux/arch/powerpc/net/
H A Dbpf_jit_comp.c139 struct powerpc_jit_data *jit_data; in bpf_int_jit_compile() local
166 jit_data = fp->aux->jit_data; in bpf_int_jit_compile()
167 if (!jit_data) { in bpf_int_jit_compile()
168 jit_data = kzalloc_obj(*jit_data); in bpf_int_jit_compile()
169 if (!jit_data) { in bpf_int_jit_compile()
173 fp->aux->jit_data = jit_data; in bpf_int_jit_compile()
177 addrs = jit_data->addrs; in bpf_int_jit_compile()
179 cgctx = jit_data->ctx; in bpf_int_jit_compile()
185 fimage = jit_data->fimage; in bpf_int_jit_compile()
186 fhdr = jit_data->fhdr; in bpf_int_jit_compile()
[all …]
/linux/arch/loongarch/net/
H A Dbpf_jit.c1918 struct jit_data *jit_data; in bpf_int_jit_compile() local
1944 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
1945 if (!jit_data) { in bpf_int_jit_compile()
1946 jit_data = kzalloc_obj(*jit_data); in bpf_int_jit_compile()
1947 if (!jit_data) { in bpf_int_jit_compile()
1951 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
1953 if (jit_data->ctx.offset) { in bpf_int_jit_compile()
1954 ctx = jit_data->ctx; in bpf_int_jit_compile()
1955 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
1957 header = jit_data->header; in bpf_int_jit_compile()
[all …]
H A Dbpf_jit.h27 struct jit_data { struct
/linux/arch/arc/net/
H A Dbpf_jit_core.c109 struct arc_jit_data *jit_data; member
226 maybe_free(ctx, (void **)&ctx->jit_data); in jit_ctx_cleanup()
1143 ctx->jit_data = kzalloc_obj(*ctx->jit_data); in jit_prepare_final_mem_alloc()
1144 if (!ctx->jit_data) in jit_prepare_final_mem_alloc()
1227 ctx->jit_data->bpf_header = ctx->bpf_header; in jit_finalize()
1228 ctx->jit_data->bpf2insn = ctx->bpf2insn; in jit_finalize()
1229 prog->aux->jit_data = (void *)ctx->jit_data; in jit_finalize()
1242 prog->aux->jit_data = NULL; in jit_finalize()
1264 if (!prog->aux->jit_data) { in check_jit_context()
1276 (struct arc_jit_data *)ctx->prog->aux->jit_data; in jit_resume_context()
[all …]
/linux/arch/sparc/net/
H A Dbpf_jit_comp_64.c1483 struct sparc64_jit_data *jit_data; in bpf_int_jit_compile() local
1506 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
1507 if (!jit_data) { in bpf_int_jit_compile()
1508 jit_data = kzalloc_obj(*jit_data); in bpf_int_jit_compile()
1509 if (!jit_data) { in bpf_int_jit_compile()
1513 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
1515 if (jit_data->ctx.offset) { in bpf_int_jit_compile()
1516 ctx = jit_data->ctx; in bpf_int_jit_compile()
1517 image_ptr = jit_data->image; in bpf_int_jit_compile()
1518 header = jit_data->header; in bpf_int_jit_compile()
[all …]
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c2015 struct arm64_jit_data *jit_data; in bpf_int_jit_compile() local
2041 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
2042 if (!jit_data) { in bpf_int_jit_compile()
2043 jit_data = kzalloc_obj(*jit_data); in bpf_int_jit_compile()
2044 if (!jit_data) { in bpf_int_jit_compile()
2048 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
2067 if (jit_data->ctx.offset) { in bpf_int_jit_compile()
2068 ctx = jit_data->ctx; in bpf_int_jit_compile()
2069 ro_image_ptr = jit_data->ro_image; in bpf_int_jit_compile()
2070 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
[all …]
/linux/arch/x86/net/
H A Dbpf_jit_comp.c3722 struct x64_jit_data *jit_data; in bpf_int_jit_compile() local
3750 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
3751 if (!jit_data) { in bpf_int_jit_compile()
3752 jit_data = kzalloc_obj(*jit_data); in bpf_int_jit_compile()
3753 if (!jit_data) { in bpf_int_jit_compile()
3757 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
3776 addrs = jit_data->addrs; in bpf_int_jit_compile()
3778 ctx = jit_data->ctx; in bpf_int_jit_compile()
3779 oldproglen = jit_data->proglen; in bpf_int_jit_compile()
3780 image = jit_data->image; in bpf_int_jit_compile()
[all …]
/linux/arch/s390/net/
H A Dbpf_jit_comp.c2303 struct s390_jit_data *jit_data; in bpf_int_jit_compile() local
2324 jit_data = fp->aux->jit_data; in bpf_int_jit_compile()
2325 if (!jit_data) { in bpf_int_jit_compile()
2326 jit_data = kzalloc_obj(*jit_data); in bpf_int_jit_compile()
2327 if (!jit_data) { in bpf_int_jit_compile()
2331 fp->aux->jit_data = jit_data; in bpf_int_jit_compile()
2333 if (jit_data->ctx.addrs) { in bpf_int_jit_compile()
2334 jit = jit_data->ctx; in bpf_int_jit_compile()
2335 header = jit_data->header; in bpf_int_jit_compile()
2337 pass = jit_data->pass + 1; in bpf_int_jit_compile()
[all …]
/linux/Documentation/bpf/
H A Ddrgn.rst151 .jit_data = (void *)0x0,
/linux/include/linux/
H A Dbpf.h1709 void *jit_data; /* JIT specific data. arch dependent */ member