Home
last modified time | relevance | path

Searched refs:insn_off (Results 1 – 22 of 22) 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.h529 __u32 insn_off;
535 __u32 insn_off;
547 i->insn_off = bswap_32(i->insn_off); in bpf_line_info_bswap()
553 i->insn_off = bswap_32(i->insn_off); in bpf_core_relo_bswap()
561 i->insn_off = bswap_32(i->insn_off);
520 __u32 insn_off; global() member
526 __u32 insn_off; global() member
H A Dlibbpf.c6128 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core()
6130 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6313 __u64 insn_off; in create_jt_map()
6365 insn_off = jt[i]/sizeof(struct bpf_insn); in bpf_object__relocate_data()
6367 insn_off -= prog->subprogs[subprog_idx].sec_insn_off; in bpf_object__relocate_data()
6368 insn_off += prog->subprogs[subprog_idx].sub_insn_off; in bpf_object__relocate_data()
6370 insn_off -= prog->sec_insn_off; in bpf_object__relocate_data()
6377 if (insn_off > UINT32_MAX) { in bpf_object__relocate_data()
6384 val.orig_off = insn_off; in bpf_object__relocate_data()
6544 __u32 insn_off in reloc_prog_func_and_line_info()
6258 __u64 insn_off; create_jt_map() local
6489 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; adjust_prog_btf_ext_info() local
6526 __u32 *insn_off = rec; 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.c1071 unsigned long insn_off) in elf_init_reloc_text_sym() argument
1074 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.c97 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.c240 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo()
248 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
253 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo()
446 if (off < linfo[i].insn_off) in bpf_adj_linfo()
451 linfo[i].insn_off += delta; in bpf_adj_linfo()
3398 const struct bpf_line_info *bpf_find_linfo(const struct bpf_prog *prog, u32 insn_off) in bpf_find_linfo() argument
3405 if (!nr_linfo || insn_off >= prog->len) in bpf_find_linfo()
3426 if (linfo[m].insn_off <= insn_off) in bpf_find_linfo()
3455 insn_start = linfo[0].insn_off; in bpf_prog_get_file_line()
3460 linfo[i].insn_off >= insn_start && linfo[i].insn_off < insn_end; i++) { in bpf_prog_get_file_line()
H A Dbtf.c9560 err = bpf_core_patch_insn((void *)ctx->log, insn, relo->insn_off / 8, relo, relo_idx, in bpf_core_apply()
H A Dverifier.c2736 ret = aux->func_info[i].insn_off; in bpf_find_exception_callback_insn_off()
17245 aux->func_info[i].insn_off = env->subprog_info[i].start; in adjust_btf_func()
/linux/tools/include/uapi/linux/
H A Dbpf.h7453 __u32 insn_off;
7461 __u32 insn_off;
7606 * - insn_off - instruction offset (in bytes) within a BPF program that needs
7650 __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
2250 insn_off = insn->off; in do_jit()
2303 emit_ldsx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
2305 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
/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()
/linux/include/linux/
H A Dbpf.h3951 const struct bpf_line_info *bpf_find_linfo(const struct bpf_prog *prog, u32 insn_off);