/linux-master/tools/lib/bpf/ |
H A D | relo_core.h | 71 int __bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, 73 int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, 75 int __bpf_core_types_match(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, 77 int bpf_core_types_match(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, 84 const struct btf *local_btf,
|
H A D | relo_core.c | 146 int __bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, argument 153 local_type = btf_type_by_id(local_btf, local_id); 163 local_type = skip_mods_and_typedefs(local_btf, local_id, &local_id); 206 skip_mods_and_typedefs(local_btf, local_p->type, &local_id); 208 err = __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, 215 skip_mods_and_typedefs(local_btf, local_type->type, &local_id); 412 static int bpf_core_fields_are_compat(const struct btf *local_btf, argument 420 local_type = skip_mods_and_typedefs(local_btf, local_id, &local_id); 440 local_name = btf__name_by_offset(local_btf, 481 static int bpf_core_match_member(const struct btf *local_btf, argument 1280 bpf_core_calc_relo_insn(const char *prog_name, const struct bpf_core_relo *relo, int relo_idx, const struct btf *local_btf, struct bpf_core_cand_list *cands, struct bpf_core_spec *specs_scratch, struct bpf_core_relo_res *targ_res) argument 1422 bpf_core_names_match(const struct btf *local_btf, size_t local_name_off, const struct btf *targ_btf, size_t targ_name_off) argument 1440 bpf_core_enums_match(const struct btf *local_btf, const struct btf_type *local_t, const struct btf *targ_btf, const struct btf_type *targ_t) argument 1479 bpf_core_composites_match(const struct btf *local_btf, const struct btf_type *local_t, const struct btf *targ_btf, const struct btf_type *targ_t, bool behind_ptr, int level) argument 1544 __bpf_core_types_match(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, __u32 targ_id, bool behind_ptr, int level) argument [all...] |
H A D | libbpf.c | 5589 bpf_core_find_cands(struct bpf_object *obj, const struct btf *local_btf, __u32 local_type_id) argument 5599 local_cand.btf = local_btf; 5601 local_t = btf__type_by_id(local_btf, local_type_id); 5605 local_name = btf__name_by_offset(local_btf, local_t->name_off); 5668 int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, argument 5671 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, 32); 5674 int bpf_core_types_match(const struct btf *local_btf, __u32 local_id, argument 5677 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, 32); 5727 const struct btf *local_btf, 5739 local_type = btf__type_by_id(local_btf, local_i 5724 bpf_core_resolve_relo(struct bpf_program *prog, const struct bpf_core_relo *relo, int relo_idx, const struct btf *local_btf, struct hashmap *cand_cache, struct bpf_core_relo_res *targ_res) argument [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | core_reloc.c | 426 struct btf *local_btf = btf__parse(test->bpf_obj_file, NULL); local 432 if (!ASSERT_OK_PTR(local_btf, "local_btf") || !ASSERT_OK_PTR(targ_btf, "targ_btf")) { 433 btf__free(local_btf); 445 for (i = 1; i < btf__type_cnt(local_btf); i++) 447 t = btf__type_by_id(local_btf, i); 453 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && 457 (name = btf__name_by_offset(local_btf, btf_members(t)[0].name_off)) && 461 (name = btf__name_by_offset(local_btf, btf_enum(t)[0].name_off)) && 464 } else if (btf_is_ptr(t) && (t = btf__type_by_id(local_btf, [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | gen.c | 2253 btfgen_find_cands(const struct btf *local_btf, const struct btf *targ_btf, __u32 local_id) argument 2262 local_cand.btf = local_btf; 2265 local_type = btf__type_by_id(local_btf, local_id); 2271 local_name = btf__name_by_offset(local_btf, local_type->name_off);
|
/linux-master/kernel/bpf/ |
H A D | btf.c | 8370 int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, argument 8373 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, 8379 int bpf_core_types_match(const struct btf *local_btf, u32 local_id, argument 8382 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, 8602 const struct btf *local_btf = ctx->btf; local 8616 local_type = btf_type_by_id(local_btf, local_type_id); 8620 name = btf_name_by_offset(local_btf, local_type->name_off);
|