/openbmc/linux/kernel/bpf/ |
H A D | trampoline.c | 536 link->link.prog->bpf_func); in __bpf_trampoline_link_prog() 579 tr->extension_prog->bpf_func, NULL); in __bpf_trampoline_unlink_prog() 627 bpf_func_t bpf_func, in cgroup_shim_alloc() argument 644 p->bpf_func = bpf_func; in cgroup_shim_alloc() 662 bpf_func_t bpf_func) in cgroup_shim_find() argument 671 if (p->bpf_func == bpf_func) in cgroup_shim_find() 685 bpf_func_t bpf_func; in bpf_trampoline_link_cgroup_shim() local 698 bpf_lsm_find_cgroup_shim(prog, &bpf_func); in bpf_trampoline_link_cgroup_shim() 705 shim_link = cgroup_shim_find(tr, bpf_func); in bpf_trampoline_link_cgroup_shim() 717 shim_link = cgroup_shim_alloc(prog, bpf_func, cgroup_atype); in bpf_trampoline_link_cgroup_shim() [all …]
|
H A D | bpf_lsm.c | 73 bpf_func_t *bpf_func) in BTF_SET_END() 80 *bpf_func = __cgroup_bpf_run_lsm_current; in BTF_SET_END() 88 *bpf_func = __cgroup_bpf_run_lsm_socket; in BTF_SET_END() 90 *bpf_func = __cgroup_bpf_run_lsm_sock; in BTF_SET_END() 93 *bpf_func = __cgroup_bpf_run_lsm_current; in BTF_SET_END()
|
H A D | dispatcher.c | 101 *ipsp++ = (s64)(uintptr_t)d->progs[i].prog->bpf_func; in bpf_dispatcher_prepare()
|
H A D | core.c | 225 jited_linfo[0] = prog->bpf_func; in bpf_prog_fill_jited_linfo() 233 jited_linfo[i] = prog->bpf_func + in bpf_prog_fill_jited_linfo() 573 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_addr() 1177 unsigned long real_start = (unsigned long)fp->bpf_func; in bpf_jit_binary_pack_hdr() 1187 unsigned long real_start = (unsigned long)fp->bpf_func; in bpf_jit_binary_hdr() 1229 addr = (u8 *)prog->aux->func[off]->bpf_func; in bpf_jit_get_func_addr() 2340 fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1]; in bpf_prog_select_func() 2342 fp->bpf_func = __bpf_prog_ret0_warn; in bpf_prog_select_func() 2364 if (fp->bpf_func) in bpf_prog_select_runtime() 2420 .bpf_func = __bpf_prog_ret1,
|
H A D | offload.c | 418 prog->bpf_func = bpf_prog_warn_on_exec; in bpf_prog_offload_compile()
|
/openbmc/linux/include/linux/ |
H A D | bpf_lsm.h | 46 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, bpf_func_t *bpf_func); 77 bpf_func_t *bpf_func) in bpf_lsm_find_cgroup_shim() argument
|
H A D | tracepoint-defs.h | 52 void *bpf_func; member
|
H A D | bpf.h | 1211 bpf_func_t bpf_func) in bpf_dispatcher_nop_func() argument 1213 return bpf_func(ctx, insnsi); in bpf_dispatcher_nop_func() 1270 static_call(bpf_dispatcher_##name##_call)(ctx, insnsi, bpf_func) 1278 #define __BPF_DISPATCHER_CALL(name) bpf_func(ctx, insnsi) 1301 bpf_func_t bpf_func) \ 1313 bpf_func_t bpf_func); \ 1516 unsigned int (*bpf_func)(const void *ctx, member
|
H A D | filter.h | 590 unsigned int (*bpf_func)(const void *, 605 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run() 612 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
|
/openbmc/linux/include/trace/ |
H A D | bpf_probe.h | 75 .bpf_func = __bpf_trace_##template, \
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_core.c | 163 prog->bpf_func = (void *)ctx->insns; in bpf_int_jit_compile()
|
H A D | bpf_jit_comp64.c | 399 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()
|
H A D | bpf_jit_comp32.c | 997 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()
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 579 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call_indirect() 660 (u8 *)target->bpf_func + in bpf_tail_call_direct_fixup() 2226 if (emit_rsb_call(&prog, p->bpf_func, prog)) in invoke_bpf_prog() 2845 prog->bpf_func = NULL; in bpf_int_jit_compile() 2911 prog->bpf_func = (void *)image; in bpf_int_jit_compile() 2983 old_addr = old ? (u8 *)old->bpf_func + poke->adj_off : NULL; in bpf_arch_poke_desc_update() 2984 new_addr = new ? (u8 *)new->bpf_func + poke->adj_off : NULL; in bpf_arch_poke_desc_update()
|
H A D | bpf_jit_comp32.c | 1369 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call() 2605 prog->bpf_func = (void *)image; in bpf_int_jit_compile()
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp.c | 202 fp->bpf_func = (void *)image; in bpf_int_jit_compile()
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_core.c | 173 prog->bpf_func = (void *)ctx->ro_insns; in bpf_int_jit_compile()
|
H A D | bpf_jit_comp64.c | 379 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call() 758 ret = emit_call((const u64)p->bpf_func, true, ctx); in invoke_bpf_prog()
|
/openbmc/linux/arch/sparc/net/ |
H A D | bpf_jit_comp_32.c | 750 fp->bpf_func = (void *)image; in bpf_jit_compile() 761 module_memfree(fp->bpf_func); in bpf_jit_free()
|
H A D | bpf_jit_comp_64.c | 887 off = offsetof(struct bpf_prog, bpf_func); in emit_tail_call() 1612 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
|
/openbmc/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 255 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call() 1213 prog->bpf_func = NULL; in bpf_int_jit_compile() 1226 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 425 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call() 1646 prog->bpf_func = NULL; in bpf_int_jit_compile() 1657 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile() 1754 emit_call((const u64)p->bpf_func, ctx); in invoke_bpf_prog()
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 1524 offsetof(struct bpf_prog, bpf_func)); in bpf_jit_insn() 1982 fp->bpf_func = (void *) jit.prg_buf; in bpf_int_jit_compile() 2146 load_imm64(jit, REG_1, (u64)p->bpf_func); in invoke_bpf_prog()
|
/openbmc/linux/arch/arm/net/ |
H A D | bpf_jit_32.c | 1213 BUILD_BUG_ON(offsetof(struct bpf_prog, bpf_func) > in emit_bpf_tail_call() 1215 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call() 2007 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp.c | 1022 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()
|