Home
last modified time | relevance | path

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

/linux/tools/bpf/bpftool/
H A 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("%u: ", insn_off); in dump_xlated_for_graph()
/linux/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.h520 __u32 insn_off; member
526 __u32 insn_off; member
538 i->insn_off = bswap_32(i->insn_off); in bpf_func_info_bswap()
544 i->insn_off = bswap_32(i->insn_off); in bpf_line_info_bswap()
552 i->insn_off = bswap_32(i->insn_off); in bpf_core_relo_bswap()
H A Dlibbpf.c6073 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core()
6075 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6258 __u64 insn_off; in create_jt_map() local
6310 insn_off = jt[i]/sizeof(struct bpf_insn); in create_jt_map()
6312 insn_off -= prog->subprogs[subprog_idx].sec_insn_off; in create_jt_map()
6313 insn_off += prog->subprogs[subprog_idx].sub_insn_off; in create_jt_map()
6315 insn_off -= prog->sec_insn_off; in create_jt_map()
6322 if (insn_off > UINT32_MAX) { in create_jt_map()
6329 val.orig_off = insn_off; in create_jt_map()
6489 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local
[all …]
H A Dlinker.c2665 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2694 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
2736 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext()
/linux/tools/objtool/
H A Dorc_gen.c20 unsigned long insn_off;
35 entry->insn_off = offset; in orc_list_add()
144 entry->insn_sec, entry->insn_off, in orc_create()
21 unsigned long insn_off; global() member
H A Delf.c1018 unsigned long insn_off) in elf_init_reloc_text_sym() argument
1021 s64 addend = insn_off; in elf_init_reloc_text_sym()
/linux/tools/objtool/include/objtool/
H A Dwarn.h154 char *insn_off = offstr(insn->sec, insn->offset); \
156 func->name, insn_off, (unsigned long long)checksum);\
157 free(insn_off); \
H A Dorc.h11 struct section *insn_sec, unsigned long insn_off,
H A Delf.h170 unsigned long insn_off);
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcore_reloc_raw.c58 .insn_off = 0, in test_bad_local_id()
64 .insn_off = 0, /* patch first instruction (r0 = 0) */ in test_bad_local_id()
H A Dtest_global_funcs.c96 if (rec->insn_off == 0) in subtest_ctx_arg_rewrite()
H A Dbtf.c5675 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \
5676 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
5794 .descr = "func_type (Incorrect bpf_func_info.insn_off)",
5852 .descr = "line_info (No subprog. insn_off >= prog->len)",
5876 .err_str = "line_info[4].insn_off",
6119 .err_str = "Invalid line_info[2].insn_off",
6746 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo()
6747 linfo[0].insn_off); in test_get_linfo()
6756 if (CHECK(linfo[i].insn_off < in test_get_linfo()
5660 BPF_LINE_INFO_ENC(insn_off,file_off,line_off,line_num,line_col) global() argument
[all...]
/linux/tools/objtool/arch/x86/
H A Ddecode.c101 unsigned long *insn_off, unsigned int *insn_len) in scan_for_insn() argument
112 *insn_off = o; in scan_for_insn()
125 unsigned long insn_off; in arch_adjusted_addend() local
135 &insn_off, &insn_len); in arch_adjusted_addend()
137 return addend + insn_off + insn_len - reloc_offset(reloc); in arch_adjusted_addend()
/linux/kernel/bpf/
H A Dcore.c241 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo()
249 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
254 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()
3337 insn_start = linfo[0].insn_off; in bpf_prog_get_file_line()
3342 linfo[i].insn_off >= insn_start && linfo[i].insn_off < insn_end; i++) { in bpf_prog_get_file_line()
H A Dverifier.c3154 ret = aux->func_info[i].insn_off; in bpf_find_exception_callback_insn_off()
19154 if (krecord[i].insn_off) { in check_btf_func_early()
19157 krecord[i].insn_off); in check_btf_func_early()
19160 } else if (krecord[i].insn_off <= prev_offset) { in check_btf_func_early()
19163 krecord[i].insn_off, prev_offset); in check_btf_func_early()
19180 prev_offset = krecord[i].insn_off; in check_btf_func_early()
19235 if (env->subprog_info[i].start != krecord[i].insn_off) { in check_btf_func()
19279 aux->func_info[i].insn_off = env->subprog_info[i].start; in adjust_btf_func()
19354 if ((i && linfo[i].insn_off <= prev_offset) || in check_btf_line()
19355 linfo[i].insn_off >= prog->len) { in check_btf_line()
[all …]
H A Dbtf.c9510 err = bpf_core_patch_insn((void *)ctx->log, insn, relo->insn_off / 8, relo, relo_idx, in bpf_core_apply()
/linux/include/uapi/linux/
H A Dbpf.h7452 __u32 insn_off;
7460 __u32 insn_off;
7605 * - insn_off - instruction offset (in bytes) within a BPF program that needs
7649 __u32 insn_off;
7417 __u32 insn_off; global() member
7425 __u32 insn_off; global() member
7614 __u32 insn_off; global() member
/linux/tools/include/uapi/linux/
H A Dbpf.h7451 __u32 insn_off;
7459 __u32 insn_off;
7604 * - insn_off - instruction offset (in bytes) within a BPF program that needs
7648 __u32 insn_off;
7417 __u32 insn_off; global() member
7425 __u32 insn_off; global() member
7614 __u32 insn_off; global() member
/linux/Documentation/bpf/
H A Dllvm_reloc.rst355 __u32 insn_off;
361 * ``insn_off`` - instruction offset (in bytes) within a code section
/linux/arch/x86/net/
H A Dbpf_jit_comp.c1724 s16 insn_off; in do_jit() local
2245 insn_off = insn->off; in do_jit()
2298 emit_ldsx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
2300 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
/linux/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()
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c456 self->func_info[1].insn_off = callback_idx; in bpf_fill_big_prog_with_loop_1()