Searched refs:btf_kind (Results 1 – 10 of 10) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | btf_write.c | 33 ASSERT_EQ(btf_kind(t), BTF_KIND_INT, "int_kind"); in gen_btf() 57 ASSERT_EQ(btf_kind(t), BTF_KIND_PTR, "ptr_kind"); in gen_btf() 65 ASSERT_EQ(btf_kind(t), BTF_KIND_CONST, "const_kind"); in gen_btf() 73 ASSERT_EQ(btf_kind(t), BTF_KIND_VOLATILE, "volatile_kind"); in gen_btf() 81 ASSERT_EQ(btf_kind(t), BTF_KIND_RESTRICT, "restrict_kind"); in gen_btf() 90 ASSERT_EQ(btf_kind(t), BTF_KIND_ARRAY, "array_kind"); in gen_btf() 109 ASSERT_EQ(btf_kind(t), BTF_KIND_STRUCT, "struct_kind"); in gen_btf() 141 ASSERT_EQ(btf_kind(t), BTF_KIND_UNION, "union_kind"); in gen_btf() 164 ASSERT_EQ(btf_kind(t), BTF_KIND_ENUM, "enum_kind"); in gen_btf() 183 ASSERT_EQ(btf_kind(t), BTF_KIND_FWD, "fwd_kind"); in gen_btf() [all …]
|
D | btf.c | 7562 if (CHECK(btf_kind(test_type) != btf_kind(expect_type), in do_test_dedup() 7564 i, btf_kind(expect_type), btf_kind(test_type))) { in do_test_dedup()
|
/external/libbpf/src/ |
D | btf.h | 400 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() function 417 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void() 422 return btf_kind(t) == BTF_KIND_INT; in btf_is_int() 427 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr() 432 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array() 437 return btf_kind(t) == BTF_KIND_STRUCT; in btf_is_struct() 442 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union() 447 __u16 kind = btf_kind(t); in btf_is_composite() 454 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum() 459 return btf_kind(t) == BTF_KIND_FWD; in btf_is_fwd() [all …]
|
D | btf_dump.c | 318 switch (btf_kind(t)) { in btf_dump_mark_referenced() 497 switch (btf_kind(t)) { in btf_dump_order_type() 691 kind = btf_kind(t); in btf_dump_emit_type() 1167 switch (btf_kind(t)) { in btf_dump_emit_type_decl() 1189 btf_kind(t), id); in btf_dump_emit_type_decl() 1227 switch (btf_kind(t)) { in btf_dump_emit_mods() 1296 kind = btf_kind(t); in btf_dump_emit_type_chain() 1575 btf_dump_printf(d, "<unsupported kind:%u>", btf_kind(t)); in btf_dump_unsupported_data() 1667 if (btf_kind(t) == BTF_KIND_PTR) in btf_dump_base_type_check_zero() 2092 switch (btf_kind(t)) { in btf_dump_type_data_check_overflow() [all …]
|
D | btf.c | 293 switch (btf_kind(t)) { in btf_type_size() 322 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_type_size() 344 switch (btf_kind(t)) { in btf_bswap_type_rest() 398 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_bswap_type_rest() 595 switch (btf_kind(t)) { in btf__resolve_size() 642 __u16 kind = btf_kind(t); in btf__align_of() 675 pr_warn("unsupported BTF_KIND:%u\n", btf_kind(t)); in btf__align_of() 730 if (btf_kind(t) != kind) in btf_find_by_name_kind() 1603 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen() 2111 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, is_bitfield || btf_kflag(t)); in btf__add_field() [all …]
|
D | relo_core.c | 344 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_fields_are_compat() 347 switch (btf_kind(local_type)) { in bpf_core_fields_are_compat()
|
D | linker.c | 1333 if (btf_kind(t1) != btf_kind(t2)) { in glob_sym_btf_matches() 1339 switch (btf_kind(t1)) { in glob_sym_btf_matches() 1358 switch (btf_kind(t1)) { in glob_sym_btf_matches() 2143 if (btf_kind(t) != BTF_KIND_DATASEC) in linker_fixup_btf() 2254 if (btf_kind(t) == BTF_KIND_DATASEC) in linker_append_btf()
|
D | libbpf.c | 2119 return __btf_kind_str(btf_kind(t)); in btf_kind_str() 3498 switch (btf_kind(t)) { in find_kcfg_type() 5220 if (btf_kind(t) != btf_kind(local_t)) in bpf_core_add_cands() 5434 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_types_are_compat() 5447 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_types_are_compat() 5450 switch (btf_kind(local_type)) { in bpf_core_types_are_compat()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | btf_helpers.c | 98 kind = btf_kind(t); in fprintf_btf_type_raw()
|
/external/bpftool/src/ |
D | btf.c | 110 int kind = btf_kind(t); in dump_btf_type() 333 btf_kind_str[btf_kind_safe(btf_kind(vt))], in dump_btf_type()
|