• Home
  • Raw
  • Download

Lines Matching refs:astats

52 static bool	ctl_arena_init(ctl_arena_stats_t *astats);
53 static void ctl_arena_clear(ctl_arena_stats_t *astats);
57 ctl_arena_stats_t *astats);
518 ctl_arena_init(ctl_arena_stats_t *astats) in ctl_arena_init() argument
521 if (astats->lstats == NULL) { in ctl_arena_init()
522 astats->lstats = (malloc_large_stats_t *)a0malloc(nlclasses * in ctl_arena_init()
524 if (astats->lstats == NULL) in ctl_arena_init()
528 if (astats->hstats == NULL) { in ctl_arena_init()
529 astats->hstats = (malloc_huge_stats_t *)a0malloc(nhclasses * in ctl_arena_init()
531 if (astats->hstats == NULL) in ctl_arena_init()
539 ctl_arena_clear(ctl_arena_stats_t *astats) in ctl_arena_clear() argument
542 astats->nthreads = 0; in ctl_arena_clear()
543 astats->dss = dss_prec_names[dss_prec_limit]; in ctl_arena_clear()
544 astats->lg_dirty_mult = -1; in ctl_arena_clear()
545 astats->decay_time = -1; in ctl_arena_clear()
546 astats->pactive = 0; in ctl_arena_clear()
547 astats->pdirty = 0; in ctl_arena_clear()
549 memset(&astats->astats, 0, sizeof(arena_stats_t)); in ctl_arena_clear()
550 astats->allocated_small = 0; in ctl_arena_clear()
551 astats->nmalloc_small = 0; in ctl_arena_clear()
552 astats->ndalloc_small = 0; in ctl_arena_clear()
553 astats->nrequests_small = 0; in ctl_arena_clear()
554 memset(astats->bstats, 0, NBINS * sizeof(malloc_bin_stats_t)); in ctl_arena_clear()
555 memset(astats->lstats, 0, nlclasses * in ctl_arena_clear()
557 memset(astats->hstats, 0, nhclasses * in ctl_arena_clear()
570 &cstats->pactive, &cstats->pdirty, &cstats->astats, in ctl_arena_stats_amerge()
588 ctl_arena_stats_smerge(ctl_arena_stats_t *sstats, ctl_arena_stats_t *astats) in ctl_arena_stats_smerge() argument
592 sstats->nthreads += astats->nthreads; in ctl_arena_stats_smerge()
593 sstats->pactive += astats->pactive; in ctl_arena_stats_smerge()
594 sstats->pdirty += astats->pdirty; in ctl_arena_stats_smerge()
597 sstats->astats.mapped += astats->astats.mapped; in ctl_arena_stats_smerge()
598 sstats->astats.retained += astats->astats.retained; in ctl_arena_stats_smerge()
599 sstats->astats.npurge += astats->astats.npurge; in ctl_arena_stats_smerge()
600 sstats->astats.nmadvise += astats->astats.nmadvise; in ctl_arena_stats_smerge()
601 sstats->astats.purged += astats->astats.purged; in ctl_arena_stats_smerge()
603 sstats->astats.metadata_mapped += in ctl_arena_stats_smerge()
604 astats->astats.metadata_mapped; in ctl_arena_stats_smerge()
605 sstats->astats.metadata_allocated += in ctl_arena_stats_smerge()
606 astats->astats.metadata_allocated; in ctl_arena_stats_smerge()
608 sstats->allocated_small += astats->allocated_small; in ctl_arena_stats_smerge()
609 sstats->nmalloc_small += astats->nmalloc_small; in ctl_arena_stats_smerge()
610 sstats->ndalloc_small += astats->ndalloc_small; in ctl_arena_stats_smerge()
611 sstats->nrequests_small += astats->nrequests_small; in ctl_arena_stats_smerge()
613 sstats->astats.allocated_large += in ctl_arena_stats_smerge()
614 astats->astats.allocated_large; in ctl_arena_stats_smerge()
615 sstats->astats.nmalloc_large += astats->astats.nmalloc_large; in ctl_arena_stats_smerge()
616 sstats->astats.ndalloc_large += astats->astats.ndalloc_large; in ctl_arena_stats_smerge()
617 sstats->astats.nrequests_large += in ctl_arena_stats_smerge()
618 astats->astats.nrequests_large; in ctl_arena_stats_smerge()
620 sstats->astats.allocated_huge += astats->astats.allocated_huge; in ctl_arena_stats_smerge()
621 sstats->astats.nmalloc_huge += astats->astats.nmalloc_huge; in ctl_arena_stats_smerge()
622 sstats->astats.ndalloc_huge += astats->astats.ndalloc_huge; in ctl_arena_stats_smerge()
625 sstats->bstats[i].nmalloc += astats->bstats[i].nmalloc; in ctl_arena_stats_smerge()
626 sstats->bstats[i].ndalloc += astats->bstats[i].ndalloc; in ctl_arena_stats_smerge()
628 astats->bstats[i].nrequests; in ctl_arena_stats_smerge()
629 sstats->bstats[i].curregs += astats->bstats[i].curregs; in ctl_arena_stats_smerge()
632 astats->bstats[i].nfills; in ctl_arena_stats_smerge()
634 astats->bstats[i].nflushes; in ctl_arena_stats_smerge()
636 sstats->bstats[i].nruns += astats->bstats[i].nruns; in ctl_arena_stats_smerge()
637 sstats->bstats[i].reruns += astats->bstats[i].reruns; in ctl_arena_stats_smerge()
638 sstats->bstats[i].curruns += astats->bstats[i].curruns; in ctl_arena_stats_smerge()
642 sstats->lstats[i].nmalloc += astats->lstats[i].nmalloc; in ctl_arena_stats_smerge()
643 sstats->lstats[i].ndalloc += astats->lstats[i].ndalloc; in ctl_arena_stats_smerge()
645 astats->lstats[i].nrequests; in ctl_arena_stats_smerge()
646 sstats->lstats[i].curruns += astats->lstats[i].curruns; in ctl_arena_stats_smerge()
650 sstats->hstats[i].nmalloc += astats->hstats[i].nmalloc; in ctl_arena_stats_smerge()
651 sstats->hstats[i].ndalloc += astats->hstats[i].ndalloc; in ctl_arena_stats_smerge()
653 astats->hstats[i].curhchunks; in ctl_arena_stats_smerge()
661 ctl_arena_stats_t *astats = &ctl_stats.arenas[i]; in ctl_arena_refresh() local
664 ctl_arena_clear(astats); in ctl_arena_refresh()
665 ctl_arena_stats_amerge(tsdn, astats, arena); in ctl_arena_refresh()
667 ctl_arena_stats_smerge(sstats, astats); in ctl_arena_refresh()
673 ctl_arena_stats_t *astats; in ctl_grow() local
680 astats = (ctl_arena_stats_t *)a0malloc((ctl_stats.narenas + 2) * in ctl_grow()
682 if (astats == NULL) in ctl_grow()
686 memcpy(astats, ctl_stats.arenas, (ctl_stats.narenas + 1) * in ctl_grow()
688 memset(&astats[ctl_stats.narenas + 1], 0, sizeof(ctl_arena_stats_t)); in ctl_grow()
689 if (ctl_arena_init(&astats[ctl_stats.narenas + 1])) { in ctl_grow()
690 a0dalloc(astats); in ctl_grow()
696 memcpy(&tstats, &astats[ctl_stats.narenas], in ctl_grow()
698 memcpy(&astats[ctl_stats.narenas], in ctl_grow()
699 &astats[ctl_stats.narenas + 1], sizeof(ctl_arena_stats_t)); in ctl_grow()
700 memcpy(&astats[ctl_stats.narenas + 1], &tstats, in ctl_grow()
704 ctl_stats.arenas = astats; in ctl_grow()
739 ctl_stats.arenas[ctl_stats.narenas].astats.allocated_large + in ctl_refresh()
740 ctl_stats.arenas[ctl_stats.narenas].astats.allocated_huge; in ctl_refresh()
744 ctl_stats.arenas[ctl_stats.narenas].astats.metadata_mapped + in ctl_refresh()
745 ctl_stats.arenas[ctl_stats.narenas].astats in ctl_refresh()
748 ctl_stats.arenas[ctl_stats.narenas].astats.metadata_mapped + in ctl_refresh()
752 ctl_stats.arenas[ctl_stats.narenas].astats.mapped; in ctl_refresh()
754 ctl_stats.arenas[ctl_stats.narenas].astats.retained; in ctl_refresh()
2130 ctl_stats.arenas[mib[2]].astats.mapped, size_t) in CTL_RO_NL_CGEN()
2132 ctl_stats.arenas[mib[2]].astats.retained, size_t) in CTL_RO_NL_CGEN()
2134 ctl_stats.arenas[mib[2]].astats.npurge, uint64_t) in CTL_RO_NL_CGEN()
2136 ctl_stats.arenas[mib[2]].astats.nmadvise, uint64_t) in CTL_RO_NL_CGEN()
2138 ctl_stats.arenas[mib[2]].astats.purged, uint64_t) in CTL_RO_NL_CGEN()
2140 ctl_stats.arenas[mib[2]].astats.metadata_mapped, size_t) in CTL_RO_NL_CGEN()
2142 ctl_stats.arenas[mib[2]].astats.metadata_allocated, size_t) in CTL_RO_NL_CGEN()
2153 ctl_stats.arenas[mib[2]].astats.allocated_large, size_t) in CTL_RO_NL_CGEN()
2155 ctl_stats.arenas[mib[2]].astats.nmalloc_large, uint64_t) in CTL_RO_NL_CGEN()
2157 ctl_stats.arenas[mib[2]].astats.ndalloc_large, uint64_t) in CTL_RO_NL_CGEN()
2159 ctl_stats.arenas[mib[2]].astats.nrequests_large, uint64_t) in CTL_RO_NL_CGEN()
2161 ctl_stats.arenas[mib[2]].astats.allocated_huge, size_t) in CTL_RO_NL_CGEN()
2163 ctl_stats.arenas[mib[2]].astats.nmalloc_huge, uint64_t) in CTL_RO_NL_CGEN()
2165 ctl_stats.arenas[mib[2]].astats.ndalloc_huge, uint64_t) in CTL_RO_NL_CGEN()
2167 ctl_stats.arenas[mib[2]].astats.nmalloc_huge, uint64_t) /* Intentional. */ in CTL_RO_NL_CGEN()