FreeBSD/usr.sbin/pmcstat/pmcpl_calltree.c
/*
 * Compute the sum of all root arcs.
 */
Compute the sum of all root arcs.
Compute the sum of all root arcs .
static void
pmcpl_ct_samples_root(struct pmcpl_ct_sample *samples)
{
	int i, pmcin;
	pmcpl_ct_samples_init(samples);
	pmcpl_ct_samples_grow(samples);
	for (i = 0; i < pmcpl_ct_root->pct_narc; i++)
		for (pmcin = 0; pmcin < pmcstat_npmcs; pmcin++)
			samples->sb[pmcin] += PMCPL_CT_SAMPLE(pmcin,
			    &pmcpl_ct_root->pct_arc[i].pcta_samples);
}
static void pmcpl_ct_samples_root ( struct pmcpl_ct_sample * samples ) { int i , pmcin ; pmcpl_ct_samples_init ( samples ) ; pmcpl_ct_samples_grow ( samples ) ; for ( i = 0 ; i < pmcpl_ct_root -> pct_narc ; i ++ ) for ( pmcin = 0 ; pmcin < pmcstat_npmcs ; pmcin ++ ) samples -> sb [ pmcin ] += PMCPL_CT_SAMPLE ( pmcin , & pmcpl_ct_root -> pct_arc [ i ] . pcta_samples ) ; }
Compute the sum of all root arcs.
Compute the sum of all root arcs .