Home
last modified time | relevance | path

Searched refs:insn_off (Results 1 - 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dbpf_prog_linfo.c220 __u32 insn_off, __u32 nr_skip) in bpf_prog_linfo__lfind()
233 if (insn_off < linfo->insn_off) in bpf_prog_linfo__lfind()
238 if (insn_off < linfo->insn_off) in bpf_prog_linfo__lfind()
219 bpf_prog_linfo__lfind(const struct bpf_prog_linfo *prog_linfo, __u32 insn_off, __u32 nr_skip) bpf_prog_linfo__lfind() argument
H A Dlibbpf_internal.h238 __u32 insn_off; member
244 __u32 insn_off; member
271 * - insn_off - instruction offset (in bytes) within a BPF program that needs
315 __u32 insn_off; member
/kernel/linux/linux-5.10/tools/objtool/
H A Dorc_gen.c91 struct section *insn_sec, unsigned long insn_off, in write_orc_entry()
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()
89 write_orc_entry(struct elf *elf, struct section *orc_sec, struct section *ip_sec, unsigned int idx, struct section *insn_sec, unsigned long insn_off, struct orc_entry *o) write_orc_entry() argument
H A Delf.h135 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()
765 int addend = insn_off; in elf_add_reloc_to_insn()
760 elf_add_reloc_to_insn(struct elf *elf, struct section *sec, unsigned long offset, unsigned int type, struct section *insn_sec, unsigned long insn_off) elf_add_reloc_to_insn() argument
/kernel/linux/linux-6.6/tools/objtool/
H A Dorc_gen.c109 struct section *insn_sec, unsigned long insn_off, in write_orc_entry()
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()
107 write_orc_entry(struct elf *elf, struct section *orc_sec, struct section *ip_sec, unsigned int idx, struct section *insn_sec, unsigned long insn_off, struct orc_entry *o) write_orc_entry() argument
H A Delf.c890 unsigned long insn_off) in elf_init_reloc_text_sym()
893 int addend = insn_off; in elf_init_reloc_text_sym()
886 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
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbpf_prog_linfo.c220 __u32 insn_off, __u32 nr_skip) in bpf_prog_linfo__lfind()
233 if (insn_off < linfo->insn_off) in bpf_prog_linfo__lfind()
238 if (insn_off < linfo->insn_off) in bpf_prog_linfo__lfind()
219 bpf_prog_linfo__lfind(const struct bpf_prog_linfo *prog_linfo, __u32 insn_off, __u32 nr_skip) bpf_prog_linfo__lfind() argument
H A Dlibbpf_internal.h477 __u32 insn_off; member
483 __u32 insn_off; member
H A 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()
/kernel/linux/linux-6.6/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("%d: ", insn_off); in dump_xlated_for_graph()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
366 linfo = find_linfo(env, insn_off); in verbose_linfo()
9032 /* check insn_off */ in check_btf_func()
9035 if (krecord[i].insn_off) { in check_btf_func()
9037 "nonzero insn_off %u for the first func info record", in check_btf_func()
9038 krecord[i].insn_off); in check_btf_func()
357 verbose_linfo(struct bpf_verifier_env *env, u32 insn_off, const char *prefix_fmt, ...) verbose_linfo() argument
[all...]
H A Dcore.c166 * for insn_off to the jited_off mapping (insn_to_jit_off).
168 * The idx to this array is the insn_off. Hence, the insn_off
187 * insn_to_jit_off[linfo[i].insn_off - insn_start - 1]
202 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo()
210 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo()
211 /* The verifier ensures that linfo[i].insn_off is in bpf_prog_fill_jited_linfo()
215 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo()
433 if (off < linfo[i].insn_off) in bpf_adj_linfo()
436 /* Push all off < linfo[i].insn_off b in bpf_adj_linfo()
[all...]
/kernel/linux/linux-6.6/tools/objtool/include/objtool/
H A Delf.h121 unsigned long insn_off);
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dbpf.h7108 __u32 insn_off; member
7116 __u32 insn_off; member
7262 * - insn_off - instruction offset (in bytes) within a BPF program that needs
7306 __u32 insn_off; member
/kernel/linux/linux-6.6/tools/include/uapi/linux/
H A Dbpf.h7108 __u32 insn_off; member
7116 __u32 insn_off; member
7262 * - insn_off - instruction offset (in bytes) within a BPF program that needs
7306 __u32 insn_off; member
/kernel/linux/linux-5.10/tools/include/uapi/linux/
H A Dbpf.h4992 __u32 insn_off; member
5000 __u32 insn_off; member
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dbpf.h4992 __u32 insn_off; member
5000 __u32 insn_off; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dbpf.h1059 __u32 insn_off; member
1065 __u32 insn_off; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dbpf.h1059 __u32 insn_off; member
1065 __u32 insn_off; member
/kernel/linux/linux-6.6/kernel/bpf/
H A Dcore.c185 * for insn_off to the jited_off mapping (insn_to_jit_off).
187 * The idx to this array is the insn_off. Hence, the insn_off
206 * insn_to_jit_off[linfo[i].insn_off - insn_start - 1]
221 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()
230 /* The verifier ensures that linfo[i].insn_off is in bpf_prog_fill_jited_linfo()
234 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo()
461 if (off < linfo[i].insn_off) in bpf_adj_linfo()
464 /* Push all off < linfo[i].insn_off b in bpf_adj_linfo()
[all...]
/kernel/linux/linux-6.6/arch/x86/net/
H A Dbpf_jit_comp.c1065 s16 insn_off; in do_jit() local
1456 insn_off = insn->off; in do_jit()
1472 insn_off = 0; in do_jit()
1504 emit_ldsx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
1506 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off); in do_jit()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c4955 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \
4956 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
5074 .descr = "func_type (Incorrect bpf_func_info.insn_off)",
5132 .descr = "line_info (No subprog. insn_off >= prog->len)",
5156 .err_str = "line_info[4].insn_off",
5399 .err_str = "Invalid line_info[2].insn_off",
6026 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo()
6027 linfo[0].insn_off); in test_get_linfo()
6036 if (CHECK(linfo[i].insn_off < in test_get_linfo()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c5597 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \
5598 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
5716 .descr = "func_type (Incorrect bpf_func_info.insn_off)",
5774 .descr = "line_info (No subprog. insn_off >= prog->len)",
5798 .err_str = "line_info[4].insn_off",
6041 .err_str = "Invalid line_info[2].insn_off",
6668 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u", in test_get_linfo()
6669 linfo[0].insn_off); in test_get_linfo()
6678 if (CHECK(linfo[i].insn_off < in test_get_linfo()
[all...]

Completed in 83 milliseconds

12