Home
last modified time | relevance | path

Searched refs:btf_kflag (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c115 ASSERT_EQ(btf_kflag(t), true, "struct_kflag"); in test_btf_write()
147 ASSERT_EQ(btf_kflag(t), true, "union_kflag"); in test_btf_write()
188 ASSERT_EQ(btf_kflag(t), 0, "fwd_kflag"); in test_btf_write()
197 ASSERT_EQ(btf_kflag(t), 1, "fwd_kflag"); in test_btf_write()
/tools/lib/bpf/
Dbtf.h225 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag() function
366 bool kflag = btf_kflag(t); in btf_member_bit_offset()
378 bool kflag = btf_kflag(t); in btf_member_bitfield_size()
Dlinker.c1317 if (btf_kflag(t1) && btf_is_union(t2)) in glob_sym_btf_matches()
1319 if (!btf_kflag(t1) && btf_is_struct(t2)) in glob_sym_btf_matches()
1322 sym_name, btf_kflag(t1) ? "union" : "struct", btf_kind_str(t2)); in glob_sym_btf_matches()
1324 if (btf_kflag(t2) && btf_is_union(t1)) in glob_sym_btf_matches()
1326 if (!btf_kflag(t2) && btf_is_struct(t1)) in glob_sym_btf_matches()
1329 sym_name, btf_kflag(t2) ? "union" : "struct", btf_kind_str(t1)); in glob_sym_btf_matches()
Dbtf.c1642 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen()
2016 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, is_bitfield || btf_kflag(t)); in btf__add_field()
3730 return btf_kflag(t) ? BTF_KIND_UNION : BTF_KIND_STRUCT; in btf_fwd_kind()
Dbtf_dump.c1087 if (btf_kflag(t)) in btf_dump_emit_fwd_def()
/tools/testing/selftests/bpf/
Dbtf_helpers.c148 fprintf(out, " fwd_kind=%s", btf_kflag(t) ? "union" : "struct"); in fprintf_btf_type_raw()