Home
last modified time | relevance | path

Searched refs:btf_kflag (Results 1 – 12 of 12) 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.c1910 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.h445 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag() function
647 bool kflag = btf_kflag(t); in btf_member_bit_offset()
659 bool kflag = btf_kflag(t); in btf_member_bitfield_size()
H A Dbtf_dump.c1070 bool is_signed = btf_kflag(t); in btf_dump_emit_enum32_val()
1095 bool is_signed = btf_kflag(t); in btf_dump_emit_enum64_val()
1184 if (btf_kflag(t)) in btf_dump_emit_fwd_def()
1500 if (btf_kflag(t)) in btf_dump_emit_type_chain()
2227 bool is_signed = btf_kflag(t); in btf_dump_get_enum_value()
2272 is_signed = btf_kflag(t); in btf_dump_enum_data()
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()
H A Dbtf.c2128 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen()
2696 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, is_bitfield || btf_kflag(t)); in btf__add_field()
4778 return btf_kflag(t) ? BTF_KIND_UNION : BTF_KIND_STRUCT; in btf_fwd_kind()
5556 enum btf_fwd_kind fwd_kind = btf_kflag(t); in btf_dedup_resolve_fwd()
/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()
H A Dresolve_btfids.c252 if (!btf_is_type_tag(tag) || !btf_kflag(tag)) in is_arena_tagged_ptr()
/linux/tools/bpf/bpftool/
H A Dbtf.c196 if (btf_kflag(t)) { in dump_btf_type()
230 encoding = btf_kflag(t) ? "SIGNED" : "UNSIGNED"; in dump_btf_type()
246 if (btf_kflag(t)) in dump_btf_type()
252 if (btf_kflag(t)) in dump_btf_type()
267 encoding = btf_kflag(t) ? "SIGNED" : "UNSIGNED"; in dump_btf_type()
284 if (btf_kflag(t)) in dump_btf_type()
290 if (btf_kflag(t)) in dump_btf_type()
303 const char *fwd_kind = btf_kflag(t) ? "union" : "struct"; in dump_btf_type()
H A Dbtf_dumper.c479 kind_flag = btf_kflag(t); in btf_dumper_struct()
664 btf_kflag(t) ? "union" : "struct", in __btf_dumper_type_only()
/linux/tools/bpf/resolve_btfids/
H A Dmain.c1274 if (btf_kflag(t)) in process_kfunc_with_implicit_args()