Home
last modified time | relevance | path

Searched refs:btf_var (Results 1 – 18 of 18) sorted by relevance

/linux-6.12.1/tools/lib/bpf/
Dbtf.h590 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function
592 return (struct btf_var *)(t + 1); in btf_var()
Dlinker.c1442 is_static1 = btf_var(t1)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()
1443 is_static2 = btf_var(t2)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()
1687 return (btf_is_var(t) && btf_var(t)->linkage != BTF_VAR_STATIC) in btf_is_non_static()
1731 if (btf_is_var(t) && btf_var(t)->linkage == BTF_VAR_STATIC) in find_glob_sym_btf()
1788 btf_var(dst_t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in complete_extern_btf_info()
2239 var_linkage = btf_var(vt)->linkage; in linker_fixup_btf()
Dbtf.c321 return base_size + sizeof(struct btf_var); in btf_type_size()
398 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()
2722 struct btf_var *v; in btf__add_var()
2738 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()
2751 v = btf_var(t); in btf__add_var()
Dlibbpf.c1886 if (btf_var(vt)->linkage != BTF_VAR_STATIC) in map_is_mmapable()
2836 const struct btf_var *var_extra; in bpf_object__init_user_btf_map()
2843 var_extra = btf_var(var); in bpf_object__init_user_btf_map()
3337 struct btf_var *var; in btf_fixup_datasec()
3347 var = btf_var(t_var); in btf_fixup_datasec()
4012 btf_var(t)->linkage != BTF_VAR_GLOBAL_EXTERN) in find_extern_btf_id()
4347 btf_var(vt)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
4383 btf_var(t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
Dbtf_dump.c1998 enum btf_func_linkage linkage = btf_var(v)->linkage; in btf_dump_var_data()
/linux-6.12.1/tools/include/uapi/linux/
Dbtf.h165 struct btf_var { struct
/linux-6.12.1/include/uapi/linux/
Dbtf.h165 struct btf_var { struct
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dbtf_endian.c93 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_linkage"); in test_btf_endian()
Dbtf_write.c258 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_type"); in gen_btf()
Dbtf.c8043 return base_size + sizeof(struct btf_var); in btf_type_size()
/linux-6.12.1/tools/bpf/bpftool/
Dgen.c178 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()
Dbtf_dumper.c624 const struct btf_var *var; in __btf_dumper_type_only()
691 var = (struct btf_var *)(t + 1); in __btf_dumper_type_only()
Dbtf.c348 const struct btf_var *v = (const void *)(t + 1); in dump_btf_type()
/linux-6.12.1/tools/testing/selftests/bpf/
Dbtf_helpers.c187 t->type, btf_var_linkage_str(btf_var(t)->linkage)); in fprintf_btf_type_raw()
/linux-6.12.1/include/linux/
Dbpf_verifier.h558 } btf_var; member
/linux-6.12.1/Documentation/bpf/
Dbtf.rst423 struct btf_var {
427 ``btf_var.linkage`` may take the values: BTF_VAR_STATIC, BTF_VAR_GLOBAL_ALLOCATED or BTF_VAR_GLOBAL…
/linux-6.12.1/kernel/bpf/
Dverifier.c15628 dst_reg->type = aux->btf_var.reg_type; in check_ld_imm()
15631 dst_reg->mem_size = aux->btf_var.mem_size; in check_ld_imm()
15634 dst_reg->btf = aux->btf_var.btf; in check_ld_imm()
15635 dst_reg->btf_id = aux->btf_var.btf_id; in check_ld_imm()
18746 aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; in check_pseudo_btf_id()
18747 aux->btf_var.mem_size = 0; in check_pseudo_btf_id()
18765 aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; in check_pseudo_btf_id()
18766 aux->btf_var.btf = btf; in check_pseudo_btf_id()
18767 aux->btf_var.btf_id = type; in check_pseudo_btf_id()
18782 aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; in check_pseudo_btf_id()
[all …]
Dbtf.c739 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()
4614 const struct btf_var *var; in btf_var_check_meta()
4660 const struct btf_var *var = btf_type_var(t); in btf_var_log()