Searched refs:btf_kflag (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | btf_helpers.c | 145 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/ |
D | btf_write.c | 112 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/ |
D | btf.c | 214 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/ |
D | btf.h | 330 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()
|
D | btf_dump.c | 1002 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()
|
D | linker.c | 1311 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()
|
D | btf.c | 1536 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()
|