Home
last modified time | relevance | path

Searched refs:insnsi (Results 1 – 23 of 23) sorted by relevance

/Linux-v6.1/kernel/bpf/
Dcore.c298 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()
Dverifier.c2180 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 …]
Dcgroup.c78 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()
Dsyscall.c3820 insns = kmemdup(prog->insnsi, bpf_prog_insn_size(prog), in bpf_insn_prepare_dump()
/Linux-v6.1/arch/riscv/net/
Dbpf_jit_core.c22 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
Dbpf_jit_comp64.c611 int s, e, rvoff, ret, i = insn - ctx->prog->insnsi; in bpf_jit_emit_insn()
Dbpf_jit_comp32.c959 int s, e, rvoff, i = insn - ctx->prog->insnsi; in bpf_jit_emit_insn()
/Linux-v6.1/include/linux/
Dbpf.h965 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);
Dfilter.h577 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/
Dbpf_jit_comp.c30 const struct bpf_insn *insn = fp->insnsi; in bpf_jit_fixup_addresses()
Dbpf_jit_comp64.c349 const struct bpf_insn *insn = fp->insnsi; in bpf_jit_build_body()
Dbpf_jit_comp32.c274 const struct bpf_insn *insn = fp->insnsi; in bpf_jit_build_body()
/Linux-v6.1/arch/arm64/net/
Dbpf_jit_comp.c518 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/
Doffload.c205 ret = nfp_prog_prepare(nfp_prog, prog->insnsi, prog->len); in nfp_bpf_verifier_prep()
/Linux-v6.1/arch/loongarch/net/
Dbpf_jit.c395 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/
Dbpf_jit_comp.c900 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()
Dbpf_jit_comp32.c1662 struct bpf_insn *insn = bpf_prog->insnsi; in do_jit()
/Linux-v6.1/arch/mips/net/
Dbpf_jit_comp.c853 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
/Linux-v6.1/arch/sparc/net/
Dbpf_jit_comp_64.c900 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/
Dbpf_jit_32.c1357 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/
Dbpf_jit_comp.c674 struct bpf_insn *insn = &fp->insnsi[i]; in bpf_jit_insn()
/Linux-v6.1/lib/
Dtest_bpf.c14491 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/
Dfilter.c575 first_insn = new_prog->insnsi; in bpf_convert_filter()
8555 *insn++ = prog->insnsi[0]; in bpf_unclone_prologue()