/linux-6.12.1/tools/lib/bpf/ |
D | relo_core.c | 147 const struct btf *targ_btf, __u32 targ_id, int level) in __bpf_core_types_are_compat() argument 154 targ_type = btf_type_by_id(targ_btf, targ_id); in __bpf_core_types_are_compat() 164 targ_type = skip_mods_and_typedefs(targ_btf, targ_id, &targ_id); in __bpf_core_types_are_compat() 207 skip_mods_and_typedefs(targ_btf, targ_p->type, &targ_id); in __bpf_core_types_are_compat() 208 err = __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, in __bpf_core_types_are_compat() 216 skip_mods_and_typedefs(targ_btf, targ_type->type, &targ_id); in __bpf_core_types_are_compat() 414 const struct btf *targ_btf, in bpf_core_fields_are_compat() argument 421 targ_type = skip_mods_and_typedefs(targ_btf, targ_id, &targ_id); in bpf_core_fields_are_compat() 442 targ_name = btf__name_by_offset(targ_btf, targ_type->name_off); in bpf_core_fields_are_compat() 483 const struct btf *targ_btf, in bpf_core_match_member() argument [all …]
|
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,
|
D | libbpf_internal.h | 647 const struct btf *targ_btf,
|
D | libbpf.c | 5527 const struct btf *targ_btf, in bpf_core_add_cands() argument 5541 n = btf__type_cnt(targ_btf); in bpf_core_add_cands() 5543 t = btf__type_by_id(targ_btf, i); in bpf_core_add_cands() 5547 targ_name = btf__name_by_offset(targ_btf, t->name_off); in bpf_core_add_cands() 5568 cand->btf = targ_btf; in bpf_core_add_cands() 5754 const struct btf *targ_btf, __u32 targ_id) in bpf_core_types_are_compat() argument 5756 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, 32); in bpf_core_types_are_compat() 5760 const struct btf *targ_btf, __u32 targ_id) in bpf_core_types_match() argument 5762 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, 32); in bpf_core_types_match()
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | core_reloc.c | 428 struct btf *targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_local() local 433 if (!ASSERT_OK_PTR(local_btf, "local_btf") || !ASSERT_OK_PTR(targ_btf, "targ_btf")) { in setup_type_id_case_local() 435 btf__free(targ_btf); in setup_type_id_case_local() 492 btf__free(targ_btf); in setup_type_id_case_local() 498 struct btf *targ_btf; in setup_type_id_case_success() local 505 targ_btf = btf__parse(test->btf_src_file, NULL); in setup_type_id_case_success() 507 exp->targ_struct = find_btf_type(targ_btf, "a_struct", BTF_KIND_STRUCT); in setup_type_id_case_success() 508 exp->targ_union = find_btf_type(targ_btf, "a_union", BTF_KIND_UNION); in setup_type_id_case_success() 509 exp->targ_enum = find_btf_type(targ_btf, "an_enum", BTF_KIND_ENUM); in setup_type_id_case_success() 510 exp->targ_int = find_btf_type(targ_btf, "int", BTF_KIND_INT); in setup_type_id_case_success() [all …]
|
/linux-6.12.1/kernel/bpf/ |
D | btf.c | 8634 const struct btf *targ_btf, __u32 targ_id) in bpf_core_types_are_compat() argument 8636 return __bpf_core_types_are_compat(local_btf, local_id, targ_btf, targ_id, in bpf_core_types_are_compat() 8643 const struct btf *targ_btf, u32 targ_id) in bpf_core_types_match() argument 8645 return __bpf_core_types_match(local_btf, local_id, targ_btf, targ_id, false, in bpf_core_types_match() 8813 bpf_core_add_cands(struct bpf_cand_cache *cands, const struct btf *targ_btf, in bpf_core_add_cands() argument 8822 n = btf_nr_types(targ_btf); in bpf_core_add_cands() 8824 t = btf_type_by_id(targ_btf, i); in bpf_core_add_cands() 8828 targ_name = btf_name_by_offset(targ_btf, t->name_off); in bpf_core_add_cands() 8854 cands->cands[cands->cnt].btf = targ_btf; in bpf_core_add_cands()
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | gen.c | 2302 btfgen_find_cands(const struct btf *local_btf, const struct btf *targ_btf, __u32 local_id) in btfgen_find_cands() argument 2331 err = bpf_core_add_cands(&local_cand, local_essent_len, targ_btf, "vmlinux", 1, cands); in btfgen_find_cands()
|