/linux/tools/lib/bpf/ ! |
H A D | btf.h | 363 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() function 380 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void() 385 return btf_kind(t) == BTF_KIND_INT; in btf_is_int() 390 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr() 395 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array() 400 return btf_kind(t) == BTF_KIND_STRUCT; in btf_is_struct() 405 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union() 410 __u16 kind = btf_kind(t); in btf_is_composite() 417 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum() 422 return btf_kind( 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 | 301 switch (btf_kind(t)) { in btf_type_size() 332 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_type_size() 355 switch (btf_kind(t)) { in btf_bswap_type_rest() 416 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_bswap_type_rest() 487 __u32 kind = btf_kind(t); in btf_validate_type() 563 if (btf_kind(ft) != BTF_KIND_FUNC_PROTO) { in btf_validate_type() 781 switch (btf_kind(t)) { in btf__resolve_size() 829 __u16 kind = btf_kind(t); in btf__align_of() 876 pr_warn("unsupported BTF_KIND:%u\n", btf_kind(t)); in btf__align_of() 931 if (btf_kind( in btf_find_by_name_kind() [all...] |
H A D | btf_dump.c | 326 switch (btf_kind(t)) { in btf_dump_mark_referenced() 506 switch (btf_kind(t)) { in btf_dump_order_type() 701 kind = btf_kind(t); in btf_dump_emit_type() 1321 switch (btf_kind(t)) { in btf_dump_emit_type_decl() 1344 btf_kind(t), id); in btf_dump_emit_type_decl() 1382 switch (btf_kind(t)) { in btf_dump_emit_mods() 1451 kind = btf_kind(t); in btf_dump_emit_type_chain() 1752 btf_dump_printf(d, "<unsupported kind:%u>", btf_kind(t)); in btf_dump_unsupported_data() 1844 if (btf_kind(t) == BTF_KIND_PTR) in btf_dump_base_type_check_zero() 2359 switch (btf_kind( in btf_dump_type_data_check_overflow() [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 | 2428 return __btf_kind_str(btf_kind(t)); in btf_kind_str() 3198 t->info = btf_type_info(btf_kind(t), btf_vlen(t), false); in bpf_object__sanitize_btf() 4099 switch (btf_kind(t)) { in find_kcfg_type() 14040 __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 | 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/include/linux/ ! |
H A D | btf.h | 305 static inline u16 btf_kind(const struct btf_type *t) in btf_kind() function 312 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum() 317 return btf_kind(t) == BTF_KIND_ENUM64; in btf_is_enum64() 327 u16 kind = btf_kind(t); in btf_is_composite() 334 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array() 339 return btf_kind(t) == BTF_KIND_INT; in btf_is_int() 344 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
|
/linux/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/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 | 9152 if (btf_kind(t) != cands->kind) in bpf_core_add_cands() 9217 cands->kind = btf_kind(local_type); in bpf_core_find_cands()
|