Home
last modified time | relevance | path

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

12

/linux/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("%d: ", insn_off); in dump_xlated_for_graph()
/linux/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.h499 __u32 insn_off; member
505 __u32 insn_off; member
H A 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()
H A Dlinker.c2486 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2515 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2557 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
H A Dlibbpf.h1599 __u32 insn_off, __u32 nr_skip);
H A Dlibbpf.c5861 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core()
5863 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6108 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local
6110 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info()
6112 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info()
6145 __u32 *insn_off = rec; in adjust_prog_btf_ext_info() local
6147 *insn_off = *insn_off / BPF_INSN_SZ + off_adj; in adjust_prog_btf_ext_info()
7779 .insn_off = relo->insn_idx * 8, in bpf_program_record_relos()
/linux/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.c888 unsigned long insn_off) in elf_init_reloc_text_sym() argument
891 int addend = insn_off; in elf_init_reloc_text_sym()
/linux/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/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/tools/objtool/include/objtool/
H A Dorc.h11 struct section *insn_sec, unsigned long insn_off,
H A Delf.h122 unsigned long insn_off);
/linux/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.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()
H A Dverifier.c2555 ret = aux->func_info[i].insn_off; in bpf_find_exception_callback_insn_off()
16127 if (krecord[i].insn_off) { in check_btf_func_early()
16130 krecord[i].insn_off); in check_btf_func_early()
16136 krecord[i].insn_off, prev_offset); in check_btf_func_early()
16153 prev_offset = krecord[i].insn_off; in check_btf_func_early()
16361 prev_offset = linfo[i].insn_off; in check_btf_line()
16438 if (core_relo.insn_off % 8 || core_relo.insn_off / 8 >= prog->len) { in check_core_relo()
18797 if (linfo[i].insn_off >= off) in bpf_adj_linfo_after_remove()
18803 if (linfo[i].insn_off < off + cnt) in bpf_adj_linfo_after_remove()
18815 linfo[--i].insn_off = off + cnt; in bpf_adj_linfo_after_remove()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_global_funcs.c96 if (rec->insn_off == 0) in subtest_ctx_arg_rewrite()
H A Dbtf.c5626 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument
5627 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
6697 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo()
6698 linfo[0].insn_off); in test_get_linfo()
6707 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo()
6709 i, linfo[i].insn_off, in test_get_linfo()
6710 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
/linux/Documentation/bpf/
H A Dbtf.rst647 __u32 insn_off; /* [0, insn_cnt - 1] */
651 __u32 insn_off; /* [0, insn_cnt - 1] */
662 * func_info[0].insn_off must be 0.
663 * the func_info insn_off is in strictly increasing order and matches
668 * the line_info insn_off is in strictly increasing order.
787 The interpretation of ``bpf_func_info->insn_off`` and
788 ``bpf_line_info->insn_off`` is different between kernel API and ELF API. For
789 kernel API, the ``insn_off`` is the instruction offset in the unit of ``struct
790 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/include/uapi/linux/
H A Dbpf.h7290 __u32 insn_off; member
7298 __u32 insn_off; member
7483 __u32 insn_off; member
/linux/tools/include/uapi/linux/
H A Dbpf.h7290 __u32 insn_off; member
7298 __u32 insn_off; member
7483 __u32 insn_off; member
/linux/include/linux/
H A Dbpf_verifier.h777 u32 insn_off,
/linux/arch/x86/net/
H A Dbpf_jit_comp.c1381 s16 insn_off; in do_jit() local
1865 insn_off = insn->off; in do_jit()
1918 emit_ldsx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
1920 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c460 self->func_info[1].insn_off = callback_idx; in bpf_fill_big_prog_with_loop_1()

12