Searched refs:btf_var (Results 1 – 14 of 14) sorted by relevance
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()1005 const struct btf_var *var; in btf_fixup_datasec()1029 var = btf_var(t_var); in btf_fixup_datasec()2187 struct btf_var *v; in btf__add_var()2203 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()2216 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()
158 struct btf_var { struct
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()
6625 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()
347 } btf_var; member
413 struct btf_var {417 ``struct btf_var`` encoding:
8158 dst_reg->type = aux->btf_var.reg_type; in check_ld_imm()8161 dst_reg->mem_size = aux->btf_var.mem_size; in check_ld_imm()8165 dst_reg->btf_id = aux->btf_var.btf_id; in check_ld_imm()10151 aux->btf_var.reg_type = PTR_TO_PERCPU_BTF_ID; in check_pseudo_btf_id()10152 aux->btf_var.btf_id = type; in check_pseudo_btf_id()10166 aux->btf_var.reg_type = PTR_TO_MEM; in check_pseudo_btf_id()10167 aux->btf_var.mem_size = tsize; in check_pseudo_btf_id()10169 aux->btf_var.reg_type = PTR_TO_BTF_ID; in check_pseudo_btf_id()10170 aux->btf_var.btf_id = type; in check_pseudo_btf_id()
591 static const struct btf_var *btf_type_var(const struct btf_type *t) in btf_type_var()593 return (const struct btf_var *)(t + 1); in btf_type_var()3399 const struct btf_var *var; in btf_var_check_meta()3445 const struct btf_var *var = btf_type_var(t); in btf_var_log()