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(sizeof(*jit_data), GFP_KERNEL); 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(sizeof(*jit_data), GFP_KERNEL); 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(sizeof(*jit_data), GFP_KERNEL); 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/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(sizeof(*ctx->jit_data), GFP_KERNEL); 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/loongarch/net/
H A Dbpf_jit.c1793 struct jit_data *jit_data; in bpf_int_jit_compile() local
1818 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
1819 if (!jit_data) { in bpf_int_jit_compile()
1820 jit_data = kzalloc(sizeof(*jit_data), GFP_KERNEL); in bpf_int_jit_compile()
1821 if (!jit_data) { in bpf_int_jit_compile()
1825 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
1827 if (jit_data->ctx.offset) { in bpf_int_jit_compile()
1828 ctx = jit_data->ctx; in bpf_int_jit_compile()
1829 image_ptr = jit_data->image; in bpf_int_jit_compile()
1830 header = jit_data->header; in bpf_int_jit_compile()
[all …]
H A Dbpf_jit.h25 struct jit_data { struct
/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(sizeof(*jit_data), GFP_KERNEL); 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.c2018 struct arm64_jit_data *jit_data; in bpf_int_jit_compile() local
2044 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
2045 if (!jit_data) { in bpf_int_jit_compile()
2046 jit_data = kzalloc(sizeof(*jit_data), GFP_KERNEL); in bpf_int_jit_compile()
2047 if (!jit_data) { in bpf_int_jit_compile()
2051 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
2070 if (jit_data->ctx.offset) { in bpf_int_jit_compile()
2071 ctx = jit_data->ctx; in bpf_int_jit_compile()
2072 ro_image_ptr = jit_data->ro_image; in bpf_int_jit_compile()
2073 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
[all …]
/linux/arch/x86/net/
H A Dbpf_jit_comp.c3660 struct x64_jit_data *jit_data; in bpf_int_jit_compile() local
3688 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
3689 if (!jit_data) { in bpf_int_jit_compile()
3690 jit_data = kzalloc(sizeof(*jit_data), GFP_KERNEL); in bpf_int_jit_compile()
3691 if (!jit_data) { in bpf_int_jit_compile()
3695 prog->aux->jit_data = jit_data; in bpf_int_jit_compile()
3714 addrs = jit_data->addrs; in bpf_int_jit_compile()
3716 ctx = jit_data->ctx; in bpf_int_jit_compile()
3717 oldproglen = jit_data->proglen; in bpf_int_jit_compile()
3718 image = jit_data->image; in bpf_int_jit_compile()
[all …]
/linux/arch/s390/net/
H A Dbpf_jit_comp.c2304 struct s390_jit_data *jit_data; in bpf_int_jit_compile() local
2325 jit_data = fp->aux->jit_data; in bpf_int_jit_compile()
2326 if (!jit_data) { in bpf_int_jit_compile()
2327 jit_data = kzalloc(sizeof(*jit_data), GFP_KERNEL); in bpf_int_jit_compile()
2328 if (!jit_data) { in bpf_int_jit_compile()
2332 fp->aux->jit_data = jit_data; in bpf_int_jit_compile()
2334 if (jit_data->ctx.addrs) { in bpf_int_jit_compile()
2335 jit = jit_data->ctx; in bpf_int_jit_compile()
2336 header = jit_data->header; in bpf_int_jit_compile()
2338 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.h1653 void *jit_data; /* JIT specific data. arch dependent */ member