Home
last modified time | relevance | path

Searched refs:relo (Results 1 – 8 of 8) sorted by relevance

/linux/tools/lib/bpf/
H A Drelo_core.h83 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,
H A Dlibbpf.c5952 struct reloc_desc *relos, *relo; in record_relo_core() local
5958 relo = &relos[prog->nr_reloc]; in record_relo_core()
5959 relo->type = RELO_CORE; in record_relo_core()
5960 relo->insn_idx = insn_idx; in record_relo_core()
5961 relo->core_relo = core_relo; in record_relo_core()
5969 struct reloc_desc *relo; in find_relo_core() local
5973 relo = &prog->reloc_desc[i]; in find_relo_core()
5974 if (relo->type != RELO_CORE || relo->insn_idx != insn_idx) in find_relo_core()
5977 return relo->core_relo; in find_relo_core()
5984 const struct bpf_core_relo *relo, in bpf_core_resolve_relo() argument
[all …]
H A Dlinker.c988 Elf64_Rel *relo; in linker_sanity_check_elf_relos() local
1032 relo = sec->data->d_buf; in linker_sanity_check_elf_relos()
1034 for (i = 0; i < n; i++, relo++) { in linker_sanity_check_elf_relos()
1035 size_t sym_idx = ELF64_R_SYM(relo->r_info); in linker_sanity_check_elf_relos()
1036 size_t sym_type = ELF64_R_TYPE(relo->r_info); in linker_sanity_check_elf_relos()
1052 if (relo->r_offset % sizeof(struct bpf_insn) != 0) { in linker_sanity_check_elf_relos()
/linux/Documentation/bpf/
H A Dllvm_reloc.rst313 is_signed = relo(s->f, BPF_CORE_FIELD_SIGNED)
314 off = relo(s->f, BPF_CORE_FIELD_BYTE_OFFSET)
315 sz = relo(s->f, BPF_CORE_FIELD_BYTE_SIZE)
316 l = relo(s->f, BPF_CORE_FIELD_LSHIFT_U64)
317 r = relo(s->f, BPF_CORE_FIELD_RSHIFT_U64)
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Djit.c163 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()
/linux/kernel/bpf/
H A Dbtf.c9429 int bpf_core_apply(struct bpf_core_ctx *ctx, const struct bpf_core_relo *relo, in bpf_core_apply() argument
9432 bool need_cands = relo->kind != BPF_CORE_TYPE_ID_LOCAL; in bpf_core_apply()
9446 type = btf_type_by_id(ctx->btf, relo->type_id); in bpf_core_apply()
9449 relo_idx, relo->type_id); in bpf_core_apply()
9459 cc = bpf_core_find_cands(ctx, relo->type_id); in bpf_core_apply()
9462 relo->type_id); in bpf_core_apply()
9489 err = bpf_core_calc_relo_insn((void *)ctx->log, relo, relo_idx, ctx->btf, &cands, specs, in bpf_core_apply()
9494 err = bpf_core_patch_insn((void *)ctx->log, insn, relo->insn_off / 8, relo, relo_idx, in bpf_core_apply()
/linux/tools/testing/selftests/bpf/
H A DREADME.rst319 libbpf: ELF relo #0 in section #6 has unexpected type 2 in .../bpf_tcp_nogpl.bpf.o
/linux/include/linux/
H A Dbpf.h3055 int bpf_core_apply(struct bpf_core_ctx *ctx, const struct bpf_core_relo *relo,