Lines Matching refs:type_id

1973 static void btfgen_mark_member(struct btfgen_info *info, int type_id, int idx)
1975 const struct btf_type *t = btf__type_by_id(info->marked_btf, type_id);
1982 btfgen_mark_type(struct btfgen_info *info, unsigned int type_id, bool follow_pointers)
1984 const struct btf_type *btf_type = btf__type_by_id(info->src_btf, type_id);
1990 if (type_id == 0)
1994 cloned_type = (struct btf_type *) btf__type_by_id(info->marked_btf, type_id);
2049 p_err("unsupported kind: %s (%d)", btf_kind_str(btf_type), type_id);
2062 unsigned int type_id = targ_spec->root_type_id;
2066 btf_type = btf__type_by_id(btf, type_id);
2067 err = btfgen_mark_type(info, type_id, false);
2075 type_id = btf_type->type;
2076 btf_type = btf__type_by_id(btf, type_id);
2086 btfgen_mark_member(info, type_id, idx);
2089 type_id = btf_member->type;
2090 btf_type = btf__type_by_id(btf, type_id);
2091 err = btfgen_mark_type(info, type_id, false);
2097 type_id = array->type;
2098 btf_type = btf__type_by_id(btf, type_id);
2118 static int btfgen_mark_type_match(struct btfgen_info *info, __u32 type_id, bool behind_ptr)
2125 if (type_id == 0)
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);
2150 btfgen_mark_member(info, type_id, i);
2200 p_err("unsupported kind: %s (%d)", btf_kind_str(btf_type), type_id);
2342 !hashmap__find(cand_cache, relo->type_id, &cands)) {
2343 cands = btfgen_find_cands(btf, info->src_btf, relo->type_id);
2349 err = hashmap__set(cand_cache, relo->type_id, cands,
2381 static int btfgen_remap_id(__u32 *type_id, void *ctx)
2385 *type_id = ids[*type_id];