Lines Matching defs:btf_type

58 static const struct btf_type *
61 const struct btf_type *t;
150 const struct btf_type *sec,
167 const struct btf_type *var = btf__type_by_id(btf, sec_var->type);
235 static const struct btf_type *find_type_for_map(struct btf *btf, const char *map_ident)
241 const struct btf_type *t = btf__type_by_id(btf, i);
280 const struct btf_type *sec;
319 const struct btf_type *v)
329 const struct btf_type *sec, *var;
503 const struct btf_type *sec;
533 const struct btf_type *var = btf__type_by_id(btf, sec_var->type);
940 const struct btf_type *map_type, __u32 map_type_id)
943 const struct btf_type *member_type;
1057 const struct btf_type *map_type;
1535 const struct btf_type *map_type, *var_type;
1975 const struct btf_type *t = btf__type_by_id(info->marked_btf, type_id);
1984 const struct btf_type *btf_type = btf__type_by_id(info->src_btf, type_id);
1985 struct btf_type *cloned_type;
1994 cloned_type = (struct btf_type *) btf__type_by_id(info->marked_btf, type_id);
1998 switch (btf_kind(btf_type)) {
2009 err = btfgen_mark_type(info, btf_type->type, follow_pointers);
2018 err = btfgen_mark_type(info, btf_type->type, follow_pointers);
2023 array = btf_array(btf_type);
2034 err = btfgen_mark_type(info, btf_type->type, follow_pointers);
2039 param = btf_params(btf_type);
2040 for (i = 0; i < btf_vlen(btf_type); i++) {
2049 p_err("unsupported kind: %s (%d)", btf_kind_str(btf_type), type_id);
2059 const struct btf_type *btf_type;
2066 btf_type = btf__type_by_id(btf, type_id);
2074 while (btf_is_mod(btf_type) || btf_is_typedef(btf_type)) {
2075 type_id = btf_type->type;
2076 btf_type = btf__type_by_id(btf, type_id);
2079 switch (btf_kind(btf_type)) {
2083 btf_member = btf_members(btf_type) + idx;
2090 btf_type = btf__type_by_id(btf, type_id);
2096 array = btf_array(btf_type);
2098 btf_type = btf__type_by_id(btf, type_id);
2102 btf_kind_str(btf_type), btf_type->type);
2120 const struct btf_type *btf_type;
2122 struct btf_type *cloned_type;
2128 btf_type = btf__type_by_id(btf, type_id);
2130 cloned_type = (struct btf_type *)btf__type_by_id(info->marked_btf, type_id);
2133 switch (btf_kind(btf_type)) {
2142 struct btf_member *m = btf_members(btf_type);
2143 __u16 vlen = btf_vlen(btf_type);
2164 return btfgen_mark_type_match(info, btf_type->type, behind_ptr);
2166 return btfgen_mark_type_match(info, btf_type->type, true);
2170 array = btf_array(btf_type);
2180 __u16 vlen = btf_vlen(btf_type);
2184 err = btfgen_mark_type_match(info, btf_type->type, false);
2189 param = btf_params(btf_type);
2200 p_err("unsupported kind: %s (%d)", btf_kind_str(btf_type), type_id);
2255 const struct btf_type *local_type;
2412 const struct btf_type *cloned_type, *type;
2468 struct btf_type *btf_type = (struct btf_type *) btf__type_by_id(btf_new, i);
2470 err = btf_type_visit_type_ids(btf_type, btfgen_remap_id, ids);