Lines Matching refs:reloc_desc
143 struct reloc_desc { struct
153 } *reloc_desc; member
269 zfree(&prog->reloc_desc); in bpf_program__exit()
907 prog->reloc_desc = malloc(sizeof(*prog->reloc_desc) * nrels); in bpf_program__collect_reloc()
908 if (!prog->reloc_desc) { in bpf_program__collect_reloc()
951 prog->reloc_desc[i].type = RELO_CALL; in bpf_program__collect_reloc()
952 prog->reloc_desc[i].insn_idx = insn_idx; in bpf_program__collect_reloc()
953 prog->reloc_desc[i].text_off = sym.st_value; in bpf_program__collect_reloc()
979 prog->reloc_desc[i].type = RELO_LD64; in bpf_program__collect_reloc()
980 prog->reloc_desc[i].insn_idx = insn_idx; in bpf_program__collect_reloc()
981 prog->reloc_desc[i].map_idx = map_idx; in bpf_program__collect_reloc()
1173 struct reloc_desc *relo) in bpf_program__reloc_text()
1219 if (!prog || !prog->reloc_desc) in bpf_program__relocate()
1223 if (prog->reloc_desc[i].type == RELO_LD64) { in bpf_program__relocate()
1227 insn_idx = prog->reloc_desc[i].insn_idx; in bpf_program__relocate()
1228 map_idx = prog->reloc_desc[i].map_idx; in bpf_program__relocate()
1239 &prog->reloc_desc[i]); in bpf_program__relocate()
1245 zfree(&prog->reloc_desc); in bpf_program__relocate()