Searched refs:btf_kind (Results 1 – 10 of 10) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | btf_write.c | 37 ASSERT_EQ(btf_kind(t), BTF_KIND_INT, "int_kind"); in test_btf_write() 61 ASSERT_EQ(btf_kind(t), BTF_KIND_PTR, "ptr_kind"); in test_btf_write() 69 ASSERT_EQ(btf_kind(t), BTF_KIND_CONST, "const_kind"); in test_btf_write() 77 ASSERT_EQ(btf_kind(t), BTF_KIND_VOLATILE, "volatile_kind"); in test_btf_write() 85 ASSERT_EQ(btf_kind(t), BTF_KIND_RESTRICT, "restrict_kind"); in test_btf_write() 94 ASSERT_EQ(btf_kind(t), BTF_KIND_ARRAY, "array_kind"); in test_btf_write() 113 ASSERT_EQ(btf_kind(t), BTF_KIND_STRUCT, "struct_kind"); in test_btf_write() 145 ASSERT_EQ(btf_kind(t), BTF_KIND_UNION, "union_kind"); in test_btf_write() 168 ASSERT_EQ(btf_kind(t), BTF_KIND_ENUM, "enum_kind"); in test_btf_write() 187 ASSERT_EQ(btf_kind(t), BTF_KIND_FWD, "fwd_kind"); in test_btf_write() [all …]
|
D | btf.c | 6982 if (CHECK(btf_kind(test_type) != btf_kind(expect_type), in do_test_dedup() 6984 i, btf_kind(expect_type), btf_kind(test_type))) { in do_test_dedup()
|
/tools/lib/bpf/ |
D | btf.h | 215 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() function 232 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void() 237 return btf_kind(t) == BTF_KIND_INT; in btf_is_int() 242 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr() 247 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array() 252 return btf_kind(t) == BTF_KIND_STRUCT; in btf_is_struct() 257 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union() 262 __u16 kind = btf_kind(t); in btf_is_composite() 269 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum() 274 return btf_kind(t) == BTF_KIND_FWD; in btf_is_fwd() [all …]
|
D | btf.c | 288 switch (btf_kind(t)) { in btf_type_size() 314 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_type_size() 336 switch (btf_kind(t)) { in btf_bswap_type_rest() 386 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_bswap_type_rest() 578 switch (btf_kind(t)) { in btf__resolve_size() 623 __u16 kind = btf_kind(t); in btf__align_of() 668 pr_warn("unsupported BTF_KIND:%u\n", btf_kind(t)); in btf__align_of() 723 if (btf_kind(t) != kind) in btf__find_by_name_kind() 1642 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen() 2016 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, is_bitfield || btf_kflag(t)); in btf__add_field() [all …]
|
D | btf_dump.c | 316 switch (btf_kind(t)) { in btf_dump_mark_referenced() 493 switch (btf_kind(t)) { in btf_dump_order_type() 685 kind = btf_kind(t); in btf_dump_emit_type() 1223 switch (btf_kind(t)) { in btf_dump_emit_type_decl() 1244 btf_kind(t), id); in btf_dump_emit_type_decl() 1282 switch (btf_kind(t)) { in btf_dump_emit_mods() 1351 kind = btf_kind(t); in btf_dump_emit_type_chain() 1642 btf_dump_printf(d, "<unsupported kind:%u>", btf_kind(t)); in btf_dump_unsupported_data() 1735 if (btf_kind(t) == BTF_KIND_PTR) in btf_dump_base_type_check_zero() 2169 switch (btf_kind(t)) { in btf_dump_type_data_check_overflow() [all …]
|
D | relo_core.c | 316 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_fields_are_compat() 319 switch (btf_kind(local_type)) { in bpf_core_fields_are_compat() 350 btf_kind(local_type), local_id, targ_id); in bpf_core_fields_are_compat()
|
D | linker.c | 1334 if (btf_kind(t1) != btf_kind(t2)) { in glob_sym_btf_matches() 1340 switch (btf_kind(t1)) { in glob_sym_btf_matches() 1359 switch (btf_kind(t1)) { in glob_sym_btf_matches() 2144 if (btf_kind(t) != BTF_KIND_DATASEC) in linker_fixup_btf() 2255 if (btf_kind(t) == BTF_KIND_DATASEC) in linker_append_btf()
|
D | libbpf.c | 1996 return __btf_kind_str(btf_kind(t)); in btf_kind_str() 3204 switch (btf_kind(t)) { in find_kcfg_type() 4834 if (btf_kind(t) != btf_kind(local_cand->t)) in bpf_core_add_cands() 5047 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_types_are_compat() 5060 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_types_are_compat() 5063 switch (btf_kind(local_type)) { in bpf_core_types_are_compat()
|
/tools/testing/selftests/bpf/ |
D | btf_helpers.c | 96 kind = btf_kind(t); in fprintf_btf_type_raw()
|
/tools/bpf/bpftool/ |
D | btf.c | 112 int kind = btf_kind(t); in dump_btf_type() 334 btf_kind_str[btf_kind_safe(btf_kind(vt))], in dump_btf_type()
|