/Linux-v6.1/kernel/bpf/ |
D | core.c | 298 dst[i] = fp->insnsi[i]; in bpf_prog_calc_tag() 386 struct bpf_insn *insn = prog->insnsi; in bpf_adj_branches() 398 insn = prog->insnsi + end_old; in bpf_adj_branches() 459 memcpy(prog->insnsi + off, patch, sizeof(*patch)); in bpf_patch_insn_single() 495 memmove(prog_adj->insnsi + off + len, prog_adj->insnsi + off + 1, in bpf_patch_insn_single() 497 memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); in bpf_patch_insn_single() 515 memmove(prog->insnsi + off, prog->insnsi + off + cnt, in bpf_remove_insns() 1407 insn = clone->insnsi; in bpf_jit_blind_constants() 1447 insn = clone->insnsi + i + insn_delta; in bpf_jit_blind_constants() 1852 insn = prog->insnsi; in ___bpf_prog_run()
|
D | verifier.c | 2180 struct bpf_insn *insn = env->prog->insnsi; in add_subprog_and_kfunc() 2223 struct bpf_insn *insn = env->prog->insnsi; in check_subprogs() 2459 struct bpf_insn *insn = env->prog->insnsi + env->insn_idx; in check_reg_arg() 2564 struct bpf_insn *insn = env->prog->insnsi + idx; in backtrack_insn() 3032 u32 dst_reg = env->prog->insnsi[insn_idx].dst_reg; in check_stack_write_fixed_off() 3761 struct bpf_insn *insn = &env->prog->insnsi[insn_idx]; in check_map_kptr_access() 4234 struct bpf_insn *insn = env->prog->insnsi; in check_max_stack_depth() 10830 struct bpf_insn *insns = env->prog->insnsi; in visit_insn() 11201 if (!prog->insnsi[linfo[i].insn_off].code) { in check_btf_line() 11312 &prog->insnsi[core_relo.insn_off / 8]); in check_core_relo() [all …]
|
D | cgroup.c | 78 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_sock() 100 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_socket() 118 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_current()
|
D | syscall.c | 3820 insns = kmemdup(prog->insnsi, bpf_prog_insn_size(prog), in bpf_insn_prepare_dump()
|
/Linux-v6.1/arch/riscv/net/ |
D | bpf_jit_core.c | 22 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
|
D | bpf_jit_comp64.c | 611 int s, e, rvoff, ret, i = insn - ctx->prog->insnsi; in bpf_jit_emit_insn()
|
D | bpf_jit_comp32.c | 959 int s, e, rvoff, i = insn - ctx->prog->insnsi; in bpf_jit_emit_insn()
|
/Linux-v6.1/include/linux/ |
D | bpf.h | 965 const struct bpf_insn *insnsi, 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) 1024 const struct bpf_insn *insnsi, \ 1036 const struct bpf_insn *insnsi, \ 1245 DECLARE_FLEX_ARRAY(struct bpf_insn, insnsi);
|
D | filter.h | 577 const struct bpf_insn *insnsi, 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-v6.1/arch/powerpc/net/ |
D | bpf_jit_comp.c | 30 const struct bpf_insn *insn = fp->insnsi; in bpf_jit_fixup_addresses()
|
D | bpf_jit_comp64.c | 349 const struct bpf_insn *insn = fp->insnsi; in bpf_jit_build_body()
|
D | bpf_jit_comp32.c | 274 const struct bpf_insn *insn = fp->insnsi; in bpf_jit_build_body()
|
/Linux-v6.1/arch/arm64/net/ |
D | bpf_jit_comp.c | 518 const int i = insn - ctx->prog->insnsi; in emit_ll_sc_atomic() 766 const int i = insn - ctx->prog->insnsi; in build_insn() 1314 const struct bpf_insn *insn = &prog->insnsi[i]; in find_fpb_offset() 1392 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body() 1692 emit_addr_mov_i64(A64_R(1), (const u64)p->insnsi, ctx); in invoke_bpf_prog()
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/bpf/ |
D | offload.c | 205 ret = nfp_prog_prepare(nfp_prog, prog->insnsi, prog->len); in nfp_bpf_verifier_prep()
|
/Linux-v6.1/arch/loongarch/net/ |
D | bpf_jit.c | 395 int i = insn - ctx->prog->insnsi; in build_insn() 976 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
|
/Linux-v6.1/arch/x86/net/ |
D | bpf_jit_comp.c | 900 struct bpf_insn *insn = bpf_prog->insnsi; in do_jit() 1872 (long) p->insnsi >> 32, in invoke_bpf_prog() 1873 (u32) (long) p->insnsi); in invoke_bpf_prog()
|
D | bpf_jit_comp32.c | 1662 struct bpf_insn *insn = bpf_prog->insnsi; in do_jit()
|
/Linux-v6.1/arch/mips/net/ |
D | bpf_jit_comp.c | 853 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
|
/Linux-v6.1/arch/sparc/net/ |
D | bpf_jit_comp_64.c | 900 const int i = insn - ctx->prog->insnsi; in build_insn() 1444 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
|
/Linux-v6.1/arch/arm/net/ |
D | bpf_jit_32.c | 1357 const int i = insn - ctx->prog->insnsi; in build_insn() 1835 const struct bpf_insn *insn = &(prog->insnsi[i]); in build_body()
|
/Linux-v6.1/arch/s390/net/ |
D | bpf_jit_comp.c | 674 struct bpf_insn *insn = &fp->insnsi[i]; in bpf_jit_insn()
|
/Linux-v6.1/lib/ |
D | test_bpf.c | 14491 memcpy(fp->insnsi, fptr, fp->len * sizeof(struct bpf_insn)); in generate_filter() 15090 memcpy(fp->insnsi, test->insns, len * sizeof(struct bpf_insn)); in prepare_tail_call_tests() 15094 struct bpf_insn *insn = &fp->insnsi[i]; in prepare_tail_call_tests()
|
/Linux-v6.1/net/core/ |
D | filter.c | 575 first_insn = new_prog->insnsi; in bpf_convert_filter() 8555 *insn++ = prog->insnsi[0]; in bpf_unclone_prologue()
|