Home
last modified time | relevance | path

Searched refs:bpf_func (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.12.1/kernel/bpf/
Dtrampoline.c549 link->link.prog->bpf_func); in __bpf_trampoline_link_prog()
592 tr->extension_prog->bpf_func, NULL); in __bpf_trampoline_unlink_prog()
640 bpf_func_t bpf_func, in cgroup_shim_alloc() argument
657 p->bpf_func = bpf_func; in cgroup_shim_alloc()
675 bpf_func_t bpf_func) in cgroup_shim_find() argument
684 if (p->bpf_func == bpf_func) in cgroup_shim_find()
698 bpf_func_t bpf_func; in bpf_trampoline_link_cgroup_shim() local
711 bpf_lsm_find_cgroup_shim(prog, &bpf_func); in bpf_trampoline_link_cgroup_shim()
718 shim_link = cgroup_shim_find(tr, bpf_func); in bpf_trampoline_link_cgroup_shim()
730 shim_link = cgroup_shim_alloc(prog, bpf_func, cgroup_atype); in bpf_trampoline_link_cgroup_shim()
[all …]
Dbpf_lsm.c90 bpf_func_t *bpf_func) in BTF_SET_END()
97 *bpf_func = __cgroup_bpf_run_lsm_current; in BTF_SET_END()
105 *bpf_func = __cgroup_bpf_run_lsm_socket; in BTF_SET_END()
107 *bpf_func = __cgroup_bpf_run_lsm_sock; in BTF_SET_END()
110 *bpf_func = __cgroup_bpf_run_lsm_current; in BTF_SET_END()
Dcore.c234 jited_linfo[0] = prog->bpf_func; in bpf_prog_fill_jited_linfo()
242 jited_linfo[i] = prog->bpf_func + in bpf_prog_fill_jited_linfo()
578 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_addr()
711 fp->aux->ksym_prefix.start = (unsigned long) fp->bpf_func - 16; in bpf_prog_kallsyms_add()
712 fp->aux->ksym_prefix.end = (unsigned long) fp->bpf_func; in bpf_prog_kallsyms_add()
1215 unsigned long real_start = (unsigned long)fp->bpf_func; in bpf_jit_binary_pack_hdr()
1225 unsigned long real_start = (unsigned long)fp->bpf_func; in bpf_jit_binary_hdr()
1267 addr = (u8 *)prog->aux->func[off]->bpf_func; in bpf_jit_get_func_addr()
2379 fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1]; in bpf_prog_select_func()
2381 fp->bpf_func = __bpf_prog_ret0_warn; in bpf_prog_select_func()
[all …]
Ddispatcher.c101 *ipsp++ = (s64)(uintptr_t)d->progs[i].prog->bpf_func; in bpf_dispatcher_prepare()
Doffload.c425 prog->bpf_func = bpf_prog_warn_on_exec; in bpf_prog_offload_compile()
/linux-6.12.1/include/linux/
Dbpf_lsm.h47 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, bpf_func_t *bpf_func);
80 bpf_func_t *bpf_func) in bpf_lsm_find_cgroup_shim() argument
Dtracepoint-defs.h52 void *bpf_func; member
Dbpf.h1263 bpf_func_t bpf_func) in bpf_dispatcher_nop_func() argument
1265 return bpf_func(ctx, insnsi); in bpf_dispatcher_nop_func()
1325 static_call(bpf_dispatcher_##name##_call)(ctx, insnsi, bpf_func)
1333 #define __BPF_DISPATCHER_CALL(name) bpf_func(ctx, insnsi)
1356 bpf_func_t bpf_func) \
1368 bpf_func_t bpf_func); \
1584 unsigned int (*bpf_func)(const void *ctx, member
Dfilter.h677 unsigned int (*bpf_func)(const void *,
692 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
701 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
/linux-6.12.1/arch/parisc/net/
Dbpf_jit_core.c163 prog->bpf_func = (void *)ctx->insns; in bpf_int_jit_compile()
172 prog->bpf_func = NULL; in bpf_int_jit_compile()
Dbpf_jit_comp64.c399 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
401 BUILD_BUG_ON(sizeof(bpfp.bpf_func) != 8); in emit_bpf_tail_call()
Dbpf_jit_comp32.c997 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
999 BUILD_BUG_ON(sizeof(bpfp.bpf_func) != 4); in emit_bpf_tail_call()
/linux-6.12.1/include/trace/
Dbpf_probe.h74 .bpf_func = __bpf_trace_##template, \
/linux-6.12.1/arch/x86/net/
Dbpf_jit_comp.c762 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call_indirect()
857 (u8 *)target->bpf_func + in bpf_tail_call_direct_fixup()
2691 if (emit_rsb_call(&prog, p->bpf_func, image + (prog - (u8 *)rw_image))) in invoke_bpf_prog()
3409 prog->bpf_func = NULL; in bpf_int_jit_compile()
3482 prog->bpf_func = (void *)image + cfi_get_offset(); in bpf_int_jit_compile()
3544 prog->bpf_func = (void *)prog->bpf_func - cfi_get_offset(); in bpf_jit_free()
3586 old_addr = old ? (u8 *)old->bpf_func + poke->adj_off : NULL; in bpf_arch_poke_desc_update()
3587 new_addr = new ? (u8 *)new->bpf_func + poke->adj_off : NULL; in bpf_arch_poke_desc_update()
Dbpf_jit_comp32.c1369 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call()
2604 prog->bpf_func = (void *)image; in bpf_int_jit_compile()
/linux-6.12.1/arch/riscv/net/
Dbpf_jit_core.c176 prog->bpf_func = (void *)ctx->ro_insns + cfi_get_offset(); in bpf_int_jit_compile()
/linux-6.12.1/arch/powerpc/net/
Dbpf_jit_comp.c223 fp->bpf_func = (void *)fimage; in bpf_int_jit_compile()
/linux-6.12.1/arch/sparc/net/
Dbpf_jit_comp_32.c750 fp->bpf_func = (void *)image; in bpf_jit_compile()
761 execmem_free(fp->bpf_func); in bpf_jit_free()
Dbpf_jit_comp_64.c887 off = offsetof(struct bpf_prog, bpf_func); in emit_tail_call()
1616 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
/linux-6.12.1/arch/loongarch/net/
Dbpf_jit.c260 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
1317 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
1343 prog->bpf_func = NULL; in bpf_int_jit_compile()
/linux-6.12.1/arch/arc/net/
Dbpf_jit_core.c1247 prog->bpf_func = (void *)ctx->jit.buf; in jit_finalize()
1283 ctx->jit.buf = (u8 *)ctx->prog->bpf_func; in jit_resume_context()
/linux-6.12.1/arch/arm64/net/
Dbpf_jit_comp.c617 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
1907 prog->bpf_func = NULL; in bpf_int_jit_compile()
1931 prog->bpf_func = (void *)ctx.ro_image; in bpf_int_jit_compile()
2032 emit_call((const u64)p->bpf_func, ctx); in invoke_bpf_prog()
/linux-6.12.1/arch/arm/net/
Dbpf_jit_32.c1454 BUILD_BUG_ON(offsetof(struct bpf_prog, bpf_func) > in emit_bpf_tail_call()
1456 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
2270 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()
/linux-6.12.1/arch/s390/net/
Dbpf_jit_comp.c1874 offsetof(struct bpf_prog, bpf_func)); in bpf_jit_insn()
2347 fp->bpf_func = (void *) jit.prg_buf; in bpf_int_jit_compile()
2511 load_imm64(jit, REG_1, (u64)p->bpf_func); in invoke_bpf_prog()
/linux-6.12.1/arch/mips/net/
Dbpf_jit_comp.c1023 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()

12