Lines Matching refs:counts
231 uint64_t counts[dev->mtd_nmonitors][dev->mtd_ncounters]; in mt_ctl_counts() local
232 memset(counts, 0, in mt_ctl_counts()
233 dev->mtd_ncounters * dev->mtd_nmonitors * sizeof(counts[0][0])); in mt_ctl_counts()
234 error = dev->mtd_read(ctl.in.ctr_mask, (uint64_t *)counts); in mt_ctl_counts()
239 error = copyout(&counts, uptr, sizeof(counts)); in mt_ctl_counts()
326 _convert_usage_to_counts(struct recount_usage *usage, uint64_t *counts) in _convert_usage_to_counts() argument
329 counts[MT_CORE_INSTRS] = usage->ru_metrics[RCT_LVL_KERNEL].rm_instructions; in _convert_usage_to_counts()
330 counts[MT_CORE_CYCLES] = usage->ru_metrics[RCT_LVL_KERNEL].rm_cycles; in _convert_usage_to_counts()
332 #pragma unused(usage, counts) in _convert_usage_to_counts()
353 uint64_t counts[2] = { 0 }; variable
425 counts[0] = end[MT_CORE_INSTRS] - start[MT_CORE_INSTRS];
426 counts[1] = end[MT_CORE_CYCLES] - start[MT_CORE_CYCLES];
428 return copyout(counts, req->oldptr, MIN(req->oldlen, sizeof(counts)));