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()
3336 struct reloc_desc *reloc_desc, in bpf_program__record_reloc() argument
3348 reloc_desc->processed = false; in bpf_program__record_reloc()
3368 reloc_desc->type = RELO_CALL; in bpf_program__record_reloc()
3369 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3370 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
3397 reloc_desc->type = RELO_EXTERN; in bpf_program__record_reloc()
3398 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3399 reloc_desc->sym_off = i; /* sym_off stores extern index */ in bpf_program__record_reloc()
3435 reloc_desc->type = RELO_LD64; in bpf_program__record_reloc()
3436 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3437 reloc_desc->map_idx = map_idx; in bpf_program__record_reloc()
3438 reloc_desc->sym_off = 0; /* sym->st_value determines map_idx */ in bpf_program__record_reloc()
3463 reloc_desc->type = RELO_DATA; in bpf_program__record_reloc()
3464 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
3465 reloc_desc->map_idx = map_idx; in bpf_program__record_reloc()
3466 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
3508 struct reloc_desc *relos; in bpf_object__collect_prog_relos()
3563 relos = libbpf_reallocarray(prog->reloc_desc, in bpf_object__collect_prog_relos()
3567 prog->reloc_desc = relos; in bpf_object__collect_prog_relos()
6006 struct reloc_desc *relo = &prog->reloc_desc[i]; in bpf_object__relocate_data()
6196 const struct reloc_desc *relo = elem; in cmp_relo_by_insn_idx()
6203 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx) in find_prog_insn_relo()
6205 return bsearch(&insn_idx, prog->reloc_desc, prog->nr_reloc, in find_prog_insn_relo()
6206 sizeof(*prog->reloc_desc), cmp_relo_by_insn_idx); in find_prog_insn_relo()
6216 struct reloc_desc *relo; in bpf_object__reloc_code()
6412 if (subprog->reloc_desc[j].type == RELO_CALL) in bpf_object__relocate_calls()
6413 subprog->reloc_desc[j].processed = false; in bpf_object__relocate_calls()
6475 zfree(&prog->reloc_desc); in bpf_object__relocate()
6599 const struct reloc_desc *a = _a; in cmp_relocs()
6600 const struct reloc_desc *b = _b; in cmp_relocs()
6642 qsort(p->reloc_desc, p->nr_reloc, sizeof(*p->reloc_desc), cmp_relocs); in bpf_object__collect_relos()