Lines Matching refs:t
942 struct btf_type *t; in linker_sanity_check_btf() local
950 t = btf_type_by_id(obj->btf, i); in linker_sanity_check_btf()
952 err = err ?: btf_type_visit_type_ids(t, check_btf_type_id, obj->btf); in linker_sanity_check_btf()
953 err = err ?: btf_type_visit_str_offs(t, check_btf_str_off, obj->btf); in linker_sanity_check_btf()
1588 const struct btf_type *t; in glob_map_defs_match() local
1591 t = btf__type_by_id(obj->btf, btf_id); in glob_map_defs_match()
1592 if (!btf_is_var(t)) { in glob_map_defs_match()
1596 t = skip_mods_and_typedefs(obj->btf, t->type, NULL); in glob_map_defs_match()
1598 err = parse_btf_map_def(sym_name, obj->btf, t, true /*strict*/, &src_def, &src_inner_def); in glob_map_defs_match()
1605 t = btf__type_by_id(linker->btf, glob_sym->btf_id); in glob_map_defs_match()
1606 t = skip_mods_and_typedefs(linker->btf, t->type, NULL); in glob_map_defs_match()
1607 err = parse_btf_map_def(sym_name, linker->btf, t, true /*strict*/, &dst_def, &dst_inner_def); in glob_map_defs_match()
1654 static bool btf_is_non_static(const struct btf_type *t) in btf_is_non_static() argument
1656 return (btf_is_var(t) && btf_var(t)->linkage != BTF_VAR_STATIC) in btf_is_non_static()
1657 || (btf_is_func(t) && btf_func_linkage(t) != BTF_FUNC_STATIC); in btf_is_non_static()
1664 const struct btf_type *t; in find_glob_sym_btf() local
1675 t = btf__type_by_id(obj->btf, i); in find_glob_sym_btf()
1680 if (btf_is_non_static(t)) { in find_glob_sym_btf()
1681 name = btf__str_by_offset(obj->btf, t->name_off); in find_glob_sym_btf()
1690 if (!btf_is_datasec(t)) in find_glob_sym_btf()
1693 vi = btf_var_secinfos(t); in find_glob_sym_btf()
1694 for (j = 0, m = btf_vlen(t); j < m; j++, vi++) { in find_glob_sym_btf()
1695 t = btf__type_by_id(obj->btf, vi->type); in find_glob_sym_btf()
1696 name = btf__str_by_offset(obj->btf, t->name_off); in find_glob_sym_btf()
1700 if (btf_is_var(t) && btf_var(t)->linkage == BTF_VAR_STATIC) in find_glob_sym_btf()
1702 if (btf_is_func(t) && btf_func_linkage(t) == BTF_FUNC_STATIC) in find_glob_sym_btf()
1858 const struct btf_type *t; in linker_append_elf_sym() local
1860 t = btf__type_by_id(obj->btf, btf_sec_id); in linker_append_elf_sym()
1861 sec_name = btf__str_by_offset(obj->btf, t->name_off); in linker_append_elf_sym()
2144 struct btf_type *t; in linker_fixup_btf() local
2146 t = btf_type_by_id(obj->btf, i); in linker_fixup_btf()
2147 if (btf_kind(t) != BTF_KIND_DATASEC) in linker_fixup_btf()
2150 sec_name = btf__str_by_offset(obj->btf, t->name_off); in linker_fixup_btf()
2155 t->size = sec->shdr->sh_size; in linker_fixup_btf()
2196 vi = btf_var_secinfos(t); in linker_fixup_btf()
2197 for (j = 0, m = btf_vlen(t); j < m; j++, vi++) { in linker_fixup_btf()
2245 const struct btf_type *t; in linker_append_btf() local
2262 t = btf__type_by_id(obj->btf, i); in linker_append_btf()
2265 if (btf_kind(t) == BTF_KIND_DATASEC) in linker_append_btf()
2268 if (btf_is_non_static(t)) { in linker_append_btf()
2270 name = btf__str_by_offset(obj->btf, t->name_off); in linker_append_btf()
2285 glob_sym->underlying_btf_id = -t->type; in linker_append_btf()
2298 id = btf__add_type(linker->btf, obj->btf, t); in linker_append_btf()
2309 glob_sym->underlying_btf_id = -t->type; in linker_append_btf()
2360 t = btf__type_by_id(obj->btf, src_sec->sec_type_id); in linker_append_btf()
2361 src_var = btf_var_secinfos(t); in linker_append_btf()
2362 n = btf_vlen(t); in linker_append_btf()
2368 t = btf_type_by_id(linker->btf, new_id); in linker_append_btf()
2369 if (btf_is_non_static(t)) { in linker_append_btf()
2370 name = btf__str_by_offset(linker->btf, t->name_off); in linker_append_btf()