Lines Matching refs:narenas
627 ctl_arena_stats_t *sstats = &ctl_stats.arenas[ctl_stats.narenas]; in ctl_arena_refresh()
651 if (arena_init(ctl_stats.narenas) == NULL) in ctl_grow()
655 astats = (ctl_arena_stats_t *)a0malloc((ctl_stats.narenas + 2) * in ctl_grow()
661 memcpy(astats, ctl_stats.arenas, (ctl_stats.narenas + 1) * in ctl_grow()
663 memset(&astats[ctl_stats.narenas + 1], 0, sizeof(ctl_arena_stats_t)); in ctl_grow()
664 if (ctl_arena_init(&astats[ctl_stats.narenas + 1])) { in ctl_grow()
671 memcpy(&tstats, &astats[ctl_stats.narenas], in ctl_grow()
673 memcpy(&astats[ctl_stats.narenas], in ctl_grow()
674 &astats[ctl_stats.narenas + 1], sizeof(ctl_arena_stats_t)); in ctl_grow()
675 memcpy(&astats[ctl_stats.narenas + 1], &tstats, in ctl_grow()
680 ctl_stats.narenas++; in ctl_grow()
691 VARIABLE_ARRAY(arena_t *, tarenas, ctl_stats.narenas); in ctl_refresh()
697 ctl_stats.arenas[ctl_stats.narenas].nthreads = 0; in ctl_refresh()
698 ctl_arena_clear(&ctl_stats.arenas[ctl_stats.narenas]); in ctl_refresh()
701 for (i = 0, refreshed = false; i < ctl_stats.narenas; i++) { in ctl_refresh()
709 for (i = 0; i < ctl_stats.narenas; i++) { in ctl_refresh()
716 for (i = 0; i < ctl_stats.narenas; i++) { in ctl_refresh()
728 ctl_stats.arenas[ctl_stats.narenas].allocated_small + in ctl_refresh()
729 ctl_stats.arenas[ctl_stats.narenas].astats.allocated_large + in ctl_refresh()
730 ctl_stats.arenas[ctl_stats.narenas].astats.allocated_huge; in ctl_refresh()
732 (ctl_stats.arenas[ctl_stats.narenas].pactive << LG_PAGE); in ctl_refresh()
734 ctl_stats.arenas[ctl_stats.narenas].astats.metadata_mapped + in ctl_refresh()
735 ctl_stats.arenas[ctl_stats.narenas].astats in ctl_refresh()
738 ctl_stats.arenas[ctl_stats.narenas].astats.metadata_mapped + in ctl_refresh()
739 ((ctl_stats.arenas[ctl_stats.narenas].pactive + in ctl_refresh()
740 ctl_stats.arenas[ctl_stats.narenas].pdirty) << LG_PAGE); in ctl_refresh()
742 ctl_stats.arenas[ctl_stats.narenas].astats.mapped; in ctl_refresh()
759 ctl_stats.narenas = narenas_total_get(); in ctl_init()
761 (ctl_stats.narenas + 1) * sizeof(ctl_arena_stats_t)); in ctl_init()
766 memset(ctl_stats.arenas, 0, (ctl_stats.narenas + 1) * in ctl_init()
776 for (i = 0; i <= ctl_stats.narenas; i++) { in ctl_init()
792 ctl_stats.arenas[ctl_stats.narenas].initialized = true; in ctl_init()
1315 if (newind >= ctl_stats.narenas) { in CTL_RO_BOOL_CONFIG_GEN()
1551 VARIABLE_ARRAY(arena_t *, tarenas, ctl_stats.narenas); in arena_purge()
1554 for (i = 0, refreshed = false; i < ctl_stats.narenas; i++) { in arena_purge()
1562 if (arena_ind == ctl_stats.narenas) { in arena_purge()
1564 for (i = 0; i < ctl_stats.narenas; i++) { in arena_purge()
1569 assert(arena_ind < ctl_stats.narenas); in arena_purge()
1622 if (arena_ind < ctl_stats.narenas) { in arena_i_dss_ctl()
1720 if (i > ctl_stats.narenas) { in CHUNK_FUNC()
1738 unsigned narenas; in arenas_narenas_ctl() local
1746 narenas = ctl_stats.narenas; in arenas_narenas_ctl()
1747 READ(narenas, unsigned); in arenas_narenas_ctl()
1764 if (*oldlenp != ctl_stats.narenas * sizeof(bool)) { in arenas_initialized_ctl()
1766 nread = (*oldlenp < ctl_stats.narenas * sizeof(bool)) in arenas_initialized_ctl()
1767 ? (*oldlenp / sizeof(bool)) : ctl_stats.narenas; in arenas_initialized_ctl()
1770 nread = ctl_stats.narenas; in arenas_initialized_ctl()
1851 unsigned narenas; in arenas_extend_ctl() local
1859 narenas = ctl_stats.narenas - 1; in arenas_extend_ctl()
1860 READ(narenas, unsigned); in arenas_extend_ctl()
2120 if (i > ctl_stats.narenas || !ctl_stats.arenas[i].initialized) { in stats_arenas_i_index()