Searched refs:btf_var (Results 1 – 14 of 14) sorted by relevance
345 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function347 return (struct btf_var *)(t + 1); in btf_var()
282 return base_size + sizeof(struct btf_var); in btf_type_size()347 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()1008 const struct btf_var *var; in btf_fixup_datasec()1032 var = btf_var(t_var); in btf_fixup_datasec()2190 struct btf_var *v; in btf__add_var()2206 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()2219 v = btf_var(t); in btf__add_var()
2222 const struct btf_var *var_extra; in bpf_object__init_user_btf_map()2228 var_extra = btf_var(var); in bpf_object__init_user_btf_map()2972 if (btf_var(t)->linkage != BTF_VAR_GLOBAL_EXTERN) in find_extern_btf_id()3216 btf_var(vt)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()3251 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()
317 } btf_var; member
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()
413 struct btf_var {417 ``struct btf_var`` encoding:
7642 dst_reg->type = aux->btf_var.reg_type; in check_ld_imm()7645 dst_reg->mem_size = aux->btf_var.mem_size; in check_ld_imm()7649 dst_reg->btf_id = aux->btf_var.btf_id; in check_ld_imm()9644 aux->btf_var.reg_type = PTR_TO_PERCPU_BTF_ID; in check_pseudo_btf_id()9645 aux->btf_var.btf_id = type; in check_pseudo_btf_id()9659 aux->btf_var.reg_type = PTR_TO_MEM; in check_pseudo_btf_id()9660 aux->btf_var.mem_size = tsize; in check_pseudo_btf_id()9662 aux->btf_var.reg_type = PTR_TO_BTF_ID; in check_pseudo_btf_id()9663 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()