| /linux-5.15/tools/objtool/ |
| A D | orc_gen.c | 86 struct section *insn_sec, unsigned long insn_off, in write_orc_entry() argument 99 insn_sec, insn_off)) in write_orc_entry() 109 unsigned long insn_off; member 124 entry->insn_off = offset; in orc_list_add() 232 entry->insn_sec, entry->insn_off, in orc_create()
|
| A D | elf.c | 519 struct section *insn_sec, unsigned long insn_off) in elf_add_reloc_to_insn() argument 526 addend = insn_off; in elf_add_reloc_to_insn() 533 sym = find_symbol_containing(insn_sec, insn_off); in elf_add_reloc_to_insn() 539 sym = find_symbol_containing(insn_sec, insn_off - 1); in elf_add_reloc_to_insn() 543 WARN("can't find symbol containing %s+0x%lx", insn_sec->name, insn_off); in elf_add_reloc_to_insn() 547 addend = insn_off - sym->offset; in elf_add_reloc_to_insn()
|
| /linux-5.15/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 | 370 __u32 insn_off; member 376 __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 | libbpf.h | 745 __u32 insn_off, __u32 nr_skip);
|
| A D | btf.c | 2715 __u32 *insn_off; in btf_ext_reloc_info() local 2717 insn_off = data + existing_len + (i * record_size); in btf_ext_reloc_info() 2718 *insn_off = *insn_off / sizeof(struct bpf_insn) + insns_cnt; in btf_ext_reloc_info()
|
| A D | linker.c | 2462 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext() 2491 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext() 2533 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
|
| A D | libbpf.c | 5127 if (relo->insn_off % BPF_INSN_SZ) in bpf_core_apply_relo() 5129 insn_idx = relo->insn_off / BPF_INSN_SZ; in bpf_core_apply_relo() 5149 prog - prog->obj->programs, relo->insn_off / 8, in bpf_core_apply_relo() 5232 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core() 5373 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local 5375 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info() 5377 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info() 5410 __u32 *insn_off = rec; in adjust_prog_btf_ext_info() local 5412 *insn_off = *insn_off / BPF_INSN_SZ + off_adj; in adjust_prog_btf_ext_info()
|
| /linux-5.15/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-5.15/Documentation/bpf/ |
| A D | btf.rst | 566 __u32 insn_off; /* [0, insn_cnt - 1] */ 570 __u32 insn_off; /* [0, insn_cnt - 1] */ 581 * func_info[0].insn_off must be 0. 582 * the func_info insn_off is in strictly increasing order and matches 587 * the line_info insn_off is in strictly increasing order. 701 The interpretation of ``bpf_func_info->insn_off`` and 702 ``bpf_line_info->insn_off`` is different between kernel API and ELF API. For 703 kernel API, the ``insn_off`` is the instruction offset in the unit of ``struct 704 bpf_insn``. For ELF API, the ``insn_off`` is the byte offset from the
|
| /linux-5.15/tools/objtool/include/objtool/ |
| A D | elf.h | 137 struct section *insn_sec, unsigned long insn_off);
|
| /linux-5.15/kernel/bpf/ |
| A D | verifier.c | 272 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument 281 if (!nr_linfo || insn_off >= prog->len) in find_linfo() 286 if (insn_off < linfo[i].insn_off) in find_linfo() 380 u32 insn_off, in verbose_linfo() argument 388 linfo = find_linfo(env, insn_off); in verbose_linfo() 9826 if (krecord[i].insn_off) { in check_btf_func() 9829 krecord[i].insn_off); in check_btf_func() 9832 } else if (krecord[i].insn_off <= prev_offset) { in check_btf_func() 9835 krecord[i].insn_off, prev_offset); in check_btf_func() 9839 if (env->subprog_info[i].start != krecord[i].insn_off) { in check_btf_func() [all …]
|
| A D | core.c | 206 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo() 214 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo() 219 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo() 426 if (off < linfo[i].insn_off) in bpf_adj_linfo() 431 linfo[i].insn_off += delta; in bpf_adj_linfo()
|
| /linux-5.15/tools/include/uapi/linux/ |
| A D | bpf.h | 6166 __u32 insn_off; member 6174 __u32 insn_off; member
|
| /linux-5.15/include/uapi/linux/ |
| A D | bpf.h | 6166 __u32 insn_off; member 6174 __u32 insn_off; member
|
| /linux-5.15/tools/testing/selftests/bpf/prog_tests/ |
| A D | btf.c | 5081 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument 5082 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff)) 6152 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo() 6153 linfo[0].insn_off); in test_get_linfo() 6162 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo() 6164 i, linfo[i].insn_off, in test_get_linfo() 6165 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
|
| /linux-5.15/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()
|