Lines Matching refs:reloc_desc

336 struct reloc_desc {  struct
426 struct reloc_desc *reloc_desc; member
719 zfree(&prog->reloc_desc); in bpf_program__exit()
4048 struct reloc_desc *reloc_desc, in bpf_program__record_reloc() argument
4084 reloc_desc->type = RELO_EXTERN_CALL; in bpf_program__record_reloc()
4086 reloc_desc->type = RELO_EXTERN_LD64; in bpf_program__record_reloc()
4087 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
4088 reloc_desc->ext_idx = i; in bpf_program__record_reloc()
4110 reloc_desc->type = RELO_CALL; in bpf_program__record_reloc()
4111 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
4112 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
4133 reloc_desc->type = RELO_SUBPROG_ADDR; in bpf_program__record_reloc()
4134 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
4135 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
4165 reloc_desc->type = RELO_LD64; in bpf_program__record_reloc()
4166 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
4167 reloc_desc->map_idx = map_idx; in bpf_program__record_reloc()
4168 reloc_desc->sym_off = 0; /* sym->st_value determines map_idx */ in bpf_program__record_reloc()
4193 reloc_desc->type = RELO_DATA; in bpf_program__record_reloc()
4194 reloc_desc->insn_idx = insn_idx; in bpf_program__record_reloc()
4195 reloc_desc->map_idx = map_idx; in bpf_program__record_reloc()
4196 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
4240 struct reloc_desc *relos; in bpf_object__collect_prog_relos()
4316 relos = libbpf_reallocarray(prog->reloc_desc, in bpf_object__collect_prog_relos()
4320 prog->reloc_desc = relos; in bpf_object__collect_prog_relos()
5704 struct reloc_desc *relos, *relo; in record_relo_core()
5706 relos = libbpf_reallocarray(prog->reloc_desc, in record_relo_core()
5714 prog->reloc_desc = relos; in record_relo_core()
5721 struct reloc_desc *relo; in find_relo_core()
5725 relo = &prog->reloc_desc[i]; in find_relo_core()
5962 struct reloc_desc *relo = &prog->reloc_desc[i]; in bpf_object__relocate_data()
6195 const struct reloc_desc *relo = elem; in cmp_relo_by_insn_idx()
6202 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx) in find_prog_insn_relo()
6206 return bsearch(&insn_idx, prog->reloc_desc, prog->nr_reloc, in find_prog_insn_relo()
6207 sizeof(*prog->reloc_desc), cmp_relo_by_insn_idx); in find_prog_insn_relo()
6213 struct reloc_desc *relos; in append_subprog_relos()
6218 relos = libbpf_reallocarray(main_prog->reloc_desc, new_cnt, sizeof(*relos)); in append_subprog_relos()
6226 memcpy(relos + main_prog->nr_reloc, subprog->reloc_desc, in append_subprog_relos()
6234 main_prog->reloc_desc = relos; in append_subprog_relos()
6246 struct reloc_desc *relo; in bpf_object__reloc_code()
6480 zfree(&prog->reloc_desc); in bpf_object__free_relocs()
6487 const struct reloc_desc *a = _a; in cmp_relocs()
6488 const struct reloc_desc *b = _b; in cmp_relocs()
6510 qsort(p->reloc_desc, p->nr_reloc, sizeof(*p->reloc_desc), cmp_relocs); in bpf_object__sort_relos()
6541 struct reloc_desc *relo = &prog->reloc_desc[j]; in bpf_object__relocate()
7261 struct reloc_desc *relo = &prog->reloc_desc[i]; in bpf_program_record_relos()