Lines Matching refs:narenas

655 	ctl_arena_stats_t *sstats = &ctl_stats.arenas[ctl_stats.narenas];  in ctl_arena_refresh()
669 if (arena_init(ctl_stats.narenas) == NULL) in ctl_grow()
673 astats = (ctl_arena_stats_t *)a0malloc((ctl_stats.narenas + 2) * in ctl_grow()
679 memcpy(astats, ctl_stats.arenas, (ctl_stats.narenas + 1) * in ctl_grow()
681 memset(&astats[ctl_stats.narenas + 1], 0, sizeof(ctl_arena_stats_t)); in ctl_grow()
682 if (ctl_arena_init(&astats[ctl_stats.narenas + 1])) { in ctl_grow()
689 memcpy(&tstats, &astats[ctl_stats.narenas], in ctl_grow()
691 memcpy(&astats[ctl_stats.narenas], in ctl_grow()
692 &astats[ctl_stats.narenas + 1], sizeof(ctl_arena_stats_t)); in ctl_grow()
693 memcpy(&astats[ctl_stats.narenas + 1], &tstats, in ctl_grow()
698 ctl_stats.narenas++; in ctl_grow()
707 VARIABLE_ARRAY(arena_t *, tarenas, ctl_stats.narenas); in ctl_refresh()
713 ctl_arena_clear(&ctl_stats.arenas[ctl_stats.narenas]); in ctl_refresh()
715 for (i = 0; i < ctl_stats.narenas; i++) in ctl_refresh()
718 for (i = 0; i < ctl_stats.narenas; i++) { in ctl_refresh()
730 ctl_stats.arenas[ctl_stats.narenas].allocated_small + in ctl_refresh()
731 ctl_stats.arenas[ctl_stats.narenas].astats.allocated_large + in ctl_refresh()
732 ctl_stats.arenas[ctl_stats.narenas].astats.allocated_huge; in ctl_refresh()
734 (ctl_stats.arenas[ctl_stats.narenas].pactive << LG_PAGE); in ctl_refresh()
736 ctl_stats.arenas[ctl_stats.narenas].astats.metadata_mapped + in ctl_refresh()
737 ctl_stats.arenas[ctl_stats.narenas].astats in ctl_refresh()
740 ctl_stats.arenas[ctl_stats.narenas].astats.metadata_mapped + in ctl_refresh()
741 ((ctl_stats.arenas[ctl_stats.narenas].pactive + in ctl_refresh()
742 ctl_stats.arenas[ctl_stats.narenas].pdirty) << LG_PAGE); in ctl_refresh()
744 ctl_stats.arenas[ctl_stats.narenas].astats.mapped; in ctl_refresh()
761 ctl_stats.narenas = narenas_total_get(); in ctl_init()
763 (ctl_stats.narenas + 1) * sizeof(ctl_arena_stats_t)); in ctl_init()
768 memset(ctl_stats.arenas, 0, (ctl_stats.narenas + 1) * in ctl_init()
778 for (i = 0; i <= ctl_stats.narenas; i++) { in ctl_init()
794 ctl_stats.arenas[ctl_stats.narenas].initialized = true; in ctl_init()
1321 if (newind >= ctl_stats.narenas) { in CTL_RO_CONFIG_GEN()
1556 unsigned narenas = ctl_stats.narenas; in arena_i_purge() local
1558 if (arena_ind == narenas) { in arena_i_purge()
1560 VARIABLE_ARRAY(arena_t *, tarenas, narenas); in arena_i_purge()
1562 for (i = 0; i < narenas; i++) in arena_i_purge()
1571 for (i = 0; i < narenas; i++) { in arena_i_purge()
1578 assert(arena_ind < narenas); in arena_i_purge()
1651 if (arena_ind < ctl_stats.narenas) { in arena_i_dss_ctl()
1782 if (i > ctl_stats.narenas) { in arena_i_index()
1800 unsigned narenas; in arenas_narenas_ctl() local
1808 narenas = ctl_stats.narenas; in arenas_narenas_ctl()
1809 READ(narenas, unsigned); in arenas_narenas_ctl()
1826 if (*oldlenp != ctl_stats.narenas * sizeof(bool)) { in arenas_initialized_ctl()
1828 nread = (*oldlenp < ctl_stats.narenas * sizeof(bool)) in arenas_initialized_ctl()
1829 ? (unsigned)(*oldlenp / sizeof(bool)) : ctl_stats.narenas; in arenas_initialized_ctl()
1832 nread = ctl_stats.narenas; in arenas_initialized_ctl()
1940 unsigned narenas; in arenas_extend_ctl() local
1948 narenas = ctl_stats.narenas - 1; in arenas_extend_ctl()
1949 READ(narenas, unsigned); in arenas_extend_ctl()
2211 if (i > ctl_stats.narenas || !ctl_stats.arenas[i].initialized) { in stats_arenas_i_index()