Lines Matching refs:npmcs
71 ((a) < (b)->npmcs ? (b)->sb[a] : 0)
78 int npmcs; /* Max pmc index available. */ member
166 samples->npmcs = 0; in pmcpl_ct_samples_init()
178 samples->npmcs = 0; in pmcpl_ct_samples_free()
190 unsigned int npmcs; in pmcpl_ct_samples_grow() local
193 if (pmcstat_npmcs <= samples->npmcs) in pmcpl_ct_samples_grow()
196 npmcs = samples->npmcs + in pmcpl_ct_samples_grow()
197 max(pmcstat_npmcs - samples->npmcs, PMCPL_CT_GROWSIZE); in pmcpl_ct_samples_grow()
198 samples->sb = reallocarray(samples->sb, npmcs, sizeof(unsigned)); in pmcpl_ct_samples_grow()
201 bzero((char *)samples->sb + samples->npmcs * sizeof(unsigned), in pmcpl_ct_samples_grow()
202 (npmcs - samples->npmcs) * sizeof(unsigned)); in pmcpl_ct_samples_grow()
203 samples->npmcs = npmcs; in pmcpl_ct_samples_grow()
1076 if (j < ct->pct_samples.npmcs) in _pmcpl_ct_expand_inline()