/linux/tools/objtool/ |
A D | orc_gen.c | 92 struct section *insn_sec, unsigned long insn_off, in write_orc_entry() argument 105 insn_sec, insn_off)) in write_orc_entry() 115 unsigned long insn_off; member 130 entry->insn_off = offset; in orc_list_add() 239 entry->insn_sec, entry->insn_off, in orc_create()
|
A D | elf.c | 520 struct section *insn_sec, unsigned long insn_off) in elf_add_reloc_to_insn() argument 527 addend = insn_off; in elf_add_reloc_to_insn() 534 sym = find_symbol_containing(insn_sec, insn_off); in elf_add_reloc_to_insn() 540 sym = find_symbol_containing(insn_sec, insn_off - 1); in elf_add_reloc_to_insn() 544 WARN("can't find symbol containing %s+0x%lx", insn_sec->name, insn_off); in elf_add_reloc_to_insn() 548 addend = insn_off - sym->offset; in elf_add_reloc_to_insn()
|
/linux/tools/lib/bpf/ |
A D | bpf_prog_linfo.c | 220 __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()
|
A D | relo_core.h | 72 __u32 insn_off; member
|
A D | libbpf_internal.h | 414 __u32 insn_off; member 420 __u32 insn_off; member
|
A D | relo_core.c | 602 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo() 624 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo() 854 relo->kind, relo->insn_off / 8); in bpf_core_calc_relo() 1290 prog_name, relo_idx, relo->insn_off / 8, err); in bpf_core_apply_relo_insn()
|
A D | linker.c | 2461 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext() 2490 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext() 2532 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
|
A D | libbpf.h | 850 __u32 insn_off, __u32 nr_skip);
|
A D | btf.c | 2806 __u32 *insn_off; in btf_ext_reloc_info() local 2808 insn_off = data + existing_len + (i * record_size); in btf_ext_reloc_info() 2809 *insn_off = *insn_off / sizeof(struct bpf_insn) + insns_cnt; in btf_ext_reloc_info()
|
A D | libbpf.c | 5417 if (relo->insn_off % BPF_INSN_SZ) in bpf_core_apply_relo() 5419 insn_idx = relo->insn_off / BPF_INSN_SZ; in bpf_core_apply_relo() 5439 prog - prog->obj->programs, relo->insn_off / 8, in bpf_core_apply_relo() 5522 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core() 5669 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local 5671 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info() 5673 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info() 5706 __u32 *insn_off = rec; in adjust_prog_btf_ext_info() local 5708 *insn_off = *insn_off / BPF_INSN_SZ + off_adj; in adjust_prog_btf_ext_info()
|
/linux/Documentation/bpf/ |
A D | btf.rst | 593 __u32 insn_off; /* [0, insn_cnt - 1] */ 597 __u32 insn_off; /* [0, insn_cnt - 1] */ 608 * func_info[0].insn_off must be 0. 609 * the func_info insn_off is in strictly increasing order and matches 614 * the line_info insn_off is in strictly increasing order. 728 The interpretation of ``bpf_func_info->insn_off`` and 729 ``bpf_line_info->insn_off`` is different between kernel API and ELF API. For 730 kernel API, the ``insn_off`` is the instruction offset in the unit of ``struct 731 bpf_insn``. For ELF API, the ``insn_off`` is the byte offset from the
|
/linux/tools/bpf/bpftool/ |
A D | xlated_dumper.c | 241 if (record->insn_off == i) { in dump_xlated_json() 322 if (record->insn_off == i) { in dump_xlated_plain()
|
/linux/tools/objtool/include/objtool/ |
A D | elf.h | 141 struct section *insn_sec, unsigned long insn_off);
|
/linux/kernel/bpf/ |
A D | core.c | 207 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo() 215 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo() 220 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo() 434 if (off < linfo[i].insn_off) in bpf_adj_linfo() 439 linfo[i].insn_off += delta; in bpf_adj_linfo()
|
A D | verifier.c | 275 if (!nr_linfo || insn_off >= prog->len) in find_linfo() 280 if (insn_off < linfo[i].insn_off) in find_linfo() 374 u32 insn_off, in verbose_linfo() argument 382 linfo = find_linfo(env, insn_off); in verbose_linfo() 10056 if (krecord[i].insn_off) { in check_btf_func() 10059 krecord[i].insn_off); in check_btf_func() 10099 prev_offset = krecord[i].insn_off; in check_btf_func() 10234 prev_offset = linfo[i].insn_off; in check_btf_line() 12103 if (linfo[i].insn_off >= off) in bpf_adj_linfo_after_remove() 12121 linfo[--i].insn_off = off + cnt; in bpf_adj_linfo_after_remove() [all …]
|
/linux/tools/include/uapi/linux/ |
A D | bpf.h | 6236 __u32 insn_off; member 6244 __u32 insn_off; member
|
/linux/include/uapi/linux/ |
A D | bpf.h | 6236 __u32 insn_off; member 6244 __u32 insn_off; member
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | btf.c | 5360 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument 5361 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff)) 6431 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo() 6432 linfo[0].insn_off); in test_get_linfo() 6441 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo() 6443 i, linfo[i].insn_off, in test_get_linfo() 6444 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
|
/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
A D | jit.c | 2761 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()
|