Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H A Dbtf.h593 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function
595 return (struct btf_var *)(t + 1); in btf_var()
H A Dlinker.c1481 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()
H A Dbtf.c322 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()
H A Dlibbpf.c1907 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()
H A Dbtf_dump.c1999 enum btf_func_linkage linkage = btf_var(v)->linkage; in btf_dump_var_data()
/linux/include/uapi/linux/
H A Dbtf.h165 struct btf_var { struct
/linux/tools/include/uapi/linux/
H A Dbtf.h165 struct btf_var { struct
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_endian.c93 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_linkage"); in test_btf_endian()
H A Dbtf_write.c258 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_type"); in gen_btf()
H A Dbtf.c8043 return base_size + sizeof(struct btf_var); in btf_type_size()
/linux/tools/bpf/bpftool/
H A 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()
H A 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()
H A Dbtf.c353 const struct btf_var *v = (const void *)(t + 1); in dump_btf_type()
/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c187 t->type, btf_var_linkage_str(btf_var(t)->linkage)); in fprintf_btf_type_raw()
/linux/include/linux/
H A Dbpf_verifier.h543 } btf_var; member
/linux/kernel/bpf/
H A Dverifier.c15851 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 …]
H A 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()
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()
/linux/Documentation/bpf/
H A Dbtf.rst423 struct btf_var {
427 ``btf_var.linkage`` may take the values: BTF_VAR_STATIC, BTF_VAR_GLOBAL_ALLOCATED or BTF_VAR_GLOBAL…