Searched refs:btf_var (Results 1 – 18 of 18) sorted by relevance
554 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function556 return (struct btf_var *)(t + 1); in btf_var()
1409 is_static1 = btf_var(t1)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()1410 is_static2 = btf_var(t2)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()1654 return (btf_is_var(t) && btf_var(t)->linkage != BTF_VAR_STATIC) in btf_is_non_static()1698 if (btf_is_var(t) && btf_var(t)->linkage == BTF_VAR_STATIC) in find_glob_sym_btf()1755 btf_var(dst_t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in complete_extern_btf_info()2198 int var_linkage = btf_var(vt)->linkage; in linker_fixup_btf()
318 return base_size + sizeof(struct btf_var); in btf_type_size()395 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()2481 struct btf_var *v; in btf__add_var()2497 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()2510 v = btf_var(t); in btf__add_var()
1627 if (btf_var(vt)->linkage != BTF_VAR_STATIC) in map_is_mmapable()2523 const struct btf_var *var_extra; in bpf_object__init_user_btf_map()2530 var_extra = btf_var(var); in bpf_object__init_user_btf_map()2955 struct btf_var *var; in btf_fixup_datasec()2965 var = btf_var(t_var); in btf_fixup_datasec()3612 btf_var(t)->linkage != BTF_VAR_GLOBAL_EXTERN) in find_extern_btf_id()3947 btf_var(vt)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()3983 btf_var(t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
1995 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()
7980 return base_size + sizeof(struct btf_var); in btf_type_size()
155 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_datasec_def()342 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_subskel_datasecs()508 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_asserts()1404 if (btf_var(var_type)->linkage == BTF_VAR_STATIC) in do_subskeleton()1522 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()
338 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()
491 } btf_var; member
425 struct btf_var {429 ``struct btf_var`` encoding:
14742 dst_reg->type = aux->btf_var.reg_type; in check_ld_imm()14745 dst_reg->mem_size = aux->btf_var.mem_size; in check_ld_imm()14748 dst_reg->btf = aux->btf_var.btf; in check_ld_imm()14749 dst_reg->btf_id = aux->btf_var.btf_id; in check_ld_imm()17387 aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; in check_pseudo_btf_id()17388 aux->btf_var.mem_size = 0; in check_pseudo_btf_id()17406 aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; in check_pseudo_btf_id()17407 aux->btf_var.btf = btf; in check_pseudo_btf_id()17408 aux->btf_var.btf_id = type; in check_pseudo_btf_id()17423 aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; in check_pseudo_btf_id()[all …]
724 static const struct btf_var *btf_type_var(const struct btf_type *t) in btf_type_var()726 return (const struct btf_var *)(t + 1); in btf_type_var()4409 const struct btf_var *var; in btf_var_check_meta()4455 const struct btf_var *var = btf_type_var(t); in btf_var_log()