Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/include/linux/
Dtracepoint-defs.h51 void *bpf_func; member
Dfilter.h560 unsigned int (*bpf_func)(const void *ctx, member
581 __ret = dfunc(ctx, (prog)->insnsi, (prog)->bpf_func); \
588 __ret = dfunc(ctx, (prog)->insnsi, (prog)->bpf_func); \
846 unsigned long real_start = (unsigned long)fp->bpf_func; in bpf_jit_binary_hdr()
Dbpf.h717 unsigned int (*bpf_func)(const void *, in bpf_dispatcher_nop_func()
720 return bpf_func(ctx, insnsi); in bpf_dispatcher_nop_func()
746 unsigned int (*bpf_func)(const void *, \
749 return bpf_func(ctx, insnsi); \
758 unsigned int (*bpf_func)(const void *, \
/kernel/linux/linux-5.10/kernel/bpf/
Ddispatcher.c100 *ipsp++ = (s64)(uintptr_t)d->progs[i].prog->bpf_func; in bpf_dispatcher_prepare()
Dtrampoline.c404 prog->bpf_func); in bpf_trampoline_link_prog()
439 tr->extension_prog->bpf_func, NULL); in bpf_trampoline_unlink_prog()
Dcore.c206 jited_linfo[0] = prog->bpf_func; in bpf_prog_fill_jited_linfo()
214 jited_linfo[i] = prog->bpf_func + in bpf_prog_fill_jited_linfo()
544 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_addr()
946 addr = (u8 *)prog->aux->func[off]->bpf_func; in bpf_jit_get_func_addr()
1829 fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1]; in bpf_prog_select_func()
1831 fp->bpf_func = __bpf_prog_ret0_warn; in bpf_prog_select_func()
1848 if (fp->bpf_func) in bpf_prog_select_runtime()
1904 .bpf_func = __bpf_prog_ret1,
Darraymap.c970 old_addr = old ? (u8 *)old->bpf_func + poke->adj_off : NULL; in prog_array_map_poke_run()
971 new_addr = new ? (u8 *)new->bpf_func + poke->adj_off : NULL; in prog_array_map_poke_run()
Doffload.c258 prog->bpf_func = bpf_prog_warn_on_exec; in bpf_prog_offload_compile()
Dsyscall.c3538 img = (u8 *) prog->aux->func[i]->bpf_func; in bpf_prog_get_info_by_fd()
3547 if (copy_to_user(uinsns, prog->bpf_func, ulen)) in bpf_prog_get_info_by_fd()
3571 prog->aux->func[i]->bpf_func; in bpf_prog_get_info_by_fd()
3577 ksym_addr = (unsigned long) prog->bpf_func; in bpf_prog_get_info_by_fd()
/kernel/linux/linux-5.10/arch/riscv/net/
Dbpf_jit_core.c149 prog->bpf_func = (void *)ctx->insns; in bpf_int_jit_compile()
Dbpf_jit_comp64.c335 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
/kernel/linux/linux-5.10/include/trace/
Dbpf_probe.h85 .bpf_func = __bpf_trace_##template, \
/kernel/linux/linux-5.10/arch/powerpc/net/
Dbpf_jit_comp.c669 fp->bpf_func = (void *)image; in bpf_jit_compile()
680 module_memfree(fp->bpf_func); in bpf_jit_free()
Dbpf_jit_comp64.c275 PPC_BPF_LL(b2p[TMP_REG_1], b2p[TMP_REG_1], offsetof(struct bpf_prog, bpf_func)); in bpf_jit_emit_tail_call()
1298 fp->bpf_func = (void *)image; in bpf_int_jit_compile()
1327 unsigned long addr = (unsigned long)fp->bpf_func & PAGE_MASK; in bpf_jit_free()
/kernel/linux/linux-5.10/arch/arm64/net/
Dbpf_jit_comp.c311 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
1112 prog->bpf_func = NULL; in bpf_int_jit_compile()
1123 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
/kernel/linux/linux-5.10/arch/sparc/net/
Dbpf_jit_comp_32.c750 fp->bpf_func = (void *)image; in bpf_jit_compile()
761 module_memfree(fp->bpf_func); in bpf_jit_free()
Dbpf_jit_comp_64.c887 off = offsetof(struct bpf_prog, bpf_func); in emit_tail_call()
1601 prog->bpf_func = (void *)ctx.image; in bpf_int_jit_compile()
/kernel/linux/linux-5.10/arch/x86/net/
Dbpf_jit_comp.c491 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call_indirect()
581 (u8 *)target->bpf_func + in bpf_tail_call_direct_fixup()
1567 if (emit_call(&prog, p->bpf_func, prog)) in invoke_bpf_prog()
2138 prog->bpf_func = (void *)image; in bpf_int_jit_compile()
Dbpf_jit_comp32.c1369 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call()
2414 prog->bpf_func = (void *)image; in bpf_int_jit_compile()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_flow.c24 #define PROG_(NUM, NAME) SEC("flow_dissector/"#NUM) int bpf_func##NAME
/kernel/linux/linux-5.10/arch/mips/net/
Dbpf_jit.c1286 fp->bpf_func = (void *)ctx.target; in bpf_jit_compile()
1296 module_memfree(fp->bpf_func); in bpf_jit_free()
Debpf_jit.c644 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
1916 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()
/kernel/linux/linux-5.10/arch/arm/net/
Dbpf_jit_32.c1228 BUILD_BUG_ON(offsetof(struct bpf_prog, bpf_func) > in emit_bpf_tail_call()
1230 off = offsetof(struct bpf_prog, bpf_func); in emit_bpf_tail_call()
2028 prog->bpf_func = (void *)ctx.target; in bpf_int_jit_compile()
/kernel/linux/linux-5.10/arch/s390/net/
Dbpf_jit_comp.c1366 offsetof(struct bpf_prog, bpf_func)); in bpf_jit_insn()
1816 fp->bpf_func = (void *) jit.prg_buf; in bpf_int_jit_compile()
/kernel/linux/linux-5.10/kernel/trace/
Dbpf_trace.c2106 return tracepoint_probe_register_may_exist(tp, (void *)btp->bpf_func, in __bpf_probe_register()
2117 return tracepoint_probe_unregister(btp->tp, (void *)btp->bpf_func, prog); in bpf_probe_unregister()

12