Home
last modified time | relevance | path

Searched refs:btf_kind (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbtf.h320 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() function
337 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()
357 return btf_kind(t) == BTF_KIND_STRUCT; in btf_is_struct()
362 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union()
367 __u16 kind = btf_kind(t); in btf_is_composite()
374 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum()
379 return btf_kind( in btf_is_enum64()
[all...]
H A Dbtf.c293 switch (btf_kind(t)) { in btf_type_size()
324 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_type_size()
347 switch (btf_kind(t)) { in btf_bswap_type_rest()
408 pr_debug("Unsupported BTF_KIND:%u\n", 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()
709 pr_warn("unsupported BTF_KIND:%u\n", btf_kind(t)); in btf__align_of()
764 if (btf_kind(t) != kind) in btf_find_by_name_kind()
1548 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen()
2057 t->info = btf_type_info(btf_kind( in btf__add_field()
[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()
1742 btf_dump_printf(d, "<unsupported kind:%u>", btf_kind(t)); in btf_dump_unsupported_data()
1834 if (btf_kind(t) == BTF_KIND_PTR) in btf_dump_base_type_check_zero()
2293 switch (btf_kind( in btf_dump_type_data_check_overflow()
[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()
2256 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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A 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( in test_btf_write()
[all...]
/kernel/linux/linux-6.6/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()
74 ASSERT_EQ(btf_kind(t), BTF_KIND_VOLATILE, "volatile_kind"); in gen_btf()
82 ASSERT_EQ(btf_kind(t), BTF_KIND_RESTRICT, "restrict_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( 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()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A 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( in btf_is_fwd()
[all...]
H A 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()
635 pr_warn("unsupported BTF_KIND:%u\n", btf_kind(t)); in btf__align_of()
690 if (btf_kind(t) != kind) in btf__find_by_name_kind()
1570 t->info = btf_type_info(btf_kind(t), btf_vlen(t) + 1, btf_kflag(t)); in btf_type_inc_vlen()
1864 t->info = btf_type_info(btf_kind( in btf__add_field()
[all...]
H A 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()
1193 switch (btf_kind(t)) { in btf_dump_emit_type_decl()
1213 btf_kind(t), id); in btf_dump_emit_type_decl()
1251 switch (btf_kind(t)) { in btf_dump_emit_mods()
1320 kind = btf_kind(t); in btf_dump_emit_type_chain()
H A 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_typ in bpf_core_types_are_compat()
[all...]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dbtf_helpers.c99 kind = btf_kind(t); in fprintf_btf_type_raw()
/kernel/linux/linux-6.6/tools/bpf/bpftool/
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()
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()
/kernel/linux/linux-6.6/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()

Completed in 67 milliseconds