Home
last modified time | relevance | path

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

/openbmc/linux/tools/lib/bpf/
H A Dbtf.h337 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void()
342 return btf_kind(t) == BTF_KIND_INT; in btf_is_int()
347 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
352 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array()
367 __u16 kind = btf_kind(t); in btf_is_composite()
374 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum()
384 return btf_kind(t) == BTF_KIND_FWD; in btf_is_fwd()
409 __u16 kind = btf_kind(t); in btf_is_mod()
419 return btf_kind(t) == BTF_KIND_FUNC; in btf_is_func()
429 return btf_kind(t) == BTF_KIND_VAR; in btf_is_var()
[all …]
H A Dbtf.c293 switch (btf_kind(t)) { in btf_type_size()
347 switch (btf_kind(t)) { in btf_bswap_type_rest()
614 switch (btf_kind(t)) { in btf__resolve_size()
662 __u16 kind = btf_kind(t); in btf__align_of()
3752 switch (btf_kind(t)) { in btf_dedup_prim_type()
3908 if (!btf_is_composite(t1) || btf_kind(t1) != btf_kind(t2)) in btf_dedup_identical_structs()
4303 kind = btf_kind(t); in btf_dedup_struct_type()
4400 switch (btf_kind(t)) { in btf_dedup_ref_type()
4543 kind = btf_kind(t); in btf_dedup_fill_unique_names_map()
4821 switch (btf_kind(t)) { in btf_type_visit_type_ids()
[all …]
H A Dbtf_dump.c321 switch (btf_kind(t)) { in btf_dump_mark_referenced()
501 switch (btf_kind(t)) { in btf_dump_order_type()
696 kind = btf_kind(t); in btf_dump_emit_type()
1316 switch (btf_kind(t)) { in btf_dump_emit_type_decl()
1339 btf_kind(t), id); in btf_dump_emit_type_decl()
1377 switch (btf_kind(t)) { in btf_dump_emit_mods()
1446 kind = btf_kind(t); in btf_dump_emit_type_chain()
1836 if (btf_kind(t) == BTF_KIND_PTR) in btf_dump_base_type_check_zero()
2295 switch (btf_kind(t)) { in btf_dump_type_data_check_overflow()
2338 switch (btf_kind(t)) { in btf_dump_type_data_check_zero()
[all …]
H A Drelo_core.c171 switch (btf_kind(local_type)) { in __bpf_core_types_are_compat()
430 switch (btf_kind(local_type)) { in bpf_core_fields_are_compat()
1571 local_k = btf_kind(local_t); in __bpf_core_types_match()
1572 targ_k = btf_kind(targ_t); in __bpf_core_types_match()
H A Dlinker.c1340 if (btf_kind(t1) != btf_kind(t2)) { in glob_sym_btf_matches()
1346 switch (btf_kind(t1)) { in glob_sym_btf_matches()
1366 switch (btf_kind(t1)) { in glob_sym_btf_matches()
2145 if (btf_kind(t) != BTF_KIND_DATASEC) in linker_fixup_btf()
2263 if (btf_kind(t) == BTF_KIND_DATASEC) in linker_append_btf()
H A Dlibbpf.c2124 return __btf_kind_str(btf_kind(t)); in btf_kind_str()
2784 t->info = btf_type_info(btf_kind(t), btf_vlen(t), false); in bpf_object__sanitize_btf()
3661 switch (btf_kind(t)) { in find_kcfg_type()
13082 __btf_kind_str(btf_kind(map_type))); in bpf_object__open_subskeleton()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_write.c34 ASSERT_EQ(btf_kind(t), BTF_KIND_INT, "int_kind"); in gen_btf()
58 ASSERT_EQ(btf_kind(t), BTF_KIND_PTR, "ptr_kind"); in gen_btf()
66 ASSERT_EQ(btf_kind(t), BTF_KIND_CONST, "const_kind"); in gen_btf()
91 ASSERT_EQ(btf_kind(t), BTF_KIND_ARRAY, "array_kind"); in gen_btf()
110 ASSERT_EQ(btf_kind(t), BTF_KIND_STRUCT, "struct_kind"); in gen_btf()
142 ASSERT_EQ(btf_kind(t), BTF_KIND_UNION, "union_kind"); in gen_btf()
165 ASSERT_EQ(btf_kind(t), BTF_KIND_ENUM, "enum_kind"); in gen_btf()
184 ASSERT_EQ(btf_kind(t), BTF_KIND_FWD, "fwd_kind"); in gen_btf()
193 ASSERT_EQ(btf_kind(t), BTF_KIND_FWD, "fwd_kind"); in gen_btf()
224 ASSERT_EQ(btf_kind(t), BTF_KIND_FUNC, "func_kind"); in gen_btf()
[all …]
H A Dbtf.c8135 if (CHECK(btf_kind(test_type) != btf_kind(expect_type), in do_test_dedup()
8137 i, btf_kind(expect_type), btf_kind(test_type))) { in do_test_dedup()
/openbmc/linux/include/linux/
H A Dbtf.h282 static inline u16 btf_kind(const struct btf_type *t) in btf_kind() function
289 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum()
294 return btf_kind(t) == BTF_KIND_ENUM64; in btf_is_enum64()
304 u16 kind = btf_kind(t); in btf_is_composite()
311 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array()
316 return btf_kind(t) == BTF_KIND_INT; in btf_is_int()
321 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c99 kind = btf_kind(t); in fprintf_btf_type_raw()
/openbmc/linux/tools/bpf/bpftool/
H A Dbtf.c106 int kind = btf_kind(t); in dump_btf_type()
379 btf_kind_str[btf_kind_safe(btf_kind(vt))], in dump_btf_type()
H A Dgen.c1744 switch (btf_kind(btf_type)) { in btfgen_mark_type()
1825 switch (btf_kind(btf_type)) { in btfgen_record_field_relo()
1879 switch (btf_kind(btf_type)) { in btfgen_mark_type_match()
/openbmc/linux/kernel/bpf/
H A Dbtf.c8293 if (btf_kind(t) != cands->kind) in bpf_core_add_cands()
8358 cands->kind = btf_kind(local_type); in bpf_core_find_cands()