Searched refs:btf_var (Results 1 – 18 of 18) sorted by relevance
593 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function595 return (struct btf_var *)(t + 1); in btf_var()
1481 is_static1 = btf_var(t1)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()1482 is_static2 = btf_var(t2)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()1726 return (btf_is_var(t) && btf_var(t)->linkage != BTF_VAR_STATIC) in btf_is_non_static()1770 if (btf_is_var(t) && btf_var(t)->linkage == BTF_VAR_STATIC) in find_glob_sym_btf()1827 btf_var(dst_t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in complete_extern_btf_info()2278 var_linkage = btf_var(vt)->linkage; in linker_fixup_btf()
322 return base_size + sizeof(struct btf_var); in btf_type_size()399 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()2723 struct btf_var *v; in btf__add_var()2739 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()2752 v = btf_var(t); in btf__add_var()
1907 if (btf_var(vt)->linkage != BTF_VAR_STATIC) in map_is_mmapable()2856 const struct btf_var *var_extra; in bpf_object__init_user_btf_map()2863 var_extra = btf_var(var); in bpf_object__init_user_btf_map()3357 struct btf_var *var; in btf_fixup_datasec()3367 var = btf_var(t_var); in btf_fixup_datasec()4039 btf_var(t)->linkage != BTF_VAR_GLOBAL_EXTERN) in find_extern_btf_id()4374 btf_var(vt)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()4410 btf_var(t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
1999 enum btf_func_linkage linkage = btf_var(v)->linkage; in btf_dump_var_data()
165 struct btf_var { struct
93 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_linkage"); in test_btf_endian()
258 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_type"); in gen_btf()
8043 return base_size + sizeof(struct btf_var); in btf_type_size()
178 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_datasec_def()372 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_subskel_datasecs()538 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_asserts()1696 if (btf_var(var_type)->linkage == BTF_VAR_STATIC) in do_subskeleton()1819 if (btf_var(var_type)->linkage == BTF_VAR_STATIC) in do_subskeleton()
624 const struct btf_var *var; in __btf_dumper_type_only()691 var = (struct btf_var *)(t + 1); in __btf_dumper_type_only()
353 const struct btf_var *v = (const void *)(t + 1); in dump_btf_type()
187 t->type, btf_var_linkage_str(btf_var(t)->linkage)); in fprintf_btf_type_raw()
543 } btf_var; member
15851 dst_reg->type = aux->btf_var.reg_type; in check_ld_imm()15854 dst_reg->mem_size = aux->btf_var.mem_size; in check_ld_imm()15857 dst_reg->btf = aux->btf_var.btf; in check_ld_imm()15858 dst_reg->btf_id = aux->btf_var.btf_id; in check_ld_imm()18971 aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; in check_pseudo_btf_id()18972 aux->btf_var.mem_size = 0; in check_pseudo_btf_id()18990 aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; in check_pseudo_btf_id()18991 aux->btf_var.btf = btf; in check_pseudo_btf_id()18992 aux->btf_var.btf_id = type; in check_pseudo_btf_id()19007 aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; in check_pseudo_btf_id()[all …]
739 static const struct btf_var *btf_type_var(const struct btf_type *t) in btf_type_var()741 return (const struct btf_var *)(t + 1); in btf_type_var()4638 const struct btf_var *var; in btf_var_check_meta()4684 const struct btf_var *var = btf_type_var(t); in btf_var_log()
423 struct btf_var {427 ``btf_var.linkage`` may take the values: BTF_VAR_STATIC, BTF_VAR_GLOBAL_ALLOCATED or BTF_VAR_GLOBAL…