Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
A Drelo_core.c865 int insn_idx, struct bpf_insn *insn) in bpf_core_poison_insn() argument
868 prog_name, relo_idx, insn_idx); in bpf_core_poison_insn()
950 insn_idx, insn->imm, orig_val, new_val); in bpf_core_patch_insn()
956 prog_name, relo_idx, insn_idx, in bpf_core_patch_insn()
969 prog_name, relo_idx, insn_idx, new_val); in bpf_core_patch_insn()
975 prog_name, relo_idx, insn_idx); in bpf_core_patch_insn()
1014 prog_name, relo_idx, insn_idx); in bpf_core_patch_insn()
1022 insn_idx, (unsigned long long)imm, in bpf_core_patch_insn()
1030 prog_name, relo_idx, insn_idx, in bpf_core_patch_insn()
1036 prog_name, relo_idx, insn_idx, insn->code, in bpf_core_patch_insn()
[all …]
A Dbpf_gen_internal.h9 int insn_idx; member
59 bool is_typeless, int kind, int insn_idx);
A Dlibbpf.c3877 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3901 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3924 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3956 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3984 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
5424 insn_idx = insn_idx - prog->sec_insn_off; in bpf_core_apply_relo()
5794 if (insn_idx == relo->insn_idx) in cmp_relo_by_insn_idx()
5796 return insn_idx < relo->insn_idx ? -1 : 1; in cmp_relo_by_insn_idx()
5843 for (insn_idx = 0; insn_idx < prog->sec_insn_cnt; insn_idx++) { in bpf_object__reloc_code()
6271 if (a->insn_idx != b->insn_idx) in cmp_relocs()
[all …]
A Drelo_core.h92 struct bpf_insn *insn, int insn_idx,
A Dgen_loader.c577 bool is_typeless, int kind, int insn_idx) in bpf_gen__record_extern() argument
592 relo->insn_idx = insn_idx; in bpf_gen__record_extern()
858 pr_debug("gen: emit_relo (%d): %s at %d\n", relo->kind, relo->name, relo->insn_idx); in emit_relo()
859 insn = insns + sizeof(struct bpf_insn) * relo->insn_idx; in emit_relo()
/linux/kernel/bpf/
A Dverifier.c171 int insn_idx; member
869 state->refs[new_ofs].insn_idx = insn_idx; in acquire_reference_state()
1012 if (insn_idx) in pop_stack()
1013 *insn_idx = head->insn_idx; in pop_stack()
1036 elem->insn_idx = insn_idx; in push_stack()
1561 elem->insn_idx = insn_idx; in push_async_cb()
2971 insn_idx, i); in check_stack_write_var_off()
2994 insn_idx, i); in check_stack_write_var_off()
10867 if (sl->state.insn_idx != insn_idx) in is_state_visited()
11012 new->insn_idx = insn_idx; in is_state_visited()
[all …]
A 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()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
A 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()
631 int nfp_verify_insn(struct bpf_verifier_env *env, int insn_idx, in nfp_verify_insn() argument
637 meta = nfp_bpf_goto_meta(nfp_prog, meta, insn_idx); in nfp_verify_insn()
A Dmain.h566 int nfp_verify_insn(struct bpf_verifier_env *env, int insn_idx,
587 unsigned int insn_idx);
/linux/include/linux/
A Dbpf_verifier.h192 int insn_idx; member
290 u32 insn_idx; member
416 u32 insn_idx; member
493 int insn_idx, int prev_insn_idx);
A Dbpf.h529 int insn_idx, int prev_insn_idx);
834 u32 insn_idx; member
/linux/drivers/net/netdevsim/
A 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()

Completed in 66 milliseconds