Lines Matching refs:reloc_desc
191 struct reloc_desc {
261 struct reloc_desc *reloc_desc;
530 zfree(&prog->reloc_desc);
3336 struct reloc_desc *reloc_desc,
3348 reloc_desc->processed = false;
3368 reloc_desc->type = RELO_CALL;
3369 reloc_desc->insn_idx = insn_idx;
3370 reloc_desc->sym_off = sym->st_value;
3397 reloc_desc->type = RELO_EXTERN;
3398 reloc_desc->insn_idx = insn_idx;
3399 reloc_desc->sym_off = i; /* sym_off stores extern index */
3435 reloc_desc->type = RELO_LD64;
3436 reloc_desc->insn_idx = insn_idx;
3437 reloc_desc->map_idx = map_idx;
3438 reloc_desc->sym_off = 0; /* sym->st_value determines map_idx */
3463 reloc_desc->type = RELO_DATA;
3464 reloc_desc->insn_idx = insn_idx;
3465 reloc_desc->map_idx = map_idx;
3466 reloc_desc->sym_off = sym->st_value;
3511 struct reloc_desc *relos;
3566 relos = libbpf_reallocarray(prog->reloc_desc,
3570 prog->reloc_desc = relos;
6009 struct reloc_desc *relo = &prog->reloc_desc[i];
6199 const struct reloc_desc *relo = elem;
6206 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx)
6208 return bsearch(&insn_idx, prog->reloc_desc, prog->nr_reloc,
6209 sizeof(*prog->reloc_desc), cmp_relo_by_insn_idx);
6219 struct reloc_desc *relo;
6415 if (subprog->reloc_desc[j].type == RELO_CALL)
6416 subprog->reloc_desc[j].processed = false;
6478 zfree(&prog->reloc_desc);
6602 const struct reloc_desc *a = _a;
6603 const struct reloc_desc *b = _b;
6645 qsort(p->reloc_desc, p->nr_reloc, sizeof(*p->reloc_desc), cmp_relocs);