Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
A Dbtf.h335 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void()
340 return btf_kind(t) == BTF_KIND_INT; in btf_is_int()
345 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
350 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array()
360 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union()
365 __u16 kind = btf_kind(t); in btf_is_composite()
372 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum()
377 return btf_kind(t) == BTF_KIND_FWD; in btf_is_fwd()
402 __u16 kind = btf_kind(t); in btf_is_mod()
411 return btf_kind(t) == BTF_KIND_FUNC; in btf_is_func()
[all …]
A Dbtf_dump.c305 switch (btf_kind(t)) { in btf_dump_mark_referenced()
483 switch (btf_kind(t)) { in btf_dump_order_type()
676 kind = btf_kind(t); in btf_dump_emit_type()
1151 switch (btf_kind(t)) { in btf_dump_emit_type_decl()
1172 btf_kind(t), id); in btf_dump_emit_type_decl()
1210 switch (btf_kind(t)) { in btf_dump_emit_mods()
1279 kind = btf_kind(t); in btf_dump_emit_type_chain()
1645 if (btf_kind(t) == BTF_KIND_PTR) in btf_dump_base_type_check_zero()
2068 switch (btf_kind(t)) { in btf_dump_type_data_check_overflow()
2110 switch (btf_kind(t)) { in btf_dump_type_data_check_zero()
[all …]
A Dbtf.c293 switch (btf_kind(t)) { in btf_type_size()
343 switch (btf_kind(t)) { in btf_bswap_type_rest()
593 switch (btf_kind(t)) { in btf__resolve_size()
639 __u16 kind = btf_kind(t); in btf__align_of()
726 if (btf_kind(t) != kind) in btf_find_by_name_kind()
3615 switch (btf_kind(t)) { in btf_dedup_prep()
3674 switch (btf_kind(t)) { in btf_dedup_prim_type()
4188 kind = btf_kind(t); in btf_dedup_struct_type()
4285 switch (btf_kind(t)) { in btf_dedup_ref_type()
4583 switch (btf_kind(t)) { in btf_type_visit_type_ids()
[all …]
A Drelo_core.c316 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()
A Dlinker.c1332 if (btf_kind(t1) != btf_kind(t2)) { in glob_sym_btf_matches()
1338 switch (btf_kind(t1)) { in glob_sym_btf_matches()
1357 switch (btf_kind(t1)) { in glob_sym_btf_matches()
2139 if (btf_kind(t) != BTF_KIND_DATASEC) in linker_fixup_btf()
2250 if (btf_kind(t) == BTF_KIND_DATASEC) in linker_append_btf()
A Dlibbpf.c2085 return __btf_kind_str(btf_kind(t)); in btf_kind_str()
3436 switch (btf_kind(t)) { in find_kcfg_type()
5108 if (btf_kind(t) != btf_kind(local_cand->t)) in bpf_core_add_cands()
5321 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_types_are_compat()
5334 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_types_are_compat()
5337 switch (btf_kind(local_type)) { in bpf_core_types_are_compat()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dbtf_write.c33 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()
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()
192 ASSERT_EQ(btf_kind(t), BTF_KIND_FWD, "fwd_kind"); in gen_btf()
223 ASSERT_EQ(btf_kind(t), BTF_KIND_FUNC, "func_kind"); in gen_btf()
[all …]
A Dbtf.c7427 if (CHECK(btf_kind(test_type) != btf_kind(expect_type), in do_test_dedup()
7429 i, btf_kind(expect_type), btf_kind(test_type))) { in do_test_dedup()
/linux/tools/testing/selftests/bpf/
A Dbtf_helpers.c97 kind = btf_kind(t); in fprintf_btf_type_raw()
/linux/tools/bpf/bpftool/
A Dbtf.c109 int kind = btf_kind(t); in dump_btf_type()
331 btf_kind_str[btf_kind_safe(btf_kind(vt))], in dump_btf_type()

Completed in 52 milliseconds