Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/objtool/
H A 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()
H A Delf.h134 struct section *insn_sec, unsigned long insn_off);
H A Delf.c762 struct section *insn_sec, unsigned long insn_off) in elf_add_reloc_to_insn() argument
765 int addend = insn_off; in elf_add_reloc_to_insn()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A 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()
H A Dlibbpf_internal.h238 __u32 insn_off; member
244 __u32 insn_off; member
315 __u32 insn_off; member
H A Dlibbpf.c5146 prog->name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
5168 prog->name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
5398 relo->kind, relo->insn_off / 8); in bpf_core_calc_relo()
5478 if (relo->insn_off % BPF_INSN_SZ) in bpf_core_patch_insn()
5480 insn_idx = relo->insn_off / BPF_INSN_SZ; in bpf_core_patch_insn()
5883 prog->name, relo_idx, relo->insn_off, err); in bpf_core_apply_relo()
5951 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6073 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local
6075 if (insn_off < prog->sec_insn_off) in adjust_prog_btf_ext_info()
6077 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt) in adjust_prog_btf_ext_info()
[all …]
H A Dlibbpf.h622 __u32 insn_off, __u32 nr_skip);
H A 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()
/OK3568_Linux_fs/yocto/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/
H A D0001-Vendor-just-enough-extra-headers-to-allow-libbpf-to-.patch71 + * - insn_off - instruction offset (in bytes) within a BPF program that needs
115 + __u32 insn_off;
124 uint32_t insn_off;
/OK3568_Linux_fs/kernel/Documentation/bpf/
H A 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
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dxlated_dumper.c235 if (record->insn_off == i) { in dump_xlated_json()
316 if (record->insn_off == i) { in dump_xlated_plain()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A 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()
8750 if (krecord[i].insn_off) { in check_btf_func()
8753 krecord[i].insn_off); in check_btf_func()
8756 } else if (krecord[i].insn_off <= prev_offset) { in check_btf_func()
8759 krecord[i].insn_off, prev_offset); in check_btf_func()
8763 if (env->subprog_info[i].start != krecord[i].insn_off) { in check_btf_func()
[all …]
H A Dcore.c203 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo()
211 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
216 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()
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dbpf.h4965 __u32 insn_off; member
4973 __u32 insn_off; member
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbpf.h4965 __u32 insn_off; member
4973 __u32 insn_off; member
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/bpf/
H A 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()