Home
last modified time | relevance | path

Searched refs:btf_kind (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dbtf.h178 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() function
195 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void()
200 return btf_kind(t) == BTF_KIND_INT; in btf_is_int()
205 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
210 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array()
215 return btf_kind(t) == BTF_KIND_STRUCT; in btf_is_struct()
220 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union()
225 __u16 kind = btf_kind(t); in btf_is_composite()
232 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum()
237 return btf_kind(t) == BTF_KIND_FWD; in btf_is_fwd()
[all …]
Dbtf_dump.c289 switch (btf_kind(t)) { in btf_dump_mark_referenced()
465 switch (btf_kind(t)) { in btf_dump_order_type()
656 kind = btf_kind(t); in btf_dump_emit_type()
1130 switch (btf_kind(t)) { in btf_dump_emit_type_decl()
1150 btf_kind(t), id); in btf_dump_emit_type_decl()
1188 switch (btf_kind(t)) { in btf_dump_emit_mods()
1257 kind = btf_kind(t); in btf_dump_emit_type_chain()
Dbtf.c258 switch (btf_kind(t)) { in btf_type_size()
283 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_type_size()
305 switch (btf_kind(t)) { in btf_bswap_type_rest()
354 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_bswap_type_rest()
547 switch (btf_kind(t)) { in btf__resolve_size()
591 __u16 kind = btf_kind(t); in btf__align_of()
622 pr_warn("unsupported BTF_KIND:%u\n", btf_kind(t)); in btf__align_of()
677 if (btf_kind(t) != kind) in btf__find_by_name_kind()
1557 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen()
1851 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, is_bitfield || btf_kflag(t)); in btf__add_field()
[all …]
Dlibbpf.c1903 switch (btf_kind(t)) { in btf_kind_str()
3018 switch (btf_kind(t)) { in find_kcfg_type()
4707 if (btf_kind(t) != btf_kind(local_t)) in bpf_core_find_cands()
4770 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_fields_are_compat()
4773 switch (btf_kind(local_type)) { in bpf_core_fields_are_compat()
4803 btf_kind(local_type), local_id, targ_id); in bpf_core_fields_are_compat()
4924 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_types_are_compat()
4937 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_types_are_compat()
4940 switch (btf_kind(local_type)) { in bpf_core_types_are_compat()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c38 ASSERT_EQ(btf_kind(t), BTF_KIND_INT, "int_kind"); in test_btf_write()
60 ASSERT_EQ(btf_kind(t), BTF_KIND_PTR, "ptr_kind"); in test_btf_write()
66 ASSERT_EQ(btf_kind(t), BTF_KIND_CONST, "const_kind"); in test_btf_write()
72 ASSERT_EQ(btf_kind(t), BTF_KIND_VOLATILE, "volatile_kind"); in test_btf_write()
78 ASSERT_EQ(btf_kind(t), BTF_KIND_RESTRICT, "restrict_kind"); in test_btf_write()
85 ASSERT_EQ(btf_kind(t), BTF_KIND_ARRAY, "array_kind"); in test_btf_write()
102 ASSERT_EQ(btf_kind(t), BTF_KIND_STRUCT, "struct_kind"); in test_btf_write()
130 ASSERT_EQ(btf_kind(t), BTF_KIND_UNION, "union_kind"); in test_btf_write()
150 ASSERT_EQ(btf_kind(t), BTF_KIND_ENUM, "enum_kind"); in test_btf_write()
165 ASSERT_EQ(btf_kind(t), BTF_KIND_FWD, "fwd_kind"); in test_btf_write()
[all …]