Searched refs:btf_kind (Results 1 – 4 of 4) sorted by relevance
/tools/lib/bpf/ |
D | btf.h | 131 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() function 148 return btf_kind(t) == BTF_KIND_INT; in btf_is_int() 153 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr() 158 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array() 163 return btf_kind(t) == BTF_KIND_STRUCT; in btf_is_struct() 168 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union() 173 __u16 kind = btf_kind(t); in btf_is_composite() 180 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum() 185 return btf_kind(t) == BTF_KIND_FWD; in btf_is_fwd() 190 return btf_kind(t) == BTF_KIND_TYPEDEF; in btf_is_typedef() [all …]
|
D | btf_dump.c | 259 switch (btf_kind(t)) { in btf_dump_mark_referenced() 435 switch (btf_kind(t)) { in btf_dump_order_type() 623 kind = btf_kind(t); in btf_dump_emit_type() 758 __u16 kind = btf_kind(t); in btf_align_of() 785 pr_warning("unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_align_of() 1069 switch (btf_kind(t)) { in btf_dump_emit_type_decl() 1089 btf_kind(t), id); in btf_dump_emit_type_decl() 1127 switch (btf_kind(t)) { in btf_dump_emit_mods() 1196 kind = btf_kind(t); in btf_dump_emit_type_chain()
|
D | btf.c | 146 switch (btf_kind(t)) { in btf_type_size() 171 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_type_size() 236 switch (btf_kind(t)) { in btf__resolve_size() 1458 switch (btf_kind(t)) { in btf_for_each_str_off() 1997 switch (btf_kind(t)) { in btf_dedup_prim_type() 2246 cand_kind = btf_kind(cand_type); in btf_dedup_is_equiv() 2247 canon_kind = btf_kind(canon_type); in btf_dedup_is_equiv() 2396 t_kind = btf_kind(d->btf->types[t_id]); in btf_dedup_merge_hypot_map() 2397 c_kind = btf_kind(d->btf->types[c_id]); in btf_dedup_merge_hypot_map() 2466 kind = btf_kind(t); in btf_dedup_struct_type() [all …]
|
D | libbpf.c | 1052 map_name, name, btf_kind(t)); in get_map_field_int() 1064 map_name, name, btf_kind(arr_t)); in get_map_field_int() 1101 map_name, btf_kind(var)); in bpf_object__init_user_btf_map() 1114 map_name, btf_kind(var)); in bpf_object__init_user_btf_map() 1190 map_name, btf_kind(t)); in bpf_object__init_user_btf_map() 1233 map_name, btf_kind(t)); in bpf_object__init_user_btf_map() 2467 type_id, spec_str, i, id, btf_kind(t)); in bpf_core_spec_parse() 2594 if (btf_kind(local_type) != btf_kind(targ_type)) in bpf_core_fields_are_compat() 2597 switch (btf_kind(local_type)) { in bpf_core_fields_are_compat() 2614 btf_kind(local_type), local_id, targ_id); in bpf_core_fields_are_compat()
|