Home
last modified time | relevance | path

Searched refs:btf_kflag (Results 1 – 8 of 8) 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.c1848 return btf_kflag(t); in is_signed_type()
/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.h443 static inline bool btf_kflag(const struct btf_type *t) in btf_is_const()
645 bool kflag = btf_kflag(t);
657 bool kflag = btf_kflag(t);
373 static inline bool btf_kflag(const struct btf_type *t) btf_kflag() function
H A Dlinker.c1507 if (btf_kflag(t1) && btf_is_union(t2)) in glob_sym_btf_matches()
1509 if (!btf_kflag(t1) && btf_is_struct(t2)) in glob_sym_btf_matches()
1512 sym_name, btf_kflag(t1) ? "union" : "struct", btf_kind_str(t2)); in glob_sym_btf_matches()
1514 if (btf_kflag(t2) && btf_is_union(t1)) in glob_sym_btf_matches()
1516 if (!btf_kflag(t2) && btf_is_struct(t1)) in glob_sym_btf_matches()
1519 sym_name, btf_kflag(t2) ? "union" : "struct", btf_kind_str(t1)); in glob_sym_btf_matches()
/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.c232 encoding = btf_kflag(t) ? "SIGNED" : "UNSIGNED"; in dump_btf_type()
248 if (btf_kflag(t)) in dump_btf_type()
254 if (btf_kflag(t)) in dump_btf_type()
270 encoding = btf_kflag(t) ? "SIGNED" : "UNSIGNED"; in dump_btf_type()
287 if (btf_kflag(t)) in dump_btf_type()
293 if (btf_kflag(t)) in dump_btf_type()
/linux/tools/bpf/resolve_btfids/
H A Dmain.c1007 if (btf_kflag(t) || btf_decl_tag(t)->component_idx != -1) in collect_kfuncs()
1168 if (btf_kflag(t)) in process_kfunc_with_implicit_args()