Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/
Dbtf_helpers.c145 fmt_str = btf_kflag(t) ? "\n\t'%s' val=%d" : "\n\t'%s' val=%u"; in fprintf_btf_type_raw()
147 btf_kflag(t) ? "SIGNED" : "UNSIGNED", t->size, vlen); in fprintf_btf_type_raw()
158 fmt_str = btf_kflag(t) ? "\n\t'%s' val=%lld" : "\n\t'%s' val=%llu"; in fprintf_btf_type_raw()
161 btf_kflag(t) ? "SIGNED" : "UNSIGNED", t->size, vlen); in fprintf_btf_type_raw()
170 fprintf(out, " fwd_kind=%s", btf_kflag(t) ? "union" : "struct"); in fprintf_btf_type_raw()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c112 ASSERT_EQ(btf_kflag(t), true, "struct_kflag"); in gen_btf()
144 ASSERT_EQ(btf_kflag(t), true, "union_kflag"); in gen_btf()
185 ASSERT_EQ(btf_kflag(t), 0, "fwd_kflag"); in gen_btf()
194 ASSERT_EQ(btf_kflag(t), 1, "fwd_kflag"); in gen_btf()
/linux-6.1.9/tools/bpf/bpftool/
Dbtf.c214 encoding = btf_kflag(t) ? "SIGNED" : "UNSIGNED"; in dump_btf_type()
230 if (btf_kflag(t)) in dump_btf_type()
236 if (btf_kflag(t)) in dump_btf_type()
252 encoding = btf_kflag(t) ? "SIGNED" : "UNSIGNED"; in dump_btf_type()
269 if (btf_kflag(t)) in dump_btf_type()
275 if (btf_kflag(t)) in dump_btf_type()
/linux-6.1.9/tools/lib/bpf/
Dbtf.h330 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag() function
532 bool kflag = btf_kflag(t); in btf_member_bit_offset()
544 bool kflag = btf_kflag(t); in btf_member_bitfield_size()
Dbtf_dump.c1002 bool is_signed = btf_kflag(t); in btf_dump_emit_enum32_val()
1027 bool is_signed = btf_kflag(t); in btf_dump_emit_enum64_val()
1079 if (btf_kflag(t)) in btf_dump_emit_fwd_def()
2053 bool is_signed = btf_kflag(t); in btf_dump_get_enum_value()
2098 is_signed = btf_kflag(t); in btf_dump_enum_data()
Dlinker.c1311 if (btf_kflag(t1) && btf_is_union(t2)) in glob_sym_btf_matches()
1313 if (!btf_kflag(t1) && btf_is_struct(t2)) in glob_sym_btf_matches()
1316 sym_name, btf_kflag(t1) ? "union" : "struct", btf_kind_str(t2)); in glob_sym_btf_matches()
1318 if (btf_kflag(t2) && btf_is_union(t1)) in glob_sym_btf_matches()
1320 if (!btf_kflag(t2) && btf_is_struct(t1)) in glob_sym_btf_matches()
1323 sym_name, btf_kflag(t2) ? "union" : "struct", btf_kind_str(t1)); in glob_sym_btf_matches()
Dbtf.c1536 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen()
2044 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, is_bitfield || btf_kflag(t)); in btf__add_field()
3886 return btf_kflag(t) ? BTF_KIND_UNION : BTF_KIND_STRUCT; in btf_fwd_kind()