Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/objtool/
Dorc_gen.c91 struct section *insn_sec, unsigned long insn_off, in write_orc_entry() argument
102 insn_sec, insn_off)) in write_orc_entry()
112 unsigned long insn_off; member
127 entry->insn_off = offset; in orc_list_add()
236 entry->insn_sec, entry->insn_off, in orc_create()
Delf.c542 struct section *insn_sec, unsigned long insn_off) in elf_add_reloc_to_insn() argument
549 addend = insn_off; in elf_add_reloc_to_insn()
556 sym = find_symbol_containing(insn_sec, insn_off); in elf_add_reloc_to_insn()
562 sym = find_symbol_containing(insn_sec, insn_off - 1); in elf_add_reloc_to_insn()
566 WARN("can't find symbol containing %s+0x%lx", insn_sec->name, insn_off); in elf_add_reloc_to_insn()
570 addend = insn_off - sym->offset; in elf_add_reloc_to_insn()
Delf.h134 struct section *insn_sec, unsigned long insn_off);
/kernel/linux/linux-5.10/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.h238 __u32 insn_off; member
244 __u32 insn_off; member
315 __u32 insn_off; member
Dlibbpf.c5144 prog->name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
5166 prog->name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
5396 relo->kind, relo->insn_off / 8); in bpf_core_calc_relo()
5476 if (relo->insn_off % BPF_INSN_SZ) in bpf_core_patch_insn()
5478 insn_idx = relo->insn_off / BPF_INSN_SZ; in bpf_core_patch_insn()
5881 prog->name, relo_idx, relo->insn_off, err); in bpf_core_apply_relo()
5948 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6063 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local
6065 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info()
6067 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info()
[all …]
Dlibbpf.h622 __u32 insn_off, __u32 nr_skip);
Dbtf.c2592 __u32 *insn_off; in btf_ext_reloc_info() local
2594 insn_off = data + existing_len + (i * record_size); in btf_ext_reloc_info()
2595 *insn_off = *insn_off / sizeof(struct bpf_insn) + in btf_ext_reloc_info()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dxlated_dumper.c235 if (record->insn_off == i) { in dump_xlated_json()
316 if (record->insn_off == i) { in dump_xlated_plain()
/kernel/linux/linux-5.10/Documentation/bpf/
Dbtf.rst553 __u32 insn_off; /* [0, insn_cnt - 1] */
557 __u32 insn_off; /* [0, insn_cnt - 1] */
568 * func_info[0].insn_off must be 0.
569 * the func_info insn_off is in strictly increasing order and matches
574 * the line_info insn_off is in strictly increasing order.
688 The interpretation of ``bpf_func_info->insn_off`` and
689 ``bpf_line_info->insn_off`` is different between kernel API and ELF API. For
690 kernel API, the ``insn_off`` is the instruction offset in the unit of ``struct
691 bpf_insn``. For ELF API, the ``insn_off`` is the byte offset from the
/kernel/linux/linux-5.10/kernel/bpf/
Dverifier.c250 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument
259 if (!nr_linfo || insn_off >= prog->len) in find_linfo()
264 if (insn_off < linfo[i].insn_off) in find_linfo()
358 u32 insn_off, in verbose_linfo() argument
366 linfo = find_linfo(env, insn_off); in verbose_linfo()
8805 if (krecord[i].insn_off) { in check_btf_func()
8808 krecord[i].insn_off); in check_btf_func()
8811 } else if (krecord[i].insn_off <= prev_offset) { in check_btf_func()
8814 krecord[i].insn_off, prev_offset); in check_btf_func()
8818 if (env->subprog_info[i].start != krecord[i].insn_off) { in check_btf_func()
[all …]
Dcore.c200 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo()
208 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
213 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo()
431 if (off < linfo[i].insn_off) in bpf_adj_linfo()
436 linfo[i].insn_off += delta; in bpf_adj_linfo()
/kernel/linux/linux-5.10/tools/include/uapi/linux/
Dbpf.h4964 __u32 insn_off; member
4972 __u32 insn_off; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dbpf.h4964 __u32 insn_off; member
4972 __u32 insn_off; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dbpf.h1059 __u32 insn_off; member
1065 __u32 insn_off; member
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbtf.c4926 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument
4927 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
5997 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo()
5998 linfo[0].insn_off); in test_get_linfo()
6007 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo()
6009 i, linfo[i].insn_off, in test_get_linfo()
6010 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/
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()