Home
last modified time | relevance | path

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

/openbmc/linux/tools/objtool/
H A Dorc_gen.c109 struct section *insn_sec, unsigned long insn_off, in write_orc_entry() argument
122 insn_sec, insn_off)) in write_orc_entry()
132 unsigned long insn_off; member
147 entry->insn_off = offset; in orc_list_add()
252 entry->insn_sec, entry->insn_off, in orc_create()
H A Delf.c890 unsigned long insn_off) in elf_init_reloc_text_sym() argument
893 int addend = insn_off; in elf_init_reloc_text_sym()
/openbmc/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.h477 __u32 insn_off; member
483 __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.c2467 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2496 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2538 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
H A Dlibbpf.h1465 __u32 insn_off, __u32 nr_skip);
H A Dlibbpf.c5829 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core()
5831 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6076 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local
6078 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info()
6080 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info()
6113 __u32 *insn_off = rec; in adjust_prog_btf_ext_info() local
6115 *insn_off = *insn_off / BPF_INSN_SZ + off_adj; in adjust_prog_btf_ext_info()
7286 .insn_off = relo->insn_idx * 8, in bpf_program_record_relos()
/openbmc/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()
/openbmc/linux/Documentation/bpf/
H A Dbtf.rst649 __u32 insn_off; /* [0, insn_cnt - 1] */
653 __u32 insn_off; /* [0, insn_cnt - 1] */
664 * func_info[0].insn_off must be 0.
665 * the func_info insn_off is in strictly increasing order and matches
670 * the line_info insn_off is in strictly increasing order.
789 The interpretation of ``bpf_func_info->insn_off`` and
790 ``bpf_line_info->insn_off`` is different between kernel API and ELF API. For
791 kernel API, the ``insn_off`` is the instruction offset in the unit of ``struct
792 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
/openbmc/linux/tools/objtool/include/objtool/
H A Delf.h121 unsigned long insn_off);
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h7108 __u32 insn_off; member
7116 __u32 insn_off; member
7306 __u32 insn_off; member
/openbmc/linux/include/uapi/linux/
H A Dbpf.h7108 __u32 insn_off; member
7116 __u32 insn_off; member
7306 __u32 insn_off; member
/openbmc/linux/kernel/bpf/
H A Dcore.c221 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo()
229 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
234 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo()
461 if (off < linfo[i].insn_off) in bpf_adj_linfo()
466 linfo[i].insn_off += delta; in bpf_adj_linfo()
H A Dverifier.c350 if (!nr_linfo || insn_off >= prog->len) in find_linfo()
355 if (insn_off < linfo[i].insn_off) in find_linfo()
383 u32 insn_off, in verbose_linfo() argument
391 linfo = find_linfo(env, insn_off); in verbose_linfo()
15515 if (krecord[i].insn_off) { in check_btf_func()
15518 krecord[i].insn_off); in check_btf_func()
15692 prev_offset = linfo[i].insn_off; in check_btf_line()
15769 if (core_relo.insn_off % 8 || core_relo.insn_off / 8 >= prog->len) { in check_core_relo()
17968 if (linfo[i].insn_off >= off) in bpf_adj_linfo_after_remove()
17986 linfo[--i].insn_off = off + cnt; in bpf_adj_linfo_after_remove()
[all …]
H A Dbtf.c8472 err = bpf_core_patch_insn((void *)ctx->log, insn, relo->insn_off / 8, relo, relo_idx, in bpf_core_apply()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c1065 s16 insn_off; in do_jit() local
1456 insn_off = insn->off; in do_jit()
1509 emit_ldsx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
1511 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c5597 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument
5598 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
6668 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo()
6669 linfo[0].insn_off); in test_get_linfo()
6678 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo()
6680 i, linfo[i].insn_off, in test_get_linfo()
6681 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c458 self->func_info[1].insn_off = callback_idx; in bpf_fill_big_prog_with_loop_1()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Djit.c2761 s16 insn_off = meta->insn.off - range_start; in mem_ldx_data_from_pktcache_unaligned() local
2765 u8 idx = insn_off / REG_WIDTH; in mem_ldx_data_from_pktcache_unaligned()
2766 u8 off = insn_off % REG_WIDTH; in mem_ldx_data_from_pktcache_unaligned()