Lines Matching refs:reloc_desc
164 struct reloc_desc { struct
175 } *reloc_desc; member
340 zfree(&prog->reloc_desc); in bpf_program__exit()
1737 prog->reloc_desc = malloc(sizeof(*prog->reloc_desc) * nrels); in bpf_program__collect_reloc()
1738 if (!prog->reloc_desc) { in bpf_program__collect_reloc()
1794 prog->reloc_desc[i].type = RELO_CALL; in bpf_program__collect_reloc()
1795 prog->reloc_desc[i].insn_idx = insn_idx; in bpf_program__collect_reloc()
1796 prog->reloc_desc[i].text_off = sym.st_value; in bpf_program__collect_reloc()
1844 prog->reloc_desc[i].type = type != LIBBPF_MAP_UNSPEC ? in bpf_program__collect_reloc()
1846 prog->reloc_desc[i].insn_idx = insn_idx; in bpf_program__collect_reloc()
1847 prog->reloc_desc[i].map_idx = map_idx; in bpf_program__collect_reloc()
3189 struct reloc_desc *relo) in bpf_program__reloc_text()
3255 if (!prog->reloc_desc) in bpf_program__relocate()
3259 if (prog->reloc_desc[i].type == RELO_LD64 || in bpf_program__relocate()
3260 prog->reloc_desc[i].type == RELO_DATA) { in bpf_program__relocate()
3261 bool relo_data = prog->reloc_desc[i].type == RELO_DATA; in bpf_program__relocate()
3265 insn_idx = prog->reloc_desc[i].insn_idx; in bpf_program__relocate()
3266 map_idx = prog->reloc_desc[i].map_idx; in bpf_program__relocate()
3281 } else if (prog->reloc_desc[i].type == RELO_CALL) { in bpf_program__relocate()
3283 &prog->reloc_desc[i]); in bpf_program__relocate()
3289 zfree(&prog->reloc_desc); in bpf_program__relocate()