Searched refs:btf_var (Results 1 – 9 of 9) sorted by relevance
158 struct btf_var { struct
346 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function348 return (struct btf_var *)(t + 1); in btf_var()
279 return base_size + sizeof(struct btf_var); in btf_type_size()344 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()1018 const struct btf_var *var; in btf_fixup_datasec()1042 var = btf_var(t_var); in btf_fixup_datasec()2200 struct btf_var *v; in btf__add_var()2216 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()2229 v = btf_var(t); in btf__add_var()
2223 const struct btf_var *var_extra; in bpf_object__init_user_btf_map()2229 var_extra = btf_var(var); in bpf_object__init_user_btf_map()2973 if (btf_var(t)->linkage != BTF_VAR_GLOBAL_EXTERN) in find_extern_btf_id()3217 btf_var(vt)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()3252 btf_var(t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
95 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_linkage"); in test_btf_endian()
225 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_type"); in test_btf_write()
6654 return base_size + sizeof(struct btf_var); in btf_type_size()
586 const struct btf_var *var; in __btf_dumper_type_only()651 var = (struct btf_var *)(t + 1); in __btf_dumper_type_only()
288 const struct btf_var *v = (const void *)(t + 1); in dump_btf_type()