/linux-master/tools/lib/bpf/ |
H A D | relo_core.h | 72 const struct btf *targ_btf, __u32 targ_id, int level); 74 const struct btf *targ_btf, __u32 targ_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,
|
H A D | relo_core.c | 147 const struct btf *targ_btf, __u32 targ_id, int level) 154 targ_type = btf_type_by_id(targ_btf, targ_id); 164 targ_type = skip_mods_and_typedefs(targ_btf, targ_id, &targ_id); 207 skip_mods_and_typedefs(targ_btf, targ_p->type, &targ_id); 208 err = __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, 216 skip_mods_and_typedefs(targ_btf, targ_type->type, &targ_id); 414 const struct btf *targ_btf, 421 targ_type = skip_mods_and_typedefs(targ_btf, targ_id, &targ_id); 442 targ_name = btf__name_by_offset(targ_btf, targ_type->name_off); 483 const struct btf *targ_btf, 146 __bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, __u32 targ_id, int level) argument 412 bpf_core_fields_are_compat(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, __u32 targ_id) argument 481 bpf_core_match_member(const struct btf *local_btf, const struct bpf_core_accessor *local_acc, const struct btf *targ_btf, __u32 targ_id, struct bpf_core_spec *spec, __u32 *next_targ_id) argument 557 bpf_core_spec_match(struct bpf_core_spec *local_spec, const struct btf *targ_btf, __u32 targ_id, struct bpf_core_spec *targ_spec) 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_internal.h | 631 const struct btf *targ_btf,
|
H A D | libbpf.c | 5442 const struct btf *targ_btf, 5456 n = btf__type_cnt(targ_btf); 5458 t = btf__type_by_id(targ_btf, i); 5462 targ_name = btf__name_by_offset(targ_btf, t->name_off); 5483 cand->btf = targ_btf; 5669 const struct btf *targ_btf, __u32 targ_id) 5671 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, 32); 5675 const struct btf *targ_btf, __u32 targ_id) 5677 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, 32); 5440 bpf_core_add_cands(struct bpf_core_cand *local_cand, size_t local_essent_len, const struct btf *targ_btf, const char *targ_btf_name, int targ_start_id, struct bpf_core_cand_list *cands) argument 5668 bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, __u32 targ_id) argument 5674 bpf_core_types_match(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, __u32 targ_id) argument
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | core_reloc.c | 427 struct btf *targ_btf = btf__parse(test->btf_src_file, NULL); local 432 if (!ASSERT_OK_PTR(local_btf, "local_btf") || !ASSERT_OK_PTR(targ_btf, "targ_btf")) { 434 btf__free(targ_btf); 491 btf__free(targ_btf); 497 struct btf *targ_btf; local 504 targ_btf = btf__parse(test->btf_src_file, NULL); 506 exp->targ_struct = find_btf_type(targ_btf, "a_struct", BTF_KIND_STRUCT); 507 exp->targ_union = find_btf_type(targ_btf, "a_union", BTF_KIND_UNION); 508 exp->targ_enum = find_btf_type(targ_btf, "an_enu [all...] |
/linux-master/kernel/bpf/ |
H A D | btf.c | 8371 const struct btf *targ_btf, __u32 targ_id) 8373 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, 8380 const struct btf *targ_btf, u32 targ_id) 8382 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, 8550 bpf_core_add_cands(struct bpf_cand_cache *cands, const struct btf *targ_btf, argument 8559 n = btf_nr_types(targ_btf); 8561 t = btf_type_by_id(targ_btf, i); 8565 targ_name = btf_name_by_offset(targ_btf, t->name_off); 8591 cands->cands[cands->cnt].btf = targ_btf; 8370 bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, __u32 targ_id) argument 8379 bpf_core_types_match(const struct btf *local_btf, u32 local_id, const struct btf *targ_btf, u32 targ_id) argument
|
/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 2282 err = bpf_core_add_cands(&local_cand, local_essent_len, targ_btf, "vmlinux", 1, cands);
|