Searched refs:relo (Results 1 – 5 of 5) sorted by relevance
/third_party/libbpf/src/ |
D | gen_loader.c | 565 struct ksym_relo_desc *relo; in bpf_gen__record_extern() local 567 relo = libbpf_reallocarray(gen->relos, gen->relo_cnt + 1, sizeof(*relo)); in bpf_gen__record_extern() 568 if (!relo) { in bpf_gen__record_extern() 572 gen->relos = relo; in bpf_gen__record_extern() 573 relo += gen->relo_cnt; in bpf_gen__record_extern() 574 relo->name = name; in bpf_gen__record_extern() 575 relo->is_weak = is_weak; in bpf_gen__record_extern() 576 relo->is_typeless = is_typeless; in bpf_gen__record_extern() 577 relo->kind = kind; in bpf_gen__record_extern() 578 relo->insn_idx = insn_idx; in bpf_gen__record_extern() [all …]
|
D | relo_core.c | 264 const struct bpf_core_relo *relo, in bpf_core_parse_spec() argument 274 spec_str = btf__name_by_offset(btf, relo->access_str_off); in bpf_core_parse_spec() 280 spec->root_type_id = relo->type_id; in bpf_core_parse_spec() 281 spec->relo_kind = relo->kind; in bpf_core_parse_spec() 284 if (core_relo_is_type_based(relo->kind)) { in bpf_core_parse_spec() 305 t = skip_mods_and_typedefs(btf, relo->type_id, &id); in bpf_core_parse_spec() 315 if (core_relo_is_enumval_based(relo->kind)) { in bpf_core_parse_spec() 326 if (!core_relo_is_field_based(relo->kind)) in bpf_core_parse_spec() 387 prog_name, relo->type_id, spec_str, i, id, btf_kind_str(t)); in bpf_core_parse_spec() 679 const struct bpf_core_relo *relo, in bpf_core_calc_field_relo() argument [all …]
|
D | relo_core.h | 83 const struct bpf_core_relo *relo, int relo_idx, 90 int insn_idx, const struct bpf_core_relo *relo, 94 const struct bpf_core_relo *relo,
|
D | libbpf.c | 5969 struct reloc_desc *relos, *relo; local 5975 relo = &relos[prog->nr_reloc]; 5976 relo->type = RELO_CORE; 5977 relo->insn_idx = insn_idx; 5978 relo->core_relo = core_relo; 5986 struct reloc_desc *relo; local 5990 relo = &prog->reloc_desc[i]; 5991 if (relo->type != RELO_CORE || relo->insn_idx != insn_idx) 5994 return relo->core_relo; 6001 const struct bpf_core_relo *relo, argument [all …]
|
D | linker.c | 840 Elf64_Rel *relo; in linker_sanity_check_elf_relos() local 884 relo = sec->data->d_buf; in linker_sanity_check_elf_relos() 886 for (i = 0; i < n; i++, relo++) { in linker_sanity_check_elf_relos() 887 size_t sym_idx = ELF64_R_SYM(relo->r_info); in linker_sanity_check_elf_relos() 888 size_t sym_type = ELF64_R_TYPE(relo->r_info); in linker_sanity_check_elf_relos() 904 if (relo->r_offset % sizeof(struct bpf_insn) != 0) { in linker_sanity_check_elf_relos()
|