| /linux-6.15/tools/lib/bpf/ |
| H A D | btf.h | 379 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void() 384 return btf_kind(t) == BTF_KIND_INT; in btf_is_int() 389 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr() 394 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array() 409 __u16 kind = btf_kind(t); in btf_is_composite() 416 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum() 426 return btf_kind(t) == BTF_KIND_FWD; in btf_is_fwd() 451 __u16 kind = btf_kind(t); in btf_is_mod() 461 return btf_kind(t) == BTF_KIND_FUNC; in btf_is_func() 471 return btf_kind(t) == BTF_KIND_VAR; in btf_is_var() [all …]
|
| H A D | btf_iter.c | 26 switch (btf_kind(t)) { in btf_field_iter_init() 79 switch (btf_kind(t)) { in btf_field_iter_init()
|
| H A D | btf_relocate.c | 151 switch (btf_kind(t)) { in btf_mark_embedded_composite_type_ids() 247 base_kind = btf_kind(base_t); in btf_relocate_map_distilled_base() 289 dist_kind = btf_kind(dist_t); in btf_relocate_map_distilled_base() 389 int kind = btf_kind(t); in btf_relocate_validate_distilled_base()
|
| H A D | btf.c | 297 switch (btf_kind(t)) { in btf_type_size() 351 switch (btf_kind(t)) { in btf_bswap_type_rest() 483 __u32 kind = btf_kind(t); in btf_validate_type() 777 switch (btf_kind(t)) { in btf__resolve_size() 4159 switch (btf_kind(t)) { in btf_dedup_prep() 4220 switch (btf_kind(t)) { in btf_dedup_prim_type() 4376 if (!btf_is_composite(t1) || btf_kind(t1) != btf_kind(t2)) in btf_dedup_identical_structs() 4771 kind = btf_kind(t); in btf_dedup_struct_type() 4868 switch (btf_kind(t)) { in btf_dedup_ref_type() 5011 kind = btf_kind(t); in btf_dedup_fill_unique_names_map() [all …]
|
| H A D | btf_dump.c | 322 switch (btf_kind(t)) { in btf_dump_mark_referenced() 502 switch (btf_kind(t)) { in btf_dump_order_type() 697 kind = btf_kind(t); in btf_dump_emit_type() 1317 switch (btf_kind(t)) { in btf_dump_emit_type_decl() 1340 btf_kind(t), id); in btf_dump_emit_type_decl() 1378 switch (btf_kind(t)) { in btf_dump_emit_mods() 1447 kind = btf_kind(t); in btf_dump_emit_type_chain() 1840 if (btf_kind(t) == BTF_KIND_PTR) in btf_dump_base_type_check_zero() 2304 switch (btf_kind(t)) { in btf_dump_type_data_check_overflow() 2347 switch (btf_kind(t)) { in btf_dump_type_data_check_zero() [all …]
|
| H A D | relo_core.c | 171 switch (btf_kind(local_type)) { in __bpf_core_types_are_compat() 430 switch (btf_kind(local_type)) { in bpf_core_fields_are_compat() 1587 local_k = btf_kind(local_t); in __bpf_core_types_match() 1588 targ_k = btf_kind(targ_t); in __bpf_core_types_match()
|
| H A D | linker.c | 1525 if (btf_kind(t1) != btf_kind(t2)) { in glob_sym_btf_matches() 1531 switch (btf_kind(t1)) { in glob_sym_btf_matches() 1551 switch (btf_kind(t1)) { in glob_sym_btf_matches() 2330 if (btf_kind(t) != BTF_KIND_DATASEC) in linker_fixup_btf() 2432 if (btf_kind(t) == BTF_KIND_DATASEC) in linker_append_btf()
|
| H A D | libbpf.c | 2434 return __btf_kind_str(btf_kind(t)); in btf_kind_str() 3204 t->info = btf_type_info(btf_kind(t), btf_vlen(t), false); in bpf_object__sanitize_btf() 4105 switch (btf_kind(t)) { in find_kcfg_type() 13991 __btf_kind_str(btf_kind(map_type))); in bpf_object__open_subskeleton()
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_write.c | 34 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 D | test_global_funcs.c | 32 if (!ASSERT_EQ(btf_kind(t), BTF_KIND_PTR, "ptr_t")) in check_ctx_arg_type() 102 if (!ASSERT_EQ(btf_kind(fn_t), BTF_KIND_FUNC, "fn_type_kind")) in subtest_ctx_arg_rewrite()
|
| H A D | btf.c | 8213 if (CHECK(btf_kind(test_type) != btf_kind(expect_type), in do_test_dedup() 8215 i, btf_kind(expect_type), btf_kind(test_type))) { in do_test_dedup()
|
| /linux-6.15/include/linux/ |
| H A D | btf.h | 302 static inline u16 btf_kind(const struct btf_type *t) in btf_kind() function 309 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum() 314 return btf_kind(t) == BTF_KIND_ENUM64; in btf_is_enum64() 324 u16 kind = btf_kind(t); in btf_is_composite() 331 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array() 336 return btf_kind(t) == BTF_KIND_INT; in btf_is_int() 341 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
|
| /linux-6.15/tools/bpf/bpftool/ |
| H A D | btf.c | 123 int kind = btf_kind(t); in dump_btf_type() 396 btf_kind_str[btf_kind_safe(btf_kind(vt))], in dump_btf_type() 592 const int kind = btf_kind(t); in btf_type_rank() 633 switch (btf_kind(t)) { in btf_type_sort_name() 639 name_off = btf_kind(t) == BTF_KIND_ENUM64 ? in btf_type_sort_name() 682 switch (btf_kind(t)) { in btf_type_disambig_hash()
|
| H A D | gen.c | 989 switch (btf_kind(member_type)) { in walk_st_ops_shadow_vars() 2047 switch (btf_kind(btf_type)) { in btfgen_mark_type() 2128 switch (btf_kind(btf_type)) { in btfgen_record_field_relo() 2182 switch (btf_kind(btf_type)) { in btfgen_mark_type_match()
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | btf_helpers.c | 99 kind = btf_kind(t); in fprintf_btf_type_raw()
|
| /linux-6.15/kernel/bpf/ |
| H A D | btf.c | 9096 if (btf_kind(t) != cands->kind) in bpf_core_add_cands() 9161 cands->kind = btf_kind(local_type); in bpf_core_find_cands()
|