Lines Matching defs:stats

312     int nreqs, cu_cntr_stats_t *stats, int kmem_flags, int *nevents);
321 static int cu_cpu_update_stats(cu_cntr_stats_t *stats,
462 cu_cntr_stats_t *stats;
489 stats = NULL;
495 stats = cu_cpu_info->cu_cntr_stats;
515 * - Setup CPC request, counter info, and stats needed for each counter
535 if (cu_cpc_req_add("PAPI_tot_ins", reqs, nreqs, stats,
542 if (cu_cpc_req_add("PAPI_fp_ins", reqs, nreqs, stats,
581 cntr_info->ci_stats = &stats[nevents_save];
870 cu_cntr_stats_t *stats, int kmem_flags, int *nevents)
897 * Return error when stats not given or not enough room on list of CPC
900 if (stats == NULL || (nreqs <= 0 && n >= nreqs))
917 flags, 0, NULL, &stats[n], kmem_flags);
1127 * counter stats for each request to make attributing counter data
1334 * Propagate values from CPU capacity & utilization stats to kstats
1343 cu_cntr_stats_t *stats;
1381 stats = cntr_info->ci_stats;
1386 kstat->cu_cpu_util.value.ui64 = stats->cs_value_total;
1387 kstat->cu_cpu_rate.value.ui64 = stats->cs_rate;
1388 kstat->cu_cpu_rate_max.value.ui64 = stats->cs_rate_max;
1389 kstat->cu_cpu_time_running.value.ui64 = stats->cs_time_running;
1390 kstat->cu_cpu_time_stopped.value.ui64 = stats->cs_time_stopped;
1399 gethrtime() - stats->cs_time_start;
1494 cu_cpu_update_stats(cu_cntr_stats_t *stats, uint64_t cntr_value)
1502 if (stats == NULL)
1531 stats->cs_value_start = cntr_value;
1537 delta = cntr_value - stats->cs_value_start;
1542 time_delta = stats->cs_time_start ?
1543 time_snap - stats->cs_time_start :
1545 stats->cs_time_start = time_snap;
1546 stats->cs_value_start = cntr_value;
1554 stats->cs_time_stopped += time_delta;
1556 stats->cs_time_running += time_delta;
1569 stats->cs_rate = CU_RATE(delta, time_delta);
1570 if (stats->cs_rate_max < stats->cs_rate)
1571 stats->cs_rate_max = stats->cs_rate;
1573 stats->cs_value_last = delta;
1574 stats->cs_value_total += delta;
1621 cu_cntr_stats_t *stats;
1633 if (cntr_info == NULL || (stats = cntr_info->ci_stats) == NULL)
1636 hw_util->pghw_util += stats->cs_value_total;
1637 hw_util->pghw_time_running += stats->cs_time_running;
1638 hw_util->pghw_time_stopped += stats->cs_time_stopped;
1647 now - stats->cs_time_start;