Lines Matching defs:kstat
180 * When the time between two kstat reads for the same CPU is less than
182 * for the CPU. This helps reduce cross-calls when kstat consumers read data
220 * by the capacity/utilization framework, a kstat is created for that CPU and
228 * cu_cpu_id CPU ID for this kstat
230 * cu_pg_id PG ID for this kstat
233 * offline or online. Two kstat snapshots for the same
237 * cu_pg_id PG ID for the relationship described by this kstat
252 * cu_cpu_relationship Name of sharing relationship for the PG in this kstat
1310 * Canonify PG name to conform to kstat name rules
1341 struct cu_cpu_kstat *kstat = &cu_cpu_kstat;
1350 kstat->cu_cpu_id.value.ui32 = cp->cpu_id;
1351 kstat->cu_pg_id.value.i32 = ((pg_t *)pg)->pg_id;
1359 kstat->cu_generation.value.ui32 = cp->cpu_generation;
1360 kstat_named_setstr(&kstat->cu_cpu_relationship,
1363 kstat->cu_cpu_util.value.ui64 = 0;
1364 kstat->cu_cpu_rate.value.ui64 = 0;
1365 kstat->cu_cpu_rate_max.value.ui64 = 0;
1366 kstat->cu_cpu_time_running.value.ui64 = 0;
1367 kstat->cu_cpu_time_stopped.value.ui64 = 0;
1382 kstat->cu_generation.value.ui32 = cp->cpu_generation;
1383 kstat_named_setstr(&kstat->cu_cpu_relationship,
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;
1398 kstat->cu_cpu_time_stopped.value.ui64 +=