/linux-6.1.9/kernel/bpf/ |
D | trampoline.c | 559 link->link.prog->bpf_func); in __bpf_trampoline_link_prog() 602 tr->extension_prog->bpf_func, NULL); in __bpf_trampoline_unlink_prog() 650 bpf_func_t bpf_func, in cgroup_shim_alloc() argument 667 p->bpf_func = bpf_func; in cgroup_shim_alloc() 685 bpf_func_t bpf_func) in cgroup_shim_find() argument 694 if (p->bpf_func == bpf_func) in cgroup_shim_find() 708 bpf_func_t bpf_func; in bpf_trampoline_link_cgroup_shim() local 721 bpf_lsm_find_cgroup_shim(prog, &bpf_func); in bpf_trampoline_link_cgroup_shim() 728 shim_link = cgroup_shim_find(tr, bpf_func); in bpf_trampoline_link_cgroup_shim() 740 shim_link = cgroup_shim_alloc(prog, bpf_func, cgroup_atype); in bpf_trampoline_link_cgroup_shim() [all …]
|
D | bpf_lsm.c | 74 bpf_func_t *bpf_func) in BTF_SET_END() 81 *bpf_func = __cgroup_bpf_run_lsm_current; in BTF_SET_END() 89 *bpf_func = __cgroup_bpf_run_lsm_socket; in BTF_SET_END() 91 *bpf_func = __cgroup_bpf_run_lsm_sock; in BTF_SET_END() 94 *bpf_func = __cgroup_bpf_run_lsm_current; in BTF_SET_END()
|
D | dispatcher.c | 101 *ipsp++ = (s64)(uintptr_t)d->progs[i].prog->bpf_func; in bpf_dispatcher_prepare()
|
D | core.c | 218 jited_linfo[0] = prog->bpf_func; in bpf_prog_fill_jited_linfo() 226 jited_linfo[i] = prog->bpf_func + in bpf_prog_fill_jited_linfo() 549 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_addr() 1146 unsigned long real_start = (unsigned long)fp->bpf_func; in bpf_jit_binary_pack_hdr() 1156 unsigned long real_start = (unsigned long)fp->bpf_func; in bpf_jit_binary_hdr() 1197 addr = (u8 *)prog->aux->func[off]->bpf_func; in bpf_jit_get_func_addr() 2144 fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1]; in bpf_prog_select_func() 2146 fp->bpf_func = __bpf_prog_ret0_warn; in bpf_prog_select_func() 2168 if (fp->bpf_func) in bpf_prog_select_runtime() 2224 .bpf_func = __bpf_prog_ret1,
|
D | offload.c | 255 prog->bpf_func = bpf_prog_warn_on_exec; in bpf_prog_offload_compile()
|
D | arraymap.c | 1057 old_addr = old ? (u8 *)old->bpf_func + poke->adj_off : NULL; in prog_array_map_poke_run() 1058 new_addr = new ? (u8 *)new->bpf_func + poke->adj_off : NULL; in prog_array_map_poke_run()
|
D | syscall.c | 4022 img = (u8 *) prog->aux->func[i]->bpf_func; in bpf_prog_get_info_by_fd() 4031 if (copy_to_user(uinsns, prog->bpf_func, ulen)) in bpf_prog_get_info_by_fd() 4055 prog->aux->func[i]->bpf_func; in bpf_prog_get_info_by_fd() 4061 ksym_addr = (unsigned long) prog->bpf_func; in bpf_prog_get_info_by_fd()
|
/linux-6.1.9/include/linux/ |
D | bpf_lsm.h | 45 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, bpf_func_t *bpf_func); 71 bpf_func_t *bpf_func) in bpf_lsm_find_cgroup_shim() argument
|
D | tracepoint-defs.h | 51 void *bpf_func; member
|
D | bpf.h | 966 bpf_func_t bpf_func) in bpf_dispatcher_nop_func() argument 968 return bpf_func(ctx, insnsi); in bpf_dispatcher_nop_func() 994 static_call(bpf_dispatcher_##name##_call)(ctx, insnsi, bpf_func) 1002 #define __BPF_DISPATCHER_CALL(name) bpf_func(ctx, insnsi) 1025 bpf_func_t bpf_func) \ 1037 bpf_func_t bpf_func); \ 1238 unsigned int (*bpf_func)(const void *ctx, member
|
D | filter.h | 578 unsigned int (*bpf_func)(const void *, 593 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run() 600 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
|
/linux-6.1.9/arch/riscv/net/ |
D | bpf_jit_core.c | 157 prog->bpf_func = (void *)ctx->insns; in bpf_int_jit_compile()
|
/linux-6.1.9/include/trace/ |
D | bpf_probe.h | 110 .bpf_func = __bpf_trace_##template, \
|
/linux-6.1.9/arch/powerpc/net/ |
D | bpf_jit_comp.c | 285 fp->bpf_func = (void *)image; in bpf_int_jit_compile()
|
/linux-6.1.9/arch/x86/net/ |
D | bpf_jit_comp.c | 518 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call_indirect() 599 (u8 *)target->bpf_func + in bpf_tail_call_direct_fixup() 1875 if (emit_call(&prog, p->bpf_func, prog)) in invoke_bpf_prog() 2441 prog->bpf_func = NULL; in bpf_int_jit_compile() 2507 prog->bpf_func = (void *)image; in bpf_int_jit_compile()
|
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()
|
/linux-6.1.9/arch/sparc/net/ |
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()
|
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()
|
/linux-6.1.9/arch/loongarch/net/ |
D | bpf_jit.c | 255 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call() 1138 prog->bpf_func = NULL; in bpf_int_jit_compile() 1151 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
|
/linux-6.1.9/arch/arm64/net/ |
D | bpf_jit_comp.c | 419 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call() 1581 prog->bpf_func = NULL; in bpf_int_jit_compile() 1592 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile() 1694 emit_call((const u64)p->bpf_func, ctx); in invoke_bpf_prog()
|
/linux-6.1.9/arch/arm/net/ |
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()
|
/linux-6.1.9/arch/s390/net/ |
D | bpf_jit_comp.c | 1395 offsetof(struct bpf_prog, bpf_func)); in bpf_jit_insn() 1845 fp->bpf_func = (void *) jit.prg_buf; in bpf_int_jit_compile()
|
/linux-6.1.9/arch/mips/net/ |
D | bpf_jit_comp.c | 1018 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()
|
D | bpf_jit_comp64.c | 514 off = offsetof(struct bpf_prog, bpf_func); in emit_tail_call()
|
/linux-6.1.9/kernel/trace/ |
D | bpf_trace.c | 2319 return tracepoint_probe_register_may_exist(tp, (void *)btp->bpf_func, in __bpf_probe_register() 2330 return tracepoint_probe_unregister(btp->tp, (void *)btp->bpf_func, prog); in bpf_probe_unregister()
|