Home
last modified time | relevance | path

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

12

/linux/arch/powerpc/net/
H A Dbpf_jit_comp.c85 * b bpf_func + 4 in bpf_jit_build_fentry_stubs()
393 fp->bpf_func = (void *)fimage; in bpf_add_extable_entry()
428 fp->bpf_func = NULL; in bpf_add_extable_entry()
700 /* p->bpf_func(ctx) */ in invoke_bpf_mod_ret()
706 (unsigned long)p->bpf_func, in invoke_bpf_mod_ret()
711 EMIT(PPC_RAW_LL(_R12, _R25, offsetof(struct bpf_prog, bpf_func))); in invoke_bpf_mod_ret()
1313 * bpf_func: in bpf_arch_text_poke()
1321 * b bpf_func + 4 in bpf_arch_text_poke()
1354 unsigned long bpf_func, bpf_func_end, size, offset; in bpf_arch_text_poke()
1362 bpf_func in bpf_arch_text_poke()
1306 unsigned long bpf_func, bpf_func_end, size, offset; bpf_arch_text_poke() local
[all...]
/linux/include/linux/
H A Dbpf_lsm.h56 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, bpf_func_t *bpf_func);
97 bpf_func_t *bpf_func) in bpf_lsm_get_retval_range()
90 bpf_lsm_find_cgroup_shim(const struct bpf_prog * prog,bpf_func_t * bpf_func) bpf_lsm_find_cgroup_shim() argument
H A Dtracepoint-defs.h58 void *bpf_func; member
H A Dbpf.h1329 /* Each call __bpf_prog_enter + call bpf_func + call __bpf_prog_exit is ~50
1556 bpf_func_t bpf_func)
1558 return bpf_func(ctx, insnsi);
1648 static_call(bpf_dispatcher_##name##_call)(ctx, insnsi, bpf_func) in bpf_trampoline_unlink_prog()
1656 #define __BPF_DISPATCHER_CALL(name) bpf_func(ctx, insnsi) in bpf_trampoline_get()
1679 bpf_func_t bpf_func) \ in bpf_trampoline_multi_attach()
1691 bpf_func_t bpf_func); \
2042 unsigned int (*bpf_func)(const void *ctx,
1486 bpf_dispatcher_nop_func(const void * ctx,const struct bpf_insn * insnsi,bpf_func_t bpf_func) bpf_dispatcher_nop_func() argument
1932 unsigned int (*bpf_func)(const void *ctx, global() member
H A Dfilter.h787 unsigned int (*bpf_func)(const void *, in bpf_prog_run()
802 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in bpf_prog_run_pin_on_cpu()
813 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in is_stack_arg_ldx()
H A Dbpf_verifier.h1471 static inline struct bpf_func_state *bpf_func(struct bpf_verifier_env *env, in mark_verifier_state_scratched()
1248 static inline struct bpf_func_state *bpf_func(struct bpf_verifier_env *env, bpf_func() function
/linux/kernel/bpf/
H A Dbpf_lsm.c95 bpf_func_t *bpf_func) in BTF_SET_END()
102 *bpf_func = __cgroup_bpf_run_lsm_current; in BTF_SET_END()
110 *bpf_func = __cgroup_bpf_run_lsm_socket; in BTF_SET_END()
112 *bpf_func = __cgroup_bpf_run_lsm_sock; in BTF_SET_END()
115 *bpf_func = __cgroup_bpf_run_lsm_current; in BTF_SET_END()
H A Dtrampoline.c1024 node->link->prog->bpf_func); in __bpf_trampoline_link_prog()
1069 tr->extension_prog->bpf_func, NULL); in __bpf_trampoline_unlink_prog()
1123 bpf_func_t bpf_func, in cgroup_shim_alloc() argument
1141 p->bpf_func = bpf_func; in cgroup_shim_alloc()
1159 bpf_func_t bpf_func) in cgroup_shim_find() argument
1168 if (p->bpf_func == bpf_func) in cgroup_shim_find()
1183 bpf_func_t bpf_func; in bpf_trampoline_link_cgroup_shim() local
1196 bpf_lsm_find_cgroup_shim(prog, &bpf_func); in bpf_trampoline_link_cgroup_shim()
1245 bpf_func_t bpf_func; bpf_trampoline_unlink_cgroup_shim() local
[all...]
H A Dcore.c214 * prog->bpf_func.
224 * jited_linfo[linfo_idx] = prog->bpf_func
228 * jited_linfo[i] = prog->bpf_func - cfi_get_offset() +
249 jited_linfo[0] = prog->bpf_func; in bpf_prog_fill_jited_linfo()
257 jited_linfo[i] = prog->bpf_func - cfi_get_offset() + in bpf_prog_fill_jited_linfo()
567 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_name()
702 fp->aux->ksym_prefix.start = (unsigned long) fp->bpf_func - 16; in bpf_prog_kallsyms_del()
703 fp->aux->ksym_prefix.end = (unsigned long) fp->bpf_func; in bpf_prog_kallsyms_del()
1286 unsigned long real_start = (unsigned long)fp->bpf_func; in bpf_jit_binary_hdr()
1296 unsigned long real_start = (unsigned long)fp->bpf_func;
[all...]
H A Ddispatcher.c101 *ipsp++ = (s64)(uintptr_t)d->progs[i].prog->bpf_func; in bpf_dispatcher_prepare()
H A Dfixups.c1326 new = (unsigned long)func[subprog]->bpf_func; in jit_subprogs()
1496 insn[0].imm = (u32)(long)func[subprog]->bpf_func; in bpf_fixup_call_args()
1497 insn[1].imm = ((u64)(long)func[subprog]->bpf_func) >> 32; in bpf_fixup_call_args()
1503 insn->imm = BPF_CALL_IMM(func[subprog]->bpf_func);
1522 old_bpf_func = func[i]->bpf_func; in add_hidden_subprog()
1524 if (tmp != func[i] || func[i]->bpf_func != old_bpf_func) { in add_hidden_subprog()
1578 prog->bpf_func = func[0]->bpf_func; in bpf_do_misc_fixups()
1588 prog->aux->bpf_exception_cb = (void *)func[env->exception_callback_subprog]->bpf_func; in bpf_do_misc_fixups()
H A Dverifier.c656 if (!is_spi_bounds_valid(bpf_func(env, reg), spi, nr_slots)) in mark_dynptr_stack_regs()
765 struct bpf_func_state *state = bpf_func(env, reg); in unmark_stack_slots_dynptr()
842 struct bpf_func_state *state = bpf_func(env, reg); in destroy_if_dynptr_stack_slot()
965 struct bpf_func_state *state = bpf_func(env, reg); in mark_stack_slots_iter()
1005 state = bpf_func(env, reg); in is_iter_reg_valid_uninit()
1046 struct bpf_func_state *state = bpf_func(env, reg); in is_iter_reg_valid_init()
1087 struct bpf_func_state *state = bpf_func(env, reg); in mark_stack_slot_irq_flag()
1118 struct bpf_func_state *state = bpf_func(env, reg); in unmark_stack_slot_irq_flag()
1145 struct bpf_func_state *state = bpf_func(env, reg); in unmark_stack_slot_irq_flag()
1182 struct bpf_func_state *state = bpf_func(en in is_irq_flag_reg_valid_uninit()
[all...]
H A Doffload.c439 prog->bpf_func = bpf_prog_warn_on_exec; in bpf_prog_offload_info_fill_ns()
H A Dstates.c1516 iter_frame = bpf_func(env, iter_reg); in bpf_is_state_visited()
/linux/arch/riscv/net/
H A Dbpf_jit_core.c176 prog->bpf_func = (void *)ctx->ro_insns + cfi_get_offset(); in bpf_int_jit_compile()
203 prog->bpf_func = NULL; in bpf_arch_text_copy()
261 prog->bpf_func = (void *)prog->bpf_func - cfi_get_offset();
H A Dbpf_jit_comp64.c366 /* goto *(prog->bpf_func + RV_TAILCALL_OFFSET); */ in emit_bpf_tail_call()
367 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
1004 ret = emit_call((const u64)p->bpf_func, true, ctx); in invoke_bpf()
2158 /* bpf prog starts here as kcfi skipped during prog->bpf_func setup */ in bpf_jit_supports_arena()
/linux/scripts/gdb/linux/
H A Dbpf.py168 self.bpf_func = int(prog["bpf_func"])
188 return self.jited_linfo[self.pos] - self.bpf_func
/linux/arch/x86/net/
H A Dbpf_jit_comp.c787 * goto *(prog->bpf_func + prologue_size); in emit_bpf_tail_call_indirect()
860 /* goto *(prog->bpf_func + X86_TAIL_CALL_OFFSET); */ in emit_bpf_tail_call_direct()
862 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call_direct()
868 * rcx == prog->bpf_func + X86_TAIL_CALL_OFFSET in emit_bpf_tail_call_direct()
958 (u8 *)target->bpf_func + in emit_mov_imm32()
4148 if (emit_rsb_call(&prog, p->bpf_func, image + (prog - (u8 *)rw_image))) in bpf_int_jit_compile()
4724 /* With FineIBT there is no ENDBR at bpf_func, go through the preamble */
4944 prog->bpf_func = NULL;
5027 prog->bpf_func = (void *)image + cfi_get_offset();
5138 prog->bpf_func
[all...]
/linux/arch/sparc/net/
H A Dbpf_jit_comp_32.c750 fp->bpf_func = (void *)image; in bpf_jit_compile()
761 execmem_free(fp->bpf_func); in bpf_jit_free()
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c705 /* goto *(prog->bpf_func + prologue_offset); */ in emit_bpf_tail_call()
706 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
2497 prog->bpf_func = (void *)ctx.ro_image + cfi_get_offset(); in invoke_bpf_mod_ret()
2530 prog->bpf_func = NULL;
2657 emit_call((const u64)p->bpf_func, ctx); in save_args()
3576 prog->bpf_func = (void *)prog->bpf_func - cfi_get_offset();
/linux/arch/s390/net/
H A Dbpf_jit_comp.c1979 * goto *(prog->bpf_func + tail_call_start); in bpf_jit_insn()
1982 /* lg %r1,bpf_func(%r1) */ in bpf_jit_insn()
1984 offsetof(struct bpf_prog, bpf_func)); in bpf_jit_insn()
2437 fp->bpf_func = (void *)jit.prg_buf + cfi_get_offset(); in bpf_int_jit_compile()
2453 fp->bpf_func = NULL; in bpf_arch_text_poke()
2620 * retval = bpf_func(args, p->insnsi); in invoke_bpf_prog()
2628 /* brasl %r14,p->bpf_func */ in invoke_bpf_prog()
2629 EMIT6_PCREL_RILB_PTR(0xc0050000, REG_14, p->bpf_func); in invoke_bpf_prog()
/linux/arch/loongarch/net/
H A Dbpf_jit.c328 /* goto *(prog->bpf_func + 4); */ in emit_bpf_tail_call()
329 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
1810 ret = emit_call(ctx, (const u64)p->bpf_func); in invoke_bpf()
2387 prog->bpf_func = (void *)ctx.ro_image; in bpf_jit_free()
2407 prog->bpf_func = NULL; in walk_bpf_stackframe()
/linux/arch/parisc/net/
H A Dbpf_jit_comp64.c397 * goto *(prog->bpf_func + 4); in emit_bpf_tail_call()
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 Dbpf_jit_comp32.c1004 * goto *(prog->bpf_func + 4); in emit_bpf_tail_call()
1006 off = offsetof(struct bpf_prog, bpf_func); in emit_load_r64()
1008 BUILD_BUG_ON(sizeof(bpfp.bpf_func) != 4); in emit_load_r64()
/linux/arch/mips/net/
H A Dbpf_jit_comp64.c592 /* func = prog->bpf_func + 8 (prologue skip offset) */ in build_prologue()
593 off = offsetof(struct bpf_prog, bpf_func); in build_prologue()

12