Home
last modified time | relevance | path

Searched refs:insn_off (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.15/tools/bpf/bpftool/
H A Dxlated_dumper.c248 if (record->insn_off == i) { in dump_xlated_json()
329 if (record->insn_off == i) { in dump_xlated_plain()
388 unsigned int insn_off; in dump_xlated_for_graph() local
396 insn_off = (unsigned int)(cur - insn_start + start_idx); in dump_xlated_for_graph()
398 if (record->insn_off == insn_off) { in dump_xlated_for_graph()
411 linfo = bpf_prog_linfo__lfind(prog_linfo, insn_off, 0); in dump_xlated_for_graph()
418 printf("%u: ", insn_off); in dump_xlated_for_graph()
/linux-6.15/tools/lib/bpf/
H A Dbpf_prog_linfo.c220 __u32 insn_off, __u32 nr_skip) in bpf_prog_linfo__lfind() argument
233 if (insn_off < linfo->insn_off) in bpf_prog_linfo__lfind()
238 if (insn_off < linfo->insn_off) in bpf_prog_linfo__lfind()
H A Dlibbpf_internal.h506 __u32 insn_off; member
512 __u32 insn_off; member
524 i->insn_off = bswap_32(i->insn_off); in bpf_func_info_bswap()
530 i->insn_off = bswap_32(i->insn_off); in bpf_line_info_bswap()
538 i->insn_off = bswap_32(i->insn_off); in bpf_core_relo_bswap()
H A Drelo_core.c728 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
750 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
975 relo->kind, relo->insn_off / 8); in bpf_core_calc_relo()
H A Dlibbpf.h1644 __u32 insn_off, __u32 nr_skip);
H A Dlinker.c2663 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2692 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2734 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
H A Dlibbpf.c5962 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core()
5964 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6209 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local
6211 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info()
6213 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info()
6246 __u32 *insn_off = rec; in adjust_prog_btf_ext_info() local
6248 *insn_off = *insn_off / BPF_INSN_SZ + off_adj; in adjust_prog_btf_ext_info()
7881 .insn_off = relo->insn_idx * 8, in bpf_program_record_relos()
/linux-6.15/tools/objtool/
H A Dorc_gen.c21 unsigned long insn_off; member
36 entry->insn_off = offset; in orc_list_add()
141 entry->insn_sec, entry->insn_off, in orc_create()
H A Delf.c889 unsigned long insn_off) in elf_init_reloc_text_sym() argument
892 int addend = insn_off; in elf_init_reloc_text_sym()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dcore_reloc_raw.c58 .insn_off = 0, in test_bad_local_id()
64 .insn_off = 0, /* patch first instruction (r0 = 0) */ in test_bad_local_id()
H A Dtest_global_funcs.c96 if (rec->insn_off == 0) in subtest_ctx_arg_rewrite()
H A Dbtf.c5675 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument
5676 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
6746 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo()
6747 linfo[0].insn_off); in test_get_linfo()
6756 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo()
6758 i, linfo[i].insn_off, in test_get_linfo()
6759 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
/linux-6.15/tools/objtool/arch/loongarch/
H A Dorc.c103 struct section *insn_sec, unsigned long insn_off, in write_orc_entry() argument
114 insn_sec, insn_off)) in write_orc_entry()
/linux-6.15/tools/objtool/arch/x86/
H A Dorc.c102 struct section *insn_sec, unsigned long insn_off, in write_orc_entry() argument
115 insn_sec, insn_off)) in write_orc_entry()
/linux-6.15/tools/objtool/include/objtool/
H A Dorc.h11 struct section *insn_sec, unsigned long insn_off,
H A Delf.h124 unsigned long insn_off);
/linux-6.15/kernel/bpf/
H A Dlog.c333 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument
343 if (!nr_linfo || insn_off >= prog->len) in find_linfo()
364 if (linfo[m].insn_off <= insn_off) in find_linfo()
382 u32 insn_off, in verbose_linfo() argument
393 linfo = find_linfo(env, insn_off); in verbose_linfo()
H A Dcore.c231 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo()
239 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
244 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo()
471 if (off < linfo[i].insn_off) in bpf_adj_linfo()
476 linfo[i].insn_off += delta; in bpf_adj_linfo()
H A Dverifier.c2951 ret = aux->func_info[i].insn_off; in bpf_find_exception_callback_insn_off()
17749 if (krecord[i].insn_off) { in check_btf_func_early()
17752 krecord[i].insn_off); in check_btf_func_early()
17758 krecord[i].insn_off, prev_offset); in check_btf_func_early()
17775 prev_offset = krecord[i].insn_off; in check_btf_func_early()
17983 prev_offset = linfo[i].insn_off; in check_btf_line()
18060 if (core_relo.insn_off % 8 || core_relo.insn_off / 8 >= prog->len) { in check_core_relo()
20452 if (linfo[i].insn_off >= off) in bpf_adj_linfo_after_remove()
20458 if (linfo[i].insn_off < off + cnt) in bpf_adj_linfo_after_remove()
20470 linfo[--i].insn_off = off + cnt; in bpf_adj_linfo_after_remove()
[all …]
/linux-6.15/Documentation/bpf/
H A Dbtf.rst695 __u32 insn_off; /* [0, insn_cnt - 1] */
699 __u32 insn_off; /* [0, insn_cnt - 1] */
710 * func_info[0].insn_off must be 0.
711 * the func_info insn_off is in strictly increasing order and matches
716 * the line_info insn_off is in strictly increasing order.
835 The interpretation of ``bpf_func_info->insn_off`` and
836 ``bpf_line_info->insn_off`` is different between kernel API and ELF API. For
837 kernel API, the ``insn_off`` is the instruction offset in the unit of ``struct
838 bpf_insn``. For ELF API, the ``insn_off`` is the byte offset from the
H A Dllvm_reloc.rst355 __u32 insn_off;
361 * ``insn_off`` - instruction offset (in bytes) within a code section
/linux-6.15/tools/include/uapi/linux/
H A Dbpf.h7349 __u32 insn_off; member
7357 __u32 insn_off; member
7542 __u32 insn_off; member
/linux-6.15/include/uapi/linux/
H A Dbpf.h7349 __u32 insn_off; member
7357 __u32 insn_off; member
7542 __u32 insn_off; member
/linux-6.15/include/linux/
H A Dbpf_verifier.h838 u32 insn_off,
/linux-6.15/arch/x86/net/
H A Dbpf_jit_comp.c1621 s16 insn_off; in do_jit() local
2113 insn_off = insn->off; in do_jit()
2166 emit_ldsx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
2168 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()

12