Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/
H A 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()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
/openbmc/linux/tools/bpf/bpftool/
H A 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()
/openbmc/linux/tools/lib/bpf/
H A 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()
H A Dbtf_dump.c1066 bool is_signed = btf_kflag(t); in btf_dump_emit_enum32_val()
1091 bool is_signed = btf_kflag(t); in btf_dump_emit_enum64_val()
1180 if (btf_kflag(t)) in btf_dump_emit_fwd_def()
2155 bool is_signed = btf_kflag(t); in btf_dump_get_enum_value()
2200 is_signed = btf_kflag(t); in btf_dump_enum_data()
H A Dlinker.c1323 if (btf_kflag(t1) && btf_is_union(t2)) in glob_sym_btf_matches()
1325 if (!btf_kflag(t1) && btf_is_struct(t2)) in glob_sym_btf_matches()
1328 sym_name, btf_kflag(t1) ? "union" : "struct", btf_kind_str(t2)); in glob_sym_btf_matches()
1330 if (btf_kflag(t2) && btf_is_union(t1)) in glob_sym_btf_matches()
1332 if (!btf_kflag(t2) && btf_is_struct(t1)) in glob_sym_btf_matches()
1335 sym_name, btf_kflag(t2) ? "union" : "struct", btf_kind_str(t1)); in glob_sym_btf_matches()
H A Dbtf.c1548 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen()
2057 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, is_bitfield || btf_kflag(t)); in btf__add_field()
3882 return btf_kflag(t) ? BTF_KIND_UNION : BTF_KIND_STRUCT; in btf_fwd_kind()
4566 enum btf_fwd_kind fwd_kind = btf_kflag(t); in btf_dedup_resolve_fwd()