Lines Matching defs:src_type
1089 ctf_add_type(ctf_file_t *dst_fp, ctf_file_t *src_fp, ctf_id_t src_type)
1112 if ((tp = ctf_lookup_by_id(&src_fp, src_type)) == NULL)
1148 * unless dst_type is a forward declaration and src_type is a struct,
1176 src.ctb_type = src_type;
1185 * we add a new type with the same properties as src_type to dst_fp.
1187 * same attributes as src_type. We recurse for embedded references.
1192 if (ctf_type_encoding(src_fp, src_type, &src_en) != 0)
1212 src_type = ctf_type_reference(src_fp, src_type);
1213 src_type = ctf_add_type(dst_fp, src_fp, src_type);
1215 if (src_type == CTF_ERR)
1218 dst_type = ctf_add_reftype(dst_fp, flag, src_type, kind);
1222 if (ctf_array_info(src_fp, src_type, &src_ar) == CTF_ERR)
1271 if (ctf_type_size(src_fp, src_type) !=
1275 if (ctf_member_iter(src_fp, src_type, membcmp, &dst))
1284 * and to ensure the exact same member offsets as in src_type.
1293 if (ctf_member_iter(src_fp, src_type, membadd, &dst) != 0)
1296 if ((size = ctf_type_size(src_fp, src_type)) > CTF_MAX_SIZE) {
1324 if (ctf_enum_iter(src_fp, src_type, enumcmp, &dst) ||
1330 ctf_enum_iter(src_fp, src_type, enumadd, &dst))
1343 src_type = ctf_type_reference(src_fp, src_type);
1344 src_type = ctf_add_type(dst_fp, src_fp, src_type);
1346 if (src_type == CTF_ERR)
1351 * ctf_type_reference(dst_fp, dst_type) != src_type and if so
1360 name, src_type);