Searched refs:id_map (Results 1 – 5 of 5) sorted by relevance
| /tools/lib/bpf/ |
| A D | btf_relocate.c | 47 __u32 *id_map; member 78 *id = r->id_map[*id]; in btf_relocate_rewrite_type_id() 342 if (r->id_map[dist_info->id] && in btf_relocate_map_distilled_base() 359 r->id_map[dist_info->id] = id; in btf_relocate_map_distilled_base() 367 if (r->id_map[id] && r->id_map[id] != BTF_IS_EMBEDDED) in btf_relocate_map_distilled_base() 463 r.id_map = calloc(nr_types, sizeof(*r.id_map)); in btf_relocate() 469 if (!r.id_map || !r.str_map) { in btf_relocate() 511 if (id_map) { in btf_relocate() 512 *id_map = r.id_map; in btf_relocate() 513 r.id_map = NULL; in btf_relocate() [all …]
|
| A D | btf.c | 5511 int *id_map; member 5536 if (dist->id_map[*id] > 0) in btf_add_distilled_type_ids() 5559 dist->id_map[*id] = *id; in btf_add_distilled_type_ids() 5597 if (!dist->id_map[i]) in btf_add_distilled_types() 5667 dist->id_map[i] = id++; in btf_add_distilled_types() 5688 if (dist->id_map[*id]) in btf_update_distilled_type_ids() 5689 *id = dist->id_map[*id]; in btf_update_distilled_type_ids() 5733 dist.id_map = calloc(n, sizeof(*dist.id_map)); in btf__distill_base() 5734 if (!dist.id_map) { in btf__distill_base() 5800 free(dist.id_map); in btf__distill_base()
|
| A D | libbpf_internal.h | 240 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map);
|
| /tools/testing/selftests/filesystems/binderfs/ |
| A D | binderfs_test.c | 328 char id_map[4096]; in change_idmaps() local 337 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getuid()); in change_idmaps() 338 ret = write_id_mapping(UID_MAP, pid, id_map, strlen(id_map)); in change_idmaps() 343 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getgid()); in change_idmaps() 344 ret = write_id_mapping(GID_MAP, pid, id_map, strlen(id_map)); in change_idmaps()
|
| /tools/testing/selftests/filesystems/ |
| A D | utils.c | 62 struct id_map { struct 79 struct list id_map; argument 251 struct id_map *map = iterator->elem; in map_ids_from_idmap() 310 struct id_map uid_map = { in get_userns_fd() 316 struct id_map gid_map = { in get_userns_fd() 404 ret = map_ids_from_idmap(&h->id_map, pid); in create_userns_hierarchy() 411 if (!list_empty(&h->id_map)) in create_userns_hierarchy()
|
Completed in 20 milliseconds