Lines Matching refs:id_map
47 __u32 *id_map;
51 /* Set temporarily in relocation id_map if distilled base struct/union is
78 *id = r->id_map[*id];
127 * struct/union, mark that struct/union id temporarily in the id_map
168 r->id_map[next_id] = BTF_IS_EMBEDDED;
211 * in id_map with BTF_IS_EMBEDDED; this signals that these types
335 if (r->id_map[dist_info->id] == BTF_IS_EMBEDDED &&
342 if (r->id_map[dist_info->id] &&
343 r->id_map[dist_info->id] != BTF_IS_EMBEDDED) {
354 base_t->size, id, r->id_map[dist_info->id]);
359 r->id_map[dist_info->id] = id;
367 if (r->id_map[id] && r->id_map[id] != BTF_IS_EMBEDDED)
444 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map)
463 r.id_map = calloc(nr_types, sizeof(*r.id_map));
469 if (!r.id_map || !r.str_map) {
483 r.id_map[id] = id + r.nr_base_types - r.nr_dist_base_types;
511 if (id_map) {
512 *id_map = r.id_map;
513 r.id_map = NULL;
516 free(r.id_map);