Lines Matching refs:relos
4649 struct reloc_desc *relos; in bpf_object__collect_prog_relos() local
4725 relos = libbpf_reallocarray(prog->reloc_desc, in bpf_object__collect_prog_relos()
4726 prog->nr_reloc + 1, sizeof(*relos)); in bpf_object__collect_prog_relos()
4727 if (!relos) in bpf_object__collect_prog_relos()
4729 prog->reloc_desc = relos; in bpf_object__collect_prog_relos()
4733 err = bpf_program__record_reloc(prog, &relos[prog->nr_reloc], in bpf_object__collect_prog_relos()
5778 struct reloc_desc *relos, *relo; in record_relo_core() local
5780 relos = libbpf_reallocarray(prog->reloc_desc, in record_relo_core()
5781 prog->nr_reloc + 1, sizeof(*relos)); in record_relo_core()
5782 if (!relos) in record_relo_core()
5784 relo = &relos[prog->nr_reloc]; in record_relo_core()
5788 prog->reloc_desc = relos; in record_relo_core()
6287 struct reloc_desc *relos; in append_subprog_relos() local
6292 relos = libbpf_reallocarray(main_prog->reloc_desc, new_cnt, sizeof(*relos)); in append_subprog_relos()
6297 if (!relos && new_cnt) in append_subprog_relos()
6300 memcpy(relos + main_prog->nr_reloc, subprog->reloc_desc, in append_subprog_relos()
6301 sizeof(*relos) * subprog->nr_reloc); in append_subprog_relos()
6304 relos[i].insn_idx += subprog->sub_insn_off; in append_subprog_relos()
6308 main_prog->reloc_desc = relos; in append_subprog_relos()