Home
last modified time | relevance | path

Searched refs:insn_idx (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/samples/bpf/
Dbpf_load.c350 unsigned int insn_idx; in parse_relo_and_apply() local
356 insn_idx = rel.r_offset / sizeof(struct bpf_insn); in parse_relo_and_apply()
360 if (insn[insn_idx].code != (BPF_LD | BPF_IMM | BPF_DW)) { in parse_relo_and_apply()
362 insn_idx, insn[insn_idx].code); in parse_relo_and_apply()
365 insn[insn_idx].src_reg = BPF_PSEUDO_MAP_FD; in parse_relo_and_apply()
375 insn[insn_idx].imm = maps[map_idx].fd; in parse_relo_and_apply()
378 insn_idx); in parse_relo_and_apply()
/kernel/linux/linux-5.10/kernel/bpf/
Dverifier.c171 int insn_idx; member
773 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx) in acquire_reference_state() argument
784 state->refs[new_ofs].insn_idx = insn_idx; in acquire_reference_state()
930 int *insn_idx, bool pop_log) in pop_stack() argument
946 if (insn_idx) in pop_stack()
947 *insn_idx = head->insn_idx; in pop_stack()
959 int insn_idx, int prev_insn_idx, in push_stack() argument
970 elem->insn_idx = insn_idx; in push_stack()
1727 struct bpf_insn *insn = env->prog->insnsi + env->insn_idx; in check_reg_arg()
1760 reg->subreg_def = rw64 ? DEF_NOT_SUBREG : env->insn_idx + 1; in check_reg_arg()
[all …]
Doffload.c144 int insn_idx, int prev_insn_idx) in bpf_prog_offload_verify_insn() argument
152 ret = offload->offdev->ops->insn_hook(env, insn_idx, in bpf_prog_offload_verify_insn()
/kernel/linux/linux-5.10/include/linux/
Dbpf_verifier.h177 int insn_idx; member
267 u32 insn_idx; member
395 u32 insn_idx; member
471 int insn_idx, int prev_insn_idx);
Dbpf.h526 int insn_idx, int prev_insn_idx);
827 u32 insn_idx; member
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c21 unsigned int insn_idx) in nfp_bpf_goto_meta() argument
25 backward = meta->n - insn_idx; in nfp_bpf_goto_meta()
26 forward = insn_idx - meta->n; in nfp_bpf_goto_meta()
28 if (min(forward, backward) > nfp_prog->n_insns - insn_idx - 1) { in nfp_bpf_goto_meta()
29 backward = nfp_prog->n_insns - insn_idx - 1; in nfp_bpf_goto_meta()
32 if (min(forward, backward) > insn_idx && backward > insn_idx) { in nfp_bpf_goto_meta()
33 forward = insn_idx; in nfp_bpf_goto_meta()
626 int nfp_verify_insn(struct bpf_verifier_env *env, int insn_idx, in nfp_verify_insn() argument
632 meta = nfp_bpf_goto_meta(nfp_prog, meta, insn_idx); in nfp_verify_insn()
Dmain.h566 int nfp_verify_insn(struct bpf_verifier_env *env, int insn_idx,
587 unsigned int insn_idx);
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.c193 int insn_idx; member
3337 __u32 insn_idx, const char *sym_name, in bpf_program__record_reloc() argument
3340 struct bpf_insn *insn = &prog->insns[insn_idx]; in bpf_program__record_reloc()
3369 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3376 prog->name, sym_name, insn_idx, insn->code); in bpf_program__record_reloc()
3396 prog->name, i, ext->name, ext->sym_idx, insn_idx); in bpf_program__record_reloc()
3398 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3427 map->sec_offset, insn_idx); in bpf_program__record_reloc()
3436 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3454 map->sec_offset, insn_idx); in bpf_program__record_reloc()
[all …]
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dbpf.c63 nsim_bpf_verify_insn(struct bpf_verifier_env *env, int insn_idx, int prev_insn) in nsim_bpf_verify_insn() argument
69 if (state->nsim_dev->bpf_bind_verifier_delay && !insn_idx) in nsim_bpf_verify_insn()
72 if (insn_idx == env->prog->len - 1) { in nsim_bpf_verify_insn()