Home
last modified time | relevance | path

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

12

/linux-6.12.1/tools/bpf/bpftool/
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.12.1/tools/lib/bpf/
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()
Dlibbpf_internal.h502 __u32 insn_off; member
508 __u32 insn_off; member
Drelo_core.c722 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
744 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
959 relo->kind, relo->insn_off / 8); in bpf_core_calc_relo()
Dlinker.c2507 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2536 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2578 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
Dlibbpf.h1627 __u32 insn_off, __u32 nr_skip);
Dlibbpf.c5899 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core()
5901 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6146 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local
6148 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info()
6150 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info()
6183 __u32 *insn_off = rec; in adjust_prog_btf_ext_info() local
6185 *insn_off = *insn_off / BPF_INSN_SZ + off_adj; in adjust_prog_btf_ext_info()
7817 .insn_off = relo->insn_idx * 8, in bpf_program_record_relos()
/linux-6.12.1/tools/objtool/
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()
Delf.c888 unsigned long insn_off) in elf_init_reloc_text_sym() argument
891 int addend = insn_off; in elf_init_reloc_text_sym()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
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()
Dtest_global_funcs.c96 if (rec->insn_off == 0) in subtest_ctx_arg_rewrite()
Dbtf.c5660 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument
5661 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
6731 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo()
6732 linfo[0].insn_off); in test_get_linfo()
6741 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo()
6743 i, linfo[i].insn_off, in test_get_linfo()
6744 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
/linux-6.12.1/tools/objtool/arch/loongarch/
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.12.1/tools/objtool/arch/x86/
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.12.1/kernel/bpf/
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()
Dcore.c230 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo()
238 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
243 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo()
470 if (off < linfo[i].insn_off) in bpf_adj_linfo()
475 linfo[i].insn_off += delta; in bpf_adj_linfo()
Dverifier.c2609 ret = aux->func_info[i].insn_off; in bpf_find_exception_callback_insn_off()
16662 if (krecord[i].insn_off) { in check_btf_func_early()
16665 krecord[i].insn_off); in check_btf_func_early()
16668 } else if (krecord[i].insn_off <= prev_offset) { in check_btf_func_early()
16671 krecord[i].insn_off, prev_offset); in check_btf_func_early()
16688 prev_offset = krecord[i].insn_off; in check_btf_func_early()
16742 if (env->subprog_info[i].start != krecord[i].insn_off) { in check_btf_func()
16786 aux->func_info[i].insn_off = env->subprog_info[i].start; in adjust_btf_func()
16861 if ((i && linfo[i].insn_off <= prev_offset) || in check_btf_line()
16862 linfo[i].insn_off >= prog->len) { in check_btf_line()
[all …]
/linux-6.12.1/tools/objtool/include/objtool/
Dorc.h11 struct section *insn_sec, unsigned long insn_off,
Delf.h123 unsigned long insn_off);
/linux-6.12.1/Documentation/bpf/
Dbtf.rst678 __u32 insn_off; /* [0, insn_cnt - 1] */
682 __u32 insn_off; /* [0, insn_cnt - 1] */
693 * func_info[0].insn_off must be 0.
694 * the func_info insn_off is in strictly increasing order and matches
699 * the line_info insn_off is in strictly increasing order.
818 The interpretation of ``bpf_func_info->insn_off`` and
819 ``bpf_line_info->insn_off`` is different between kernel API and ELF API. For
820 kernel API, the ``insn_off`` is the instruction offset in the unit of ``struct
821 bpf_insn``. For ELF API, the ``insn_off`` is the byte offset from the
Dllvm_reloc.rst355 __u32 insn_off;
361 * ``insn_off`` - instruction offset (in bytes) within a code section
/linux-6.12.1/include/uapi/linux/
Dbpf.h7299 __u32 insn_off; member
7307 __u32 insn_off; member
7492 __u32 insn_off; member
/linux-6.12.1/tools/include/uapi/linux/
Dbpf.h7299 __u32 insn_off; member
7307 __u32 insn_off; member
7492 __u32 insn_off; member
/linux-6.12.1/include/linux/
Dbpf_verifier.h811 u32 insn_off,
/linux-6.12.1/arch/x86/net/
Dbpf_jit_comp.c1471 s16 insn_off; in do_jit() local
1955 insn_off = insn->off; in do_jit()
2008 emit_ldsx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
2010 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()

12