Searched refs:new_types (Results 1 – 2 of 2) sorted by relevance
6274 void *nt, *new_types = NULL; in btf__permute() local6301 new_types = calloc(btf->hdr.type_len, 1); in btf__permute()6302 if (!new_types) { in btf__permute()6329 nt = new_types; in btf__permute()6362 for (nt = new_types, i = 0; i < id_map_cnt - start_offs; i++) { in btf__permute()6363 btf->type_offs[i] = nt - new_types; in btf__permute()6369 btf->types_data = new_types; in btf__permute()6374 free(new_types); in btf__permute()
1726 struct btf_type **new_types; in btf_add_type() local1738 new_types = kvzalloc_objs(*new_types, new_size, in btf_add_type()1740 if (!new_types) in btf_add_type()1746 new_types[0] = &btf_void; in btf_add_type()1750 memcpy(new_types, btf->types, in btf_add_type()1755 btf->types = new_types; in btf_add_type()