Searched refs:btf_var (Results 1 – 18 of 18) sorted by relevance
164 struct btf_var { struct
584 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function586 return (struct btf_var *)(t + 1); in btf_var()
1395 is_static1 = btf_var(t1)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()1396 is_static2 = btf_var(t2)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()1640 return (btf_is_var(t) && btf_var(t)->linkage != BTF_VAR_STATIC) in btf_is_non_static()1684 if (btf_is_var(t) && btf_var(t)->linkage == BTF_VAR_STATIC) in find_glob_sym_btf()1741 btf_var(dst_t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in complete_extern_btf_info()2191 int var_linkage = btf_var(vt)->linkage; in linker_fixup_btf()
316 return base_size + sizeof(struct btf_var); in btf_type_size()385 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()2449 struct btf_var *v; in btf__add_var()2465 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()2478 v = btf_var(t); in btf__add_var()
2499 const struct btf_var *var_extra; in bpf_object__init_user_btf_map()2506 var_extra = btf_var(var); in bpf_object__init_user_btf_map()2866 const struct btf_var *var; in btf_fixup_datasec()2895 var = btf_var(t_var); in btf_fixup_datasec()3533 btf_var(t)->linkage != BTF_VAR_GLOBAL_EXTERN) in find_extern_btf_id()3855 btf_var(vt)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()3891 btf_var(t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
1833 enum btf_func_linkage linkage = btf_var(v)->linkage; in btf_dump_var_data()
93 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_linkage"); in test_btf_endian()
257 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_type"); in gen_btf()
7528 return base_size + sizeof(struct btf_var); in btf_type_size()
155 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_datasec_def()343 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_subskel_datasecs()506 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_asserts()1400 if (btf_var(var_type)->linkage == BTF_VAR_STATIC) in do_subskeleton()1518 if (btf_var(var_type)->linkage == BTF_VAR_STATIC) in do_subskeleton()
596 const struct btf_var *var; in __btf_dumper_type_only()662 var = (struct btf_var *)(t + 1); in __btf_dumper_type_only()
292 const struct btf_var *v = (const void *)(t + 1); in dump_btf_type()
168 t->type, btf_var_linkage_str(btf_var(t)->linkage)); in fprintf_btf_type_raw()
375 } btf_var; member
10225 dst_reg->type = aux->btf_var.reg_type; in check_ld_imm()10228 dst_reg->mem_size = aux->btf_var.mem_size; in check_ld_imm()10231 dst_reg->btf = aux->btf_var.btf; in check_ld_imm()10232 dst_reg->btf_id = aux->btf_var.btf_id; in check_ld_imm()12429 aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; in check_pseudo_btf_id()12430 aux->btf_var.btf = btf; in check_pseudo_btf_id()12431 aux->btf_var.btf_id = type; in check_pseudo_btf_id()12446 aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; in check_pseudo_btf_id()12447 aux->btf_var.mem_size = tsize; in check_pseudo_btf_id()12449 aux->btf_var.reg_type = PTR_TO_BTF_ID; in check_pseudo_btf_id()[all …]
704 static const struct btf_var *btf_type_var(const struct btf_type *t) in btf_type_var()706 return (const struct btf_var *)(t + 1); in btf_type_var()3915 const struct btf_var *var; in btf_var_check_meta()3961 const struct btf_var *var = btf_type_var(t); in btf_var_log()
416 struct btf_var {420 ``struct btf_var`` encoding: