Lines Matching refs:base_btf

272 	struct btf *base_btf;  member
536 return btf->kernel_btf && !btf->base_btf; in btf_is_vmlinux()
545 btf = btf->base_btf; in btf_nr_types()
765 btf = btf->base_btf; in btf_name_offset_valid()
784 btf = btf->base_btf; in btf_str_by_offset()
854 btf = btf->base_btf; in btf_type_by_id()
1455 if (env->btf->base_btf && IS_ENABLED(CONFIG_MODULE_ALLOW_BTF_MISMATCH)) in __btf_verifier_log_type()
1501 if (env->btf->base_btf && IS_ENABLED(CONFIG_MODULE_ALLOW_BTF_MISMATCH)) in btf_verifier_log_member()
1613 if (!btf->base_btf) { in btf_add_type()
1771 return btf->base_btf; in btf_base_btf()
1779 void btf_set_base_btf(struct btf *btf, const struct btf *base_btf) in btf_set_base_btf() argument
1781 btf->base_btf = (struct btf *)base_btf; in btf_set_base_btf()
1782 btf->start_id = btf_nr_types(base_btf); in btf_set_base_btf()
1783 btf->start_str_off = base_btf->hdr.str_len; in btf_set_base_btf()
2017 btf = btf->base_btf; in btf_resolved_type_id()
2033 btf = btf->base_btf; in btf_resolved_type_size()
5202 env->log_type_id = btf->base_btf ? btf->start_id : 1; in btf_check_all_metas()
5305 for (i = btf->base_btf ? 0 : 1; i < btf->nr_types; i++) { in btf_check_all_types()
5338 if (!env->btf->base_btf && !hdr->type_len) { in btf_parse_type_sec()
5367 if (btf->base_btf && !hdr->str_len) in btf_parse_str_sec()
5373 if (!btf->base_btf && start[0]) { in btf_parse_str_sec()
5503 if (!btf->base_btf && btf_data_size == hdr->hdr_len) { in btf_parse_hdr()
6233 if (!btf->base_btf || !btf->base_id_map) in btf_relocate_id()
6244 struct btf *btf = NULL, *vmlinux_btf, *base_btf = NULL; in btf_parse_module() local
6263 base_btf = btf_parse_base(env, ".BTF.base", base_data, base_data_size); in btf_parse_module()
6264 if (IS_ERR(base_btf)) { in btf_parse_module()
6265 err = PTR_ERR(base_btf); in btf_parse_module()
6269 base_btf = vmlinux_btf; in btf_parse_module()
6279 btf->base_btf = base_btf; in btf_parse_module()
6280 btf->start_id = base_btf->nr_types; in btf_parse_module()
6281 btf->start_str_off = base_btf->hdr.str_len; in btf_parse_module()
6306 err = btf_check_type_tags(env, btf, btf_nr_types(base_btf)); in btf_parse_module()
6310 if (base_btf != vmlinux_btf) { in btf_parse_module()
6314 btf_free(base_btf); in btf_parse_module()
6315 base_btf = vmlinux_btf; in btf_parse_module()
6324 if (!IS_ERR(base_btf) && base_btf != vmlinux_btf) in btf_parse_module()
6325 btf_free(base_btf); in btf_parse_module()