• Home
  • Raw
  • Download

Lines Matching refs:nr_maps

413 	size_t nr_maps;  member
922 for (i = 0; i < obj->nr_maps; i++) { in bpf_object__init_kern_struct_ops_maps()
1302 if (obj->nr_maps < obj->maps_cap) in bpf_object__add_map()
1303 return &obj->maps[obj->nr_maps++]; in bpf_object__add_map()
1316 memset(obj->maps + obj->nr_maps, 0, in bpf_object__add_map()
1317 (obj->maps_cap - obj->nr_maps) * sizeof(*obj->maps)); in bpf_object__add_map()
1322 for (i = obj->nr_maps; i < obj->maps_cap; i++) { in bpf_object__add_map()
1327 return &obj->maps[obj->nr_maps++]; in bpf_object__add_map()
1434 obj->rodata_map_idx = obj->nr_maps - 1; in bpf_object__init_global_data_maps()
1742 obj->kconfig_map_idx = obj->nr_maps - 1; in bpf_object__init_kconfig_map()
1750 int i, map_def_sz = 0, nr_maps = 0, nr_syms; in bpf_object__init_user_maps() local
1784 nr_maps++; in bpf_object__init_user_maps()
1788 nr_maps, data->d_size, obj->path); in bpf_object__init_user_maps()
1790 if (!data->d_size || nr_maps == 0 || (data->d_size % nr_maps) != 0) { in bpf_object__init_user_maps()
1795 map_def_sz = data->d_size / nr_maps; in bpf_object__init_user_maps()
3341 size_t map_idx, nr_maps = prog->obj->nr_maps; in bpf_program__record_reloc() local
3419 for (map_idx = 0; map_idx < nr_maps; map_idx++) { in bpf_program__record_reloc()
3430 if (map_idx >= nr_maps) { in bpf_program__record_reloc()
3448 for (map_idx = 0; map_idx < nr_maps; map_idx++) { in bpf_program__record_reloc()
3457 if (map_idx >= nr_maps) { in bpf_program__record_reloc()
4297 for (i = 0; i < obj->nr_maps; i++) { in bpf_object__create_maps()
6532 for (j = 0; j < obj->nr_maps; j++) { in bpf_object__collect_map_relos()
6542 if (j == obj->nr_maps) { in bpf_object__collect_map_relos()
7094 for (i = 0; i < obj->nr_maps; i++) { in bpf_object__unload()
7357 for (i = 0; i < obj->nr_maps; i++) in bpf_object__load_xattr()
7967 for (i = 0; i < obj->nr_maps; i++) in bpf_object__close()
7975 obj->nr_maps = 0; in bpf_object__close()
8544 for (i = 0; i < obj->nr_maps; i++) { in find_struct_ops_map_by_offset()
8991 e = obj->maps + obj->nr_maps; in __bpf_map__iter()
9000 if (idx >= obj->nr_maps || idx < 0) in __bpf_map__iter()
9018 if (!obj->nr_maps) in bpf_map__prev()
9020 return obj->maps + obj->nr_maps - 1; in bpf_map__prev()