Lines Matching refs:BPF_INSN_SZ
62 #define BPF_INSN_SZ (sizeof(struct bpf_insn)) macro
752 if (insn_data_sz == 0 || insn_data_sz % BPF_INSN_SZ || sec_off % BPF_INSN_SZ) { in bpf_object__init_prog()
762 prog->sec_insn_off = sec_off / BPF_INSN_SZ; in bpf_object__init_prog()
763 prog->sec_insn_cnt = insn_data_sz / BPF_INSN_SZ; in bpf_object__init_prog()
853 sec_name, name, sec_off / BPF_INSN_SZ, sec_off, prog_sz / BPF_INSN_SZ, prog_sz); in bpf_object__add_programs()
4106 if (sym->st_value % BPF_INSN_SZ) { in bpf_program__record_reloc()
4128 if ((sym->st_value % BPF_INSN_SZ) || (insn->imm % BPF_INSN_SZ)) { in bpf_program__record_reloc()
4288 if (rel->r_offset % BPF_INSN_SZ || rel->r_offset >= scn_data->d_size) { in bpf_object__collect_prog_relos()
4294 insn_idx = rel->r_offset / BPF_INSN_SZ; in bpf_object__collect_prog_relos()
5829 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core()
5831 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
6076 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info()
6115 *insn_off = *insn_off / BPF_INSN_SZ + off_adj; in adjust_prog_btf_ext_info()
6285 sub_insn_idx = relo->sym_off / BPF_INSN_SZ + insn->imm + 1; in bpf_object__reloc_code()
6287 sub_insn_idx = (relo->sym_off + insn->imm) / BPF_INSN_SZ; in bpf_object__reloc_code()
9184 if (sym->st_value % BPF_INSN_SZ) { in bpf_object__collect_st_ops_relos()
9189 insn_idx = sym->st_value / BPF_INSN_SZ; in bpf_object__collect_st_ops_relos()