| /linux/kernel/bpf/ |
| H A D | check_btf.c | 94 if (krecord[i].insn_off) { in prepare_btf_func() 97 krecord[i].insn_off); in prepare_btf_func() 100 } else if (krecord[i].insn_off <= prev_offset) { in prepare_btf_func() 103 krecord[i].insn_off, prev_offset); in prepare_btf_func() 120 prev_offset = krecord[i].insn_off; in prepare_btf_func() 175 if (env->subprog_info[i].start != krecord[i].insn_off) { in check_btf_func() 282 if ((i && linfo[i].insn_off <= prev_offset) || in check_btf_line() 283 linfo[i].insn_off >= prog->len) { in check_btf_line() 285 i, linfo[i].insn_off, prev_offset, in check_btf_line() 291 if (!prog->insnsi[linfo[i].insn_off].code) { in check_btf_line() [all …]
|
| H A D | core.c | 242 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo() 250 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo() 255 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo() 448 if (off < linfo[i].insn_off) in bpf_adj_linfo() 453 linfo[i].insn_off += delta; in bpf_adj_linfo() 3474 const struct bpf_line_info *bpf_find_linfo(const struct bpf_prog *prog, u32 insn_off) in bpf_find_linfo() argument 3481 if (!nr_linfo || insn_off >= prog->len) in bpf_find_linfo() 3502 if (linfo[m].insn_off <= insn_off) in bpf_find_linfo() 3532 insn_start = linfo[0].insn_off; in bpf_prog_get_file_line() 3537 linfo[i].insn_off >= insn_start && linfo[i].insn_off < insn_end; i++) { in bpf_prog_get_file_line()
|
| H A D | log.c | 341 u32 insn_off, in verbose_linfo() argument 352 linfo = bpf_find_linfo(env->prog, insn_off); in verbose_linfo()
|
| H A D | fixups.c | 449 if (linfo[i].insn_off >= off) in bpf_adj_linfo_after_remove() 455 if (linfo[i].insn_off < off + cnt) in bpf_adj_linfo_after_remove() 465 (i == nr_linfo || linfo[i].insn_off != off + cnt)) { in bpf_adj_linfo_after_remove() 467 linfo[--i].insn_off = off + cnt; in bpf_adj_linfo_after_remove() 481 linfo[i].insn_off -= cnt; in bpf_adj_linfo_after_remove()
|
| /linux/tools/bpf/bpftool/ |
| H A D | xlated_dumper.c | 235 if (record->insn_off == i) { in dump_xlated_json() 316 if (record->insn_off == i) { in dump_xlated_plain() 376 unsigned int insn_off; in dump_xlated_for_graph() local 384 insn_off = (unsigned int)(cur - insn_start + start_idx); in dump_xlated_for_graph() 386 if (record->insn_off == insn_off) { in dump_xlated_for_graph() 399 linfo = bpf_prog_linfo__lfind(prog_linfo, insn_off, 0); in dump_xlated_for_graph() 406 printf("%u: ", insn_off); in dump_xlated_for_graph()
|
| /linux/tools/lib/bpf/ |
| H 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()
|
| H A D | libbpf_internal.h | 534 __u32 insn_off; member 540 __u32 insn_off; member 552 i->insn_off = bswap_32(i->insn_off); in bpf_func_info_bswap() 558 i->insn_off = bswap_32(i->insn_off); in bpf_line_info_bswap() 566 i->insn_off = bswap_32(i->insn_off); in bpf_core_relo_bswap()
|
| H A D | relo_core.c | 729 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo() 751 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo() 976 relo->kind, relo->insn_off / 8); in bpf_core_calc_relo()
|
| H A D | libbpf.c | 6177 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core() 6179 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core() 6362 __u64 insn_off; in create_jt_map() local 6414 insn_off = jt[i]/sizeof(struct bpf_insn); in create_jt_map() 6416 insn_off -= prog->subprogs[subprog_idx].sec_insn_off; in create_jt_map() 6417 insn_off += prog->subprogs[subprog_idx].sub_insn_off; in create_jt_map() 6419 insn_off -= prog->sec_insn_off; in create_jt_map() 6426 if (insn_off > UINT32_MAX) { in create_jt_map() 6433 val.orig_off = insn_off; in create_jt_map() 6593 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info() local [all …]
|
| H A D | linker.c | 2665 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 D | orc_gen.c | 20 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 D | elf.c | 1085 unsigned long insn_off) in elf_init_reloc_text_sym() 1088 s64 addend = insn_off; in elf_init_reloc_text_sym() 1071 elf_init_reloc_text_sym(struct elf * elf,struct section * sec,unsigned long offset,unsigned int reloc_idx,struct section * insn_sec,unsigned long insn_off) elf_init_reloc_text_sym() argument
|
| /linux/tools/objtool/include/objtool/ |
| H A D | warn.h | 136 char *insn_off = offstr(insn->sec, insn->offset); \ 138 func->name, insn_off, (unsigned long long)checksum);\ 139 free(insn_off); \
|
| H A D | orc.h | 11 struct section *insn_sec, unsigned long insn_off,
|
| H A D | elf.h | 196 unsigned long insn_off); in mark_sec_changed()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | core_reloc_raw.c | 58 .insn_off = 0, in test_bad_local_id() 64 .insn_off = 0, /* patch first instruction (r0 = 0) */ in test_bad_local_id()
|
| H A D | test_global_funcs.c | 97 if (rec->insn_off == 0) in subtest_ctx_arg_rewrite()
|
| H A D | btf.c | 5752 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument 5753 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff)) 6823 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo() 6824 linfo[0].insn_off); in test_get_linfo() 6833 if (CHECK(linfo[i].insn_off <= linfo[i - 1].insn_off, in test_get_linfo() 6835 i, linfo[i].insn_off, in test_get_linfo() 6836 i - 1, linfo[i - 1].insn_off)) { in test_get_linfo()
|
| /linux/tools/objtool/arch/x86/ |
| H A D | decode.c | 101 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/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 1865 s32 insn_off; in do_jit() local 2285 st: insn_off = insn->off; in do_jit() 2292 insn_off = outgoing_arg_base - outgoing_rsp - insn_off - 16; in do_jit() 2295 if (is_imm8(insn_off)) in do_jit() 2296 EMIT2(add_1reg(0x40, dst_reg), insn_off); in do_jit() 2298 EMIT1_off32(add_1reg(0x80, dst_reg), insn_off); in do_jit() 2313 insn_off = insn->off; in do_jit() 2315 insn_off = outgoing_arg_base - outgoing_rsp - insn_off - 16; in do_jit() 2318 emit_stx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit() 2436 insn_off = insn->off; in do_jit() [all …]
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 7577 __u32 insn_off; member 7585 __u32 insn_off; member 7774 __u32 insn_off; member
|
| /linux/include/uapi/linux/ |
| H A D | bpf.h | 7577 __u32 insn_off; member 7585 __u32 insn_off; member 7774 __u32 insn_off; member
|
| /linux/Documentation/bpf/ |
| H A D | llvm_reloc.rst | 355 __u32 insn_off; 361 * ``insn_off`` - instruction offset (in bytes) within a code section
|
| /linux/include/linux/ |
| H A D | bpf_verifier.h | 1094 u32 insn_off,
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 456 self->func_info[1].insn_off = callback_idx; in bpf_fill_big_prog_with_loop_1()
|