Home
last modified time | relevance | path

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

/tools/include/uapi/linux/
Dbtf.h158 struct btf_var { struct
/tools/lib/bpf/
Dbtf.h346 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function
348 return (struct btf_var *)(t + 1); in btf_var()
Dbtf.c279 return base_size + sizeof(struct btf_var); in btf_type_size()
344 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()
1018 const struct btf_var *var; in btf_fixup_datasec()
1042 var = btf_var(t_var); in btf_fixup_datasec()
2200 struct btf_var *v; in btf__add_var()
2216 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()
2229 v = btf_var(t); in btf__add_var()
Dlibbpf.c2223 const struct btf_var *var_extra; in bpf_object__init_user_btf_map()
2229 var_extra = btf_var(var); in bpf_object__init_user_btf_map()
2973 if (btf_var(t)->linkage != BTF_VAR_GLOBAL_EXTERN) in find_extern_btf_id()
3217 btf_var(vt)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
3252 btf_var(t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
/tools/testing/selftests/bpf/prog_tests/
Dbtf_endian.c95 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_linkage"); in test_btf_endian()
Dbtf_write.c225 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_type"); in test_btf_write()
Dbtf.c6654 return base_size + sizeof(struct btf_var); in btf_type_size()
/tools/bpf/bpftool/
Dbtf_dumper.c586 const struct btf_var *var; in __btf_dumper_type_only()
651 var = (struct btf_var *)(t + 1); in __btf_dumper_type_only()
Dbtf.c288 const struct btf_var *v = (const void *)(t + 1); in dump_btf_type()