BTF_FUNC_GLOBAL
if (btf_type_vlen(t) > BTF_FUNC_GLOBAL) {
if (btf_func_linkage(t1) != BTF_FUNC_GLOBAL) {
if (btf_func_linkage(t2) != BTF_FUNC_GLOBAL) {
bool is_global = subprog_aux(env, subprog)->linkage == BTF_FUNC_GLOBAL;
if (btf_func_linkage(t) != BTF_FUNC_GLOBAL) {
return aux && aux[subprog].linkage == BTF_FUNC_GLOBAL;
case BTF_FUNC_GLOBAL:
if (linkage != BTF_FUNC_STATIC && linkage != BTF_FUNC_GLOBAL &&
case BTF_FUNC_GLOBAL:
BTF_TYPE_ENC(5, BTF_INFO_ENC(BTF_KIND_FUNC, 0, BTF_FUNC_GLOBAL), 2),
BTF_TYPE_ENC(1 /* "a" */, BTF_INFO_ENC(BTF_KIND_FUNC, 0, BTF_FUNC_GLOBAL), 3),
BTF_TYPE_ENC(3 /* "b" */, BTF_INFO_ENC(BTF_KIND_FUNC, 0, BTF_FUNC_GLOBAL), 5),
if (!btf_is_func(t) || btf_func_linkage(t) != BTF_FUNC_GLOBAL)
vt->info |= BTF_FUNC_GLOBAL;
if (!btf_is_func(t) || btf_func_linkage(t) != BTF_FUNC_GLOBAL) {
if (!btf_is_func(fn_t) || btf_func_linkage(fn_t) != BTF_FUNC_GLOBAL)
dst_t->info = btf_type_info(BTF_KIND_FUNC, BTF_FUNC_GLOBAL, 0);
case BTF_FUNC_GLOBAL:
btf__add_func(btf, "func", BTF_FUNC_GLOBAL, 13);/* [14] int func(int p1, int *p2); */
id = btf__add_func(btf, "func1", BTF_FUNC_GLOBAL, 15);
ASSERT_EQ(btf_vlen(t), BTF_FUNC_GLOBAL, "func_vlen");