Home
last modified time | relevance | path

Searched refs:core_relo (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/tools/lib/bpf/
H A Dbpf_gen_internal.h71 void bpf_gen__record_relo_core(struct bpf_gen *gen, const struct bpf_core_relo *core_relo);
H A Dgen_loader.c852 const struct bpf_core_relo *core_relo) in bpf_gen__record_relo_core() argument
863 memcpy(relos, core_relo, sizeof(*relos)); in bpf_gen__record_relo_core()
H A Dlibbpf.c341 const struct bpf_core_relo *core_relo; /* used when type == RELO_CORE */ member
5706 const struct bpf_core_relo *core_relo, int insn_idx) in record_relo_core() argument
5717 relo->core_relo = core_relo; in record_relo_core()
5733 return relo->core_relo; in find_relo_core()
7291 .type_id = relo->core_relo->type_id, in bpf_program_record_relos()
7292 .access_str_off = relo->core_relo->access_str_off, in bpf_program_record_relos()
7293 .kind = relo->core_relo->kind, in bpf_program_record_relos()
/openbmc/linux/Documentation/bpf/
H A Dbtf.rst755 contains func_info, line_info and core_relo sub-sections.
795 The core_relo is organized as below.::
798 btf_ext_info_sec for section #1 /* core_relo for section #1 */
799 btf_ext_info_sec for section #2 /* core_relo for section #2 */
/openbmc/linux/kernel/bpf/
H A Dverifier.c15723 struct bpf_core_relo core_relo = {}; in check_core_relo() local
15766 if (copy_from_bpfptr(&core_relo, u_core_relo, ncopy)) { in check_core_relo()
15771 if (core_relo.insn_off % 8 || core_relo.insn_off / 8 >= prog->len) { in check_core_relo()
15773 i, core_relo.insn_off, prog->len); in check_core_relo()
15778 err = bpf_core_apply(&ctx, &core_relo, i, in check_core_relo()
15779 &prog->insnsi[core_relo.insn_off / 8]); in check_core_relo()