Home
last modified time | relevance | path

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

/Linux-v6.6/tools/objtool/
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()
Delf.c890 unsigned long insn_off) in elf_init_reloc_text_sym() argument
893 int addend = insn_off; in elf_init_reloc_text_sym()
/Linux-v6.6/tools/bpf/bpftool/
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()
/Linux-v6.6/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.h463 __u32 insn_off; member
469 __u32 insn_off; member
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()
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()
Dlibbpf.h1465 __u32 insn_off, __u32 nr_skip);
Dlibbpf.c5823 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core()
5825 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6070 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local
6072 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info()
6074 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info()
6107 __u32 *insn_off = rec; in adjust_prog_btf_ext_info() local
6109 *insn_off = *insn_off / BPF_INSN_SZ + off_adj; in adjust_prog_btf_ext_info()
7280 .insn_off = relo->insn_idx * 8, in bpf_program_record_relos()
/Linux-v6.6/Documentation/bpf/
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
Dllvm_reloc.rst355 __u32 insn_off;
361 * ``insn_off`` - instruction offset (in bytes) within a code section
/Linux-v6.6/tools/objtool/include/objtool/
Delf.h121 unsigned long insn_off);
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h7095 __u32 insn_off; member
7103 __u32 insn_off; member
7293 __u32 insn_off; member
/Linux-v6.6/include/uapi/linux/
Dbpf.h7095 __u32 insn_off; member
7103 __u32 insn_off; member
7293 __u32 insn_off; member
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp.c1061 s16 insn_off; in do_jit() local
1452 insn_off = insn->off; in do_jit()
1468 insn_off = 0; in do_jit()
1500 emit_ldsx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
1502 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
/Linux-v6.6/kernel/bpf/
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()
457 if (off < linfo[i].insn_off) in bpf_adj_linfo()
462 linfo[i].insn_off += delta; in bpf_adj_linfo()
Dverifier.c341 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument
350 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()
15047 if (krecord[i].insn_off) { in check_btf_func()
15050 krecord[i].insn_off); in check_btf_func()
15053 } else if (krecord[i].insn_off <= prev_offset) { in check_btf_func()
15056 krecord[i].insn_off, prev_offset); in check_btf_func()
15060 if (env->subprog_info[i].start != krecord[i].insn_off) { in check_btf_func()
[all …]
Dbtf.c8471 err = bpf_core_patch_insn((void *)ctx->log, insn, relo->insn_off / 8, relo, relo_idx, in bpf_core_apply()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dbtf.c5601 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument
5602 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
6672 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo()
6673 linfo[0].insn_off); in test_get_linfo()
6682 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo()
6684 i, linfo[i].insn_off, in test_get_linfo()
6685 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_verifier.c458 self->func_info[1].insn_off = callback_idx; in bpf_fill_big_prog_with_loop_1()
/Linux-v6.6/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()