Lines Matching refs:reloc_desc
191 struct reloc_desc { struct
261 struct reloc_desc *reloc_desc; member
530 zfree(&prog->reloc_desc); in bpf_program__exit()
3335 struct reloc_desc *reloc_desc, in bpf_program__record_reloc() argument
3347 reloc_desc->processed = false; in bpf_program__record_reloc()
3367 reloc_desc->type = RELO_CALL; in bpf_program__record_reloc()
3368 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3369 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
3396 reloc_desc->type = RELO_EXTERN; in bpf_program__record_reloc()
3397 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3398 reloc_desc->sym_off = i; /* sym_off stores extern index */ in bpf_program__record_reloc()
3434 reloc_desc->type = RELO_LD64; in bpf_program__record_reloc()
3435 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3436 reloc_desc->map_idx = map_idx; in bpf_program__record_reloc()
3437 reloc_desc->sym_off = 0; /* sym->st_value determines map_idx */ in bpf_program__record_reloc()
3462 reloc_desc->type = RELO_DATA; in bpf_program__record_reloc()
3463 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3464 reloc_desc->map_idx = map_idx; in bpf_program__record_reloc()
3465 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
3507 struct reloc_desc *relos; in bpf_object__collect_prog_relos()
3562 relos = libbpf_reallocarray(prog->reloc_desc, in bpf_object__collect_prog_relos()
3566 prog->reloc_desc = relos; in bpf_object__collect_prog_relos()
5939 struct reloc_desc *relo = &prog->reloc_desc[i]; in bpf_object__relocate_data()
6129 const struct reloc_desc *relo = elem; in cmp_relo_by_insn_idx()
6136 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx) in find_prog_insn_relo()
6138 return bsearch(&insn_idx, prog->reloc_desc, prog->nr_reloc, in find_prog_insn_relo()
6139 sizeof(*prog->reloc_desc), cmp_relo_by_insn_idx); in find_prog_insn_relo()
6149 struct reloc_desc *relo; in bpf_object__reloc_code()
6345 if (subprog->reloc_desc[j].type == RELO_CALL) in bpf_object__relocate_calls()
6346 subprog->reloc_desc[j].processed = false; in bpf_object__relocate_calls()
6408 zfree(&prog->reloc_desc); in bpf_object__relocate()
6532 const struct reloc_desc *a = _a; in cmp_relocs()
6533 const struct reloc_desc *b = _b; in cmp_relocs()
6575 qsort(p->reloc_desc, p->nr_reloc, sizeof(*p->reloc_desc), cmp_relocs); in bpf_object__collect_relos()