Searched refs:relo (Results 1 – 8 of 8) sorted by relevance
| /Linux-v5.15/tools/lib/bpf/ |
| D | relo_core.c | 559 const struct bpf_core_relo *relo, in bpf_core_calc_field_relo() argument 574 if (relo->kind == BPF_FIELD_EXISTS) { in bpf_core_calc_field_relo() 587 if (relo->kind == BPF_FIELD_BYTE_OFFSET) { in bpf_core_calc_field_relo() 595 } else if (relo->kind == BPF_FIELD_BYTE_SIZE) { in bpf_core_calc_field_relo() 602 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo() 624 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo() 646 switch (relo->kind) { in bpf_core_calc_field_relo() 684 static int bpf_core_calc_type_relo(const struct bpf_core_relo *relo, in bpf_core_calc_type_relo() argument 696 switch (relo->kind) { in bpf_core_calc_type_relo() 718 static int bpf_core_calc_enumval_relo(const struct bpf_core_relo *relo, in bpf_core_calc_enumval_relo() argument [all …]
|
| D | gen_loader.c | 512 struct ksym_relo_desc *relo; in bpf_gen__record_extern() local 514 relo = libbpf_reallocarray(gen->relos, gen->relo_cnt + 1, sizeof(*relo)); in bpf_gen__record_extern() 515 if (!relo) { in bpf_gen__record_extern() 519 gen->relos = relo; in bpf_gen__record_extern() 520 relo += gen->relo_cnt; in bpf_gen__record_extern() 521 relo->name = name; in bpf_gen__record_extern() 522 relo->kind = kind; in bpf_gen__record_extern() 523 relo->insn_idx = insn_idx; in bpf_gen__record_extern() 527 static void emit_relo(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insns) in emit_relo() argument 529 int name, insn, len = strlen(relo->name) + 1; in emit_relo() [all …]
|
| D | relo_core.h | 93 const struct bpf_core_relo *relo, int relo_idx,
|
| D | libbpf.c | 5113 const struct bpf_core_relo *relo, in bpf_core_apply_relo() argument 5118 const void *type_key = u32_as_hash_key(relo->type_id); in bpf_core_apply_relo() 5123 __u32 local_id = relo->type_id; in bpf_core_apply_relo() 5127 if (relo->insn_off % BPF_INSN_SZ) in bpf_core_apply_relo() 5129 insn_idx = relo->insn_off / BPF_INSN_SZ; in bpf_core_apply_relo() 5149 prog - prog->obj->programs, relo->insn_off / 8, in bpf_core_apply_relo() 5150 local_name, relo->kind); in bpf_core_apply_relo() 5154 if (relo->kind != BPF_TYPE_ID_LOCAL && in bpf_core_apply_relo() 5170 return bpf_core_apply_relo_insn(prog_name, insn, insn_idx, relo, relo_idx, local_btf, cands); in bpf_core_apply_relo() 5280 struct reloc_desc *relo = &prog->reloc_desc[i]; in bpf_object__relocate_data() local [all …]
|
| D | linker.c | 845 Elf64_Rel *relo; in linker_sanity_check_elf_relos() local 889 relo = sec->data->d_buf; in linker_sanity_check_elf_relos() 891 for (i = 0; i < n; i++, relo++) { in linker_sanity_check_elf_relos() 892 size_t sym_idx = ELF64_R_SYM(relo->r_info); in linker_sanity_check_elf_relos() 893 size_t sym_type = ELF64_R_TYPE(relo->r_info); in linker_sanity_check_elf_relos() 909 if (relo->r_offset % sizeof(struct bpf_insn) != 0) { in linker_sanity_check_elf_relos()
|
| /Linux-v5.15/arch/arc/kernel/ |
| D | entry.S | 298 j @schedule ; BTST+Bnz causes relo error in link
|
| /Linux-v5.15/tools/testing/selftests/bpf/ |
| D | README.rst | 223 libbpf: ELF relo #0 in section #6 has unexpected type 2 in .../bpf_tcp_nogpl.o
|
| /Linux-v5.15/drivers/net/ethernet/netronome/nfp/bpf/ |
| D | jit.c | 163 enum nfp_relo_type relo) in emit_br_relo() argument 176 FIELD_PREP(OP_RELO_TYPE, relo); in emit_br_relo() 209 u8 defer, bool set, enum nfp_relo_type relo) in emit_br_bit_relo() argument 230 FIELD_PREP(OP_RELO_TYPE, relo); in emit_br_bit_relo() 634 enum nfp_relo_type relo) in wrp_immed_relo() argument 644 FIELD_PREP(OP_RELO_TYPE, relo); in wrp_immed_relo()
|