Home
last modified time | relevance | path

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

/Linux-v4.19/include/linux/
Dtracepoint-defs.h46 void *bpf_func; member
Dfilter.h498 unsigned int (*bpf_func)(const void *ctx, member
513 #define BPF_PROG_RUN(filter, ctx) (*(filter)->bpf_func)(ctx, (filter)->insnsi)
715 unsigned long real_start = (unsigned long)fp->bpf_func; in bpf_jit_binary_hdr()
/Linux-v4.19/include/trace/
Dbpf_probe.h82 .bpf_func = (void *)__bpf_trace_##template, \
/Linux-v4.19/arch/powerpc/net/
Dbpf_jit_comp64.c252 PPC_LD(b2p[TMP_REG_1], b2p[TMP_REG_1], offsetof(struct bpf_prog, bpf_func)); in bpf_jit_emit_tail_call()
722 func = (u8 *) fp->aux->func[off]->bpf_func; in bpf_jit_build_body()
999 fp->bpf_func = (void *)image; in bpf_int_jit_compile()
1027 unsigned long addr = (unsigned long)fp->bpf_func & PAGE_MASK; in bpf_jit_free()
Dbpf_jit_comp.c675 fp->bpf_func = (void *)image; in bpf_jit_compile()
686 module_memfree(fp->bpf_func); in bpf_jit_free()
/Linux-v4.19/arch/arm64/net/
Dbpf_jit_comp.c300 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
917 prog->bpf_func = NULL; in bpf_int_jit_compile()
927 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
/Linux-v4.19/arch/sparc/net/
Dbpf_jit_comp_32.c751 fp->bpf_func = (void *)image; in bpf_jit_compile()
762 module_memfree(fp->bpf_func); in bpf_jit_free()
Dbpf_jit_comp_64.c881 off = offsetof(struct bpf_prog, bpf_func); in emit_tail_call()
1534 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
/Linux-v4.19/kernel/bpf/
Dcore.c1456 fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1]; in bpf_prog_select_func()
1458 fp->bpf_func = __bpf_prog_ret0_warn; in bpf_prog_select_func()
1475 if (fp->bpf_func) in bpf_prog_select_runtime()
1524 .bpf_func = __bpf_prog_ret1,
Doffload.c226 prog->bpf_func = bpf_prog_warn_on_exec; in bpf_prog_offload_compile()
Dsyscall.c2026 img = (u8 *) prog->aux->func[i]->bpf_func; in bpf_prog_get_info_by_fd()
2035 if (copy_to_user(uinsns, prog->bpf_func, ulen)) in bpf_prog_get_info_by_fd()
2057 ksym_addr = (ulong) prog->aux->func[i]->bpf_func; in bpf_prog_get_info_by_fd()
Dsockmap.c660 rc = (*prog->bpf_func)(md, prog->insnsi); in smap_do_tx_msg()
1268 rc = (*prog->bpf_func)(skb, prog->insnsi); in smap_verdict_func()
1531 rc = (*prog->bpf_func)(skb, prog->insnsi); in smap_parse_func_strparser()
Dverifier.c5552 func[subprog]->bpf_func - in jit_subprogs()
5571 old_bpf_func = func[i]->bpf_func; in jit_subprogs()
5573 if (tmp != func[i] || func[i]->bpf_func != old_bpf_func) { in jit_subprogs()
5603 prog->bpf_func = func[0]->bpf_func; in jit_subprogs()
/Linux-v4.19/arch/x86/net/
Dbpf_jit_comp.c311 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call()
1176 prog->bpf_func = (void *)image; in bpf_int_jit_compile()
Dbpf_jit_comp32.c1576 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call()
2405 prog->bpf_func = (void *)image; in bpf_int_jit_compile()
/Linux-v4.19/arch/s390/net/
Dbpf_jit_comp.c1064 offsetof(struct bpf_prog, bpf_func)); in bpf_jit_insn()
1296 fp->bpf_func = (void *) jit.prg_buf; in bpf_int_jit_compile()
/Linux-v4.19/kernel/trace/
Dbpf_trace.c1154 return tracepoint_probe_register(tp, (void *)btp->bpf_func, prog); in __bpf_probe_register()
1172 err = tracepoint_probe_unregister(btp->tp, (void *)btp->bpf_func, prog); in bpf_probe_unregister()
/Linux-v4.19/arch/mips/net/
Dbpf_jit.c1257 fp->bpf_func = (void *)ctx.target; in bpf_jit_compile()
1267 module_memfree(fp->bpf_func); in bpf_jit_free()
Debpf_jit.c622 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
1825 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()
/Linux-v4.19/arch/arm/net/
Dbpf_jit_32.c1176 BUILD_BUG_ON(offsetof(struct bpf_prog, bpf_func) > in emit_bpf_tail_call()
1178 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
1938 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()
/Linux-v4.19/net/kcm/
Dkcmsock.c385 return (*prog->bpf_func)(skb, prog->insnsi); in kcm_parse_func_strparser()
/Linux-v4.19/net/core/
Dfilter.c1292 fp->bpf_func = NULL; in bpf_prepare_filter()