Home
last modified time | relevance | path

Searched refs:linkage (Results 1 – 16 of 16) sorted by relevance

/tools/perf/util/include/linux/
Dlinkage.h37 #define SYM_ENTRY(name, linkage, align...) \ argument
38 linkage(name) ASM_NL \
45 #define SYM_START(name, linkage, align...) \ argument
46 SYM_ENTRY(name, linkage, align)
59 #define SYM_ALIAS(alias, name, sym_type, linkage) \ argument
60 linkage(alias) ASM_NL \
122 #define SYM_TYPED_START(name, linkage, align...) \ argument
123 SYM_START(name, linkage, align)
/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst186 [20] VAR 'struct_global_var' type_id=4, linkage=global-alloc
187 [21] VAR 'global_var' type_id=3, linkage=global-alloc
188 [22] VAR 'my_func.static_var' type_id=3, linkage=static
256 [104852] FUNC 'i2c_register_spd' type_id=84745 linkage=static
257 [104853] FUNC 'smbalert_driver_init' type_id=1213 linkage=static
260 [104855] FUNC 'i2c_handle_smbus_alert' type_id=104854 linkage=static
261 [104856] FUNC 'smbalert_remove' type_id=104854 linkage=static
265 [104858] FUNC 'smbalert_probe' type_id=104857 linkage=static
266 [104859] FUNC 'smbalert_work' type_id=9695 linkage=static
267 [104860] FUNC 'smbus_alert' type_id=71367 linkage=static
[all …]
/tools/bpf/bpftool/
Dbtf.c62 static const char *btf_var_linkage_str(__u32 linkage) in btf_var_linkage_str() argument
64 switch (linkage) { in btf_var_linkage_str()
298 const char *linkage = btf_func_linkage_str(t); in dump_btf_type() local
302 jsonw_string_field(w, "linkage", linkage); in dump_btf_type()
304 printf(" type_id=%u linkage=%s", t->type, linkage); in dump_btf_type()
339 const char *linkage; in dump_btf_type() local
341 linkage = btf_var_linkage_str(v->linkage); in dump_btf_type()
345 jsonw_string_field(w, "linkage", linkage); in dump_btf_type()
347 printf(" type_id=%u, linkage=%s", t->type, linkage); in dump_btf_type()
Dgen.c155 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()
Dbtf_dumper.c692 if (var->linkage == BTF_VAR_STATIC) in __btf_dumper_type_only()
/tools/testing/selftests/bpf/
Dtest_btf.h36 #define BTF_VAR_ENC(name, type, linkage) \ argument
37 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_VAR, 0, 0), type), (linkage)
Dbtf_helpers.c55 static const char *btf_var_linkage_str(__u32 linkage) in btf_var_linkage_str() argument
57 switch (linkage) { in btf_var_linkage_str()
187 t->type, btf_var_linkage_str(btf_var(t)->linkage)); in fprintf_btf_type_raw()
/tools/include/uapi/linux/
Dbtf.h166 __u32 linkage; member
/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()
/tools/lib/bpf/
Dbtf.h208 enum btf_func_linkage linkage, int proto_type_id);
213 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
Dbtf.c395 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()
2360 enum btf_func_linkage linkage, int proto_type_id) in btf__add_func() argument
2366 if (linkage != BTF_FUNC_STATIC && linkage != BTF_FUNC_GLOBAL && in btf__add_func()
2367 linkage != BTF_FUNC_EXTERN) in btf__add_func()
2374 t->info = btf_type_info(BTF_KIND_FUNC, linkage, 0); in btf__add_func()
2478 int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id) in btf__add_var() argument
2487 if (linkage != BTF_VAR_STATIC && linkage != BTF_VAR_GLOBAL_ALLOCATED && in btf__add_var()
2488 linkage != BTF_VAR_GLOBAL_EXTERN) in btf__add_var()
2511 v->linkage = linkage; in btf__add_var()
Dlinker.c1409 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()
2206 var_linkage = btf_var(vt)->linkage; in linker_fixup_btf()
Dbtf_dump.c1997 enum btf_func_linkage linkage = btf_var(v)->linkage; in btf_dump_var_data() local
2002 switch (linkage) { in btf_dump_var_data()
Dlibbpf.c1628 if (btf_var(vt)->linkage != BTF_VAR_STATIC) in map_is_mmapable()
2505 static const char *btf_var_linkage_str(__u32 linkage) in btf_var_linkage_str() argument
2507 switch (linkage) { in btf_var_linkage_str()
2547 if (var_extra->linkage != BTF_VAR_GLOBAL_ALLOCATED) { in bpf_object__init_user_btf_map()
2549 map_name, btf_var_linkage_str(var_extra->linkage)); in bpf_object__init_user_btf_map()
2967 if (var->linkage == BTF_VAR_STATIC || var->linkage == BTF_VAR_GLOBAL_EXTERN) in btf_fixup_datasec()
2996 var->linkage = BTF_VAR_STATIC; in btf_fixup_datasec()
3613 btf_var(t)->linkage != BTF_VAR_GLOBAL_EXTERN) in find_extern_btf_id()
3948 btf_var(vt)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
3984 btf_var(t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in bpf_object__collect_externs()
/tools/memory-model/Documentation/
Drecipes.txt529 given litmus test. There are three types of linkage: