/linux-6.3-rc2/tools/objtool/ |
A D | orc_gen.c | 93 struct section *insn_sec, unsigned long insn_off, in write_orc_entry() argument 106 insn_sec, insn_off)) in write_orc_entry() 116 unsigned long insn_off; member 131 entry->insn_off = offset; in orc_list_add() 240 entry->insn_sec, entry->insn_off, in orc_create()
|
A D | elf.c | 846 struct section *insn_sec, unsigned long insn_off) in elf_add_reloc_to_insn() argument 849 int addend = insn_off; in elf_add_reloc_to_insn()
|
/linux-6.3-rc2/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 | libbpf_internal.h | 460 __u32 insn_off; member 466 __u32 insn_off; member
|
A D | relo_core.c | 722 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()
|
A D | libbpf.h | 1341 __u32 insn_off, __u32 nr_skip);
|
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 | 5712 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core() 5714 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core() 5935 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local 5937 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info() 5939 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info() 5972 __u32 *insn_off = rec; in adjust_prog_btf_ext_info() local 5974 *insn_off = *insn_off / BPF_INSN_SZ + off_adj; in adjust_prog_btf_ext_info() 7089 .insn_off = relo->insn_idx * 8, in bpf_program_record_relos()
|
/linux-6.3-rc2/tools/bpf/bpftool/ |
A D | xlated_dumper.c | 244 if (record->insn_off == i) { in dump_xlated_json() 325 if (record->insn_off == i) { in dump_xlated_plain()
|
/linux-6.3-rc2/Documentation/bpf/ |
A D | btf.rst | 649 __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. 784 The interpretation of ``bpf_func_info->insn_off`` and 785 ``bpf_line_info->insn_off`` is different between kernel API and ELF API. For 786 kernel API, the ``insn_off`` is the instruction offset in the unit of ``struct 787 bpf_insn``. For ELF API, the ``insn_off`` is the byte offset from the
|
/linux-6.3-rc2/tools/objtool/include/objtool/ |
A D | elf.h | 168 struct section *insn_sec, unsigned long insn_off);
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | bpf.h | 6888 __u32 insn_off; member 6896 __u32 insn_off; member 7080 __u32 insn_off; member
|
/linux-6.3-rc2/tools/include/uapi/linux/ |
A D | bpf.h | 6888 __u32 insn_off; member 6896 __u32 insn_off; member 7080 __u32 insn_off; member
|
/linux-6.3-rc2/kernel/bpf/ |
A D | verifier.c | 288 if (!nr_linfo || insn_off >= prog->len) in find_linfo() 293 if (insn_off < linfo[i].insn_off) in find_linfo() 390 u32 insn_off, in verbose_linfo() argument 398 linfo = find_linfo(env, insn_off); in verbose_linfo() 13368 if (krecord[i].insn_off) { in check_btf_func() 13371 krecord[i].insn_off); in check_btf_func() 13545 prev_offset = linfo[i].insn_off; in check_btf_line() 13622 if (core_relo.insn_off % 8 || core_relo.insn_off / 8 >= prog->len) { in check_core_relo() 15503 if (linfo[i].insn_off >= off) in bpf_adj_linfo_after_remove() 15521 linfo[--i].insn_off = off + cnt; in bpf_adj_linfo_after_remove() [all …]
|
A D | core.c | 220 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo() 228 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo() 233 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo() 447 if (off < linfo[i].insn_off) in bpf_adj_linfo() 452 linfo[i].insn_off += delta; in bpf_adj_linfo()
|
A D | btf.c | 8323 err = bpf_core_patch_insn((void *)ctx->log, insn, relo->insn_off / 8, relo, relo_idx, in bpf_core_apply()
|
/linux-6.3-rc2/arch/x86/net/ |
A D | bpf_jit_comp.c | 1006 s16 insn_off; in do_jit() local 1373 insn_off = insn->off; in do_jit() 1388 insn_off = 0; in do_jit() 1418 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | btf.c | 5561 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument 5562 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff)) 6632 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo() 6633 linfo[0].insn_off); in test_get_linfo() 6642 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo() 6644 i, linfo[i].insn_off, in test_get_linfo() 6645 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | test_verifier.c | 462 self->func_info[1].insn_off = callback_idx; in bpf_fill_big_prog_with_loop_1()
|
/linux-6.3-rc2/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()
|