Lines Matching defs:nr_maps
265 static int load_maps(struct bpf_map_data *maps, int nr_maps,
270 for (i = 0; i < nr_maps; i++) {
341 struct bpf_map_data *maps, int nr_maps)
368 for (map_idx = 0; map_idx < nr_maps; map_idx++) {
405 int i, nr_maps;
427 for (i = 0, nr_maps = 0; i < symbols->d_size / sizeof(GElf_Sym); i++) {
428 assert(nr_maps < MAX_MAPS+1);
429 if (!gelf_getsym(symbols, i, &sym[nr_maps]))
431 if (sym[nr_maps].st_shndx != maps_shndx)
434 nr_maps++;
438 qsort(sym, nr_maps, sizeof(GElf_Sym), cmp_symbols);
450 map_sz_elf = data_maps->d_size / nr_maps;
469 for (i = 0; i < nr_maps; i++) {
505 return nr_maps;
516 int nr_maps = 0;
584 nr_maps = load_elf_maps_section(map_data, maps_shndx,
586 if (nr_maps < 0) {
588 nr_maps, strerror(-nr_maps));
591 if (load_maps(map_data, nr_maps, fixup_map))
593 map_data_count = nr_maps;
622 map_data, nr_maps))