Searched refs:insn_idx (Results 1 – 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/samples/bpf/ |
D | bpf_load.c | 350 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/ |
D | verifier.c | 171 int insn_idx; member 781 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx) in acquire_reference_state() argument 792 state->refs[new_ofs].insn_idx = insn_idx; in acquire_reference_state() 938 int *insn_idx, bool pop_log) in pop_stack() argument 954 if (insn_idx) in pop_stack() 955 *insn_idx = head->insn_idx; in pop_stack() 967 int insn_idx, int prev_insn_idx, in push_stack() argument 978 elem->insn_idx = insn_idx; in push_stack() 1734 struct bpf_insn *insn = env->prog->insnsi + env->insn_idx; in check_reg_arg() 1767 reg->subreg_def = rw64 ? DEF_NOT_SUBREG : env->insn_idx + 1; in check_reg_arg() [all …]
|
D | offload.c | 144 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/drivers/net/ethernet/netronome/nfp/bpf/ |
D | verifier.c | 21 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()
|
D | main.h | 566 int nfp_verify_insn(struct bpf_verifier_env *env, int insn_idx, 587 unsigned int insn_idx);
|
/kernel/linux/linux-5.10/include/linux/ |
D | bpf_verifier.h | 177 int insn_idx; member 267 u32 insn_idx; member 416 u32 insn_idx; member 492 int insn_idx, int prev_insn_idx);
|
D | bpf.h | 526 int insn_idx, int prev_insn_idx); 827 u32 insn_idx; member
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | libbpf.c | 193 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/ |
D | bpf.c | 63 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()
|