| /linux/tools/lib/bpf/ |
| H A D | btf.h | 435 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() function 452 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void() 457 return btf_kind(t) == BTF_KIND_INT; in btf_is_int() 462 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr() 467 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array() 472 return btf_kind(t) == BTF_KIND_STRUCT; in btf_is_struct() 477 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union() 482 __u16 kind = btf_kind(t); in btf_is_composite() 489 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum() 494 return btf_kind(t) == BTF_KIND_ENUM64; in btf_is_enum64() [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 | 425 __u32 kind = btf_kind(t); in btf_type_size_unknown() 437 pr_debug("Unsupported BTF_KIND: %u\n", btf_kind(t)); in btf_type_size_unknown() 459 switch (btf_kind(t)) { in btf_type_size() 512 switch (btf_kind(t)) { in btf_bswap_type_rest() 573 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_bswap_type_rest() 643 __u32 kind = btf_kind(t); in btf_validate_type() 719 if (btf_kind(ft) != BTF_KIND_FUNC_PROTO) { in btf_validate_type() 941 switch (btf_kind(t)) { in btf__resolve_size() 989 __u16 kind = btf_kind(t); in btf__align_of() 1036 pr_warn("unsupported BTF_KIND:%u\n", btf_kind(t)); in btf__align_of() [all …]
|
| H A D | btf_dump.c | 325 switch (btf_kind(t)) { in btf_dump_mark_referenced() 505 switch (btf_kind(t)) { in btf_dump_order_type() 700 kind = btf_kind(t); in btf_dump_emit_type() 1320 switch (btf_kind(t)) { in btf_dump_emit_type_decl() 1343 btf_kind(t), id); in btf_dump_emit_type_decl() 1381 switch (btf_kind(t)) { in btf_dump_emit_mods() 1450 kind = btf_kind(t); in btf_dump_emit_type_chain() 1751 btf_dump_printf(d, "<unsupported kind:%u>", btf_kind(t)); in btf_dump_unsupported_data() 1852 if (btf_kind(t) == BTF_KIND_PTR) in btf_dump_base_type_check_zero() 2367 switch (btf_kind(t)) { in btf_dump_type_data_check_overflow() [all …]
|
| H A D | relo_core.c | 170 switch (btf_kind(local_type)) { in __bpf_core_types_are_compat() 431 switch (btf_kind(local_type)) { in bpf_core_fields_are_compat() 1588 local_k = btf_kind(local_t); in __bpf_core_types_match() 1589 targ_k = btf_kind(targ_t); in __bpf_core_types_match()
|
| H A D | linker.c | 1524 if (btf_kind(t1) != btf_kind(t2)) { in glob_sym_btf_matches() 1530 switch (btf_kind(t1)) { in glob_sym_btf_matches() 1550 switch (btf_kind(t1)) { in glob_sym_btf_matches() 2332 if (btf_kind(t) != BTF_KIND_DATASEC) in linker_fixup_btf() 2434 if (btf_kind(t) == BTF_KIND_DATASEC) in linker_append_btf()
|
| H A D | libbpf.c | 2487 return __btf_kind_str(btf_kind(t)); in btf_kind_str() 3315 t->info = btf_type_info(btf_kind(t), btf_vlen(t), false); in bpf_object__sanitize_btf() 4217 switch (btf_kind(t)) { in find_kcfg_type() 12678 if (btf_kind(t) != BTF_KIND_FUNC) in collect_btf_func_ids_by_glob() 15051 __btf_kind_str(btf_kind(map_type))); in bpf_object__open_subskeleton()
|
| /linux/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() 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 D | test_global_funcs.c | 33 if (!ASSERT_EQ(btf_kind(t), BTF_KIND_PTR, "ptr_t")) in check_ctx_arg_type() 103 if (!ASSERT_EQ(btf_kind(fn_t), BTF_KIND_FUNC, "fn_type_kind")) in subtest_ctx_arg_rewrite()
|
| H A D | btf.c | 8355 if (CHECK(btf_kind(test_type) != btf_kind(expect_type), in do_test_dedup() 8357 i, btf_kind(expect_type), btf_kind(test_type))) { in do_test_dedup()
|
| /linux/include/linux/ |
| H A D | btf.h | 311 static inline u16 btf_kind(const struct btf_type *t) in btf_kind() function 318 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum() 323 return btf_kind(t) == BTF_KIND_ENUM64; in btf_is_enum64() 333 u16 kind = btf_kind(t); in btf_is_composite() 340 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array() 345 return btf_kind(t) == BTF_KIND_INT; in btf_is_int() 350 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 124 int kind = btf_kind(t); in dump_btf_type() 391 btf_kind_str[btf_kind_safe(btf_kind(vt))], in dump_btf_type() 587 const int kind = btf_kind(t); in btf_type_rank() 628 switch (btf_kind(t)) { in btf_type_sort_name() 634 name_off = btf_kind(t) == BTF_KIND_ENUM64 ? in btf_type_sort_name() 677 switch (btf_kind(t)) { in btf_type_disambig_hash()
|
| H A D | btf_dumper.c | 560 switch (btf_kind(t)) { in btf_dumper_do_type() 634 switch (btf_kind(t)) { in __btf_dumper_type_only()
|
| H A D | gen.c | 1072 switch (btf_kind(member_type)) { in walk_st_ops_shadow_vars() 2139 switch (btf_kind(btf_type)) { in btfgen_mark_type() 2220 switch (btf_kind(btf_type)) { in btfgen_record_field_relo() 2275 switch (btf_kind(btf_type)) { in btfgen_mark_type_match()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | btf_helpers.c | 99 kind = btf_kind(t); in fprintf_btf_type_raw()
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 9584 if (btf_kind(t) != cands->kind) in bpf_core_add_cands() 9649 cands->kind = btf_kind(local_type); in bpf_core_find_cands()
|