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

/linux-master/arch/x86/net/
H A Dbpf_jit_comp.c1330 s16 insn_off; local
1805 insn_off = insn->off;
1821 insn_off = 0;
1853 emit_ldsx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off);
1855 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn_off);
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/
H A Djit.c2761 s16 insn_off = meta->insn.off - range_start; local
2765 u8 idx = insn_off / REG_WIDTH;
2766 u8 off = insn_off % REG_WIDTH;
/linux-master/include/linux/
H A Dbpf_verifier.h768 u32 insn_off,
/linux-master/include/uapi/linux/
H A Dbpf.h7264 __u32 insn_off; member in struct:bpf_func_info
7272 __u32 insn_off; member in struct:bpf_line_info
7409 * - insn_off - instruction offset (in bytes) within a BPF program that needs
7453 __u32 insn_off; member in struct:bpf_core_relo
/linux-master/kernel/bpf/
H A Dbtf.c8741 err = bpf_core_patch_insn((void *)ctx->log, insn, relo->insn_off / 8, relo, relo_idx,
H A Dcore.c193 * for insn_off to the jited_off mapping (insn_to_jit_off).
195 * The idx to this array is the insn_off. Hence, the insn_off
214 * insn_to_jit_off[linfo[i].insn_off - insn_start - 1]
229 insn_start = linfo[0].insn_off;
237 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++)
238 /* The verifier ensures that linfo[i].insn_off is
242 insn_to_jit_off[linfo[i].insn_off - insn_start - 1];
469 if (off < linfo[i].insn_off)
472 /* Push all off < linfo[i].insn_off b
[all...]
H A Dlog.c333 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) argument
343 if (!nr_linfo || insn_off >= prog->len)
347 /* Loop invariant: linfo[l].insn_off <= insns_off.
348 * linfo[0].insn_off == 0 which always satisfies above condition.
357 * l=1, r=2, linfo[l].insn_off <= insn_off, linfo[r].insn_off > insn_off,
358 * then m=2, we see that linfo[m].insn_off > insn_off, an
381 verbose_linfo(struct bpf_verifier_env *env, u32 insn_off, const char *prefix_fmt, ...) argument
[all...]
H A Dverifier.c2543 ret = aux->func_info[i].insn_off;
2545 * later, so assume this is the right insn_off for now.
2548 verbose(env, "invalid exception callback insn_off in func_info: 0\n");
15960 /* check insn_off */
15963 if (krecord[i].insn_off) {
15965 "nonzero insn_off %u for the first func info record",
15966 krecord[i].insn_off);
15969 } else if (krecord[i].insn_off <= prev_offset) {
15972 krecord[i].insn_off, prev_offset);
15989 prev_offset = krecord[i].insn_off;
[all...]
/linux-master/tools/bpf/bpftool/
H A Dxlated_dumper.c248 if (record->insn_off == i) {
329 if (record->insn_off == i) {
388 unsigned int insn_off; local
396 insn_off = (unsigned int)(cur - insn_start + start_idx);
398 if (record->insn_off == insn_off) {
411 linfo = bpf_prog_linfo__lfind(prog_linfo, insn_off, 0);
418 printf("%d: ", insn_off);
/linux-master/tools/include/uapi/linux/
H A Dbpf.h7264 __u32 insn_off; member in struct:bpf_func_info
7272 __u32 insn_off; member in struct:bpf_line_info
7409 * - insn_off - instruction offset (in bytes) within a BPF program that needs
7453 __u32 insn_off; member in struct:bpf_core_relo
/linux-master/tools/lib/bpf/
H A Dbpf_prog_linfo.c220 __u32 insn_off, __u32 nr_skip)
233 if (insn_off < linfo->insn_off)
238 if (insn_off < linfo->insn_off)
219 bpf_prog_linfo__lfind(const struct bpf_prog_linfo *prog_linfo, __u32 insn_off, __u32 nr_skip) argument
H A Dlibbpf.c5814 if (rec->insn_off % BPF_INSN_SZ)
5816 insn_idx = rec->insn_off / BPF_INSN_SZ;
6061 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; local
6063 if (insn_off < prog->sec_insn_off)
6065 if (insn_off >= prog->sec_insn_off + prog->sec_insn_cnt)
6098 __u32 *insn_off = rec; local
6100 *insn_off = *insn_off / BPF_INSN_SZ + off_adj;
7720 .insn_off = relo->insn_idx * 8,
H A Dlibbpf.h1572 __u32 insn_off, __u32 nr_skip);
H A Dlibbpf_internal.h499 __u32 insn_off; member in struct:bpf_func_info_min
505 __u32 insn_off; member in struct:bpf_line_info_min
H A Dlinker.c2486 dst_rec->insn_off += src_sec->dst_off;
2515 dst_rec->insn_off += src_sec->dst_off;
2557 dst_rec->insn_off += src_sec->dst_off;
H A Drelo_core.c722 prog_name, relo->kind, relo->insn_off / 8);
744 prog_name, relo->kind, relo->insn_off / 8);
959 relo->kind, relo->insn_off / 8);
/linux-master/tools/objtool/arch/loongarch/
H A Dorc.c103 struct section *insn_sec, unsigned long insn_off,
114 insn_sec, insn_off))
101 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) argument
/linux-master/tools/objtool/arch/x86/
H A Dorc.c102 struct section *insn_sec, unsigned long insn_off,
115 insn_sec, insn_off))
100 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) argument
/linux-master/tools/objtool/
H A Delf.c888 unsigned long insn_off)
891 int addend = insn_off;
884 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) argument
H A Dorc_gen.c21 unsigned long insn_off; member in struct:orc_list_entry
36 entry->insn_off = offset;
141 entry->insn_sec, entry->insn_off,
/linux-master/tools/objtool/include/objtool/
H A Delf.h122 unsigned long insn_off);
H A Dorc.h11 struct section *insn_sec, unsigned long insn_off,
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c5626 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \
5627 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff))
5745 .descr = "func_type (Incorrect bpf_func_info.insn_off)",
5803 .descr = "line_info (No subprog. insn_off >= prog->len)",
5827 .err_str = "line_info[4].insn_off",
6070 .err_str = "Invalid line_info[2].insn_off",
6697 CHECK(linfo[0].insn_off, "linfo[0].insn_off:%u",
6698 linfo[0].insn_off);
6707 if (CHECK(linfo[i].insn_off <
[all...]
H A Dtest_global_funcs.c96 if (rec->insn_off == 0)
/linux-master/tools/testing/selftests/bpf/
H A Dtest_verifier.c460 self->func_info[1].insn_off = callback_idx;

Completed in 1117 milliseconds