Home
last modified time | relevance | path

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

/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()
H A Dveristat.c1835 return btf_kflag(t); in find_enum_value()
/linux/tools/lib/bpf/
H A Dbtf_relocate.c21 #define btf_kflag btf_type_kflag macro
299 if (btf_kflag(dist_t) != btf_kflag(base_t)) in btf_relocate_map_distilled_base()
303 if (btf_kflag(base_t)) in btf_relocate_map_distilled_base()
307 if (!btf_kflag(base_t)) in btf_relocate_map_distilled_base()
H A Dbtf.h381 static inline bool btf_kflag(const struct btf_type *t) in btf_is_void()
583 bool kflag = btf_kflag(t); in btf_member_bitfield_size()
595 bool kflag = btf_kflag(t); in btf_params()
373 static inline bool btf_kflag(const struct btf_type *t) btf_kflag() function
/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()
/linux/tools/bpf/bpftool/
H A Dbtf.c231 encoding = btf_kflag(t) ? "SIGNED" : "UNSIGNED"; in dump_btf_type()
247 if (btf_kflag(t)) in dump_btf_type()
253 if (btf_kflag(t)) in dump_btf_type()
269 encoding = btf_kflag(t) ? "SIGNED" : "UNSIGNED"; in dump_btf_type()
286 if (btf_kflag(t)) in dump_btf_type()
292 if (btf_kflag(t)) in dump_btf_type()