Lines Matching refs:pghw_cu_kstat
168 struct pghw_cu_kstat { struct
180 } pghw_cu_kstat = { argument
302 if (pg->pghw_cu_kstat != NULL) { in pghw_cmt_fini()
303 kstat_delete(pg->pghw_cu_kstat); in pghw_cmt_fini()
304 pg->pghw_cu_kstat = NULL; in pghw_cmt_fini()
534 if ((pg->pghw_cu_kstat = kstat_create("pg_hw_perf", ((pg_t *)pg)->pg_id, in pghw_kstat_create()
537 sizeof (pghw_cu_kstat) / sizeof (kstat_named_t), in pghw_kstat_create()
539 pg->pghw_cu_kstat->ks_lock = &pghw_kstat_lock; in pghw_kstat_create()
540 pg->pghw_cu_kstat->ks_data = &pghw_cu_kstat; in pghw_kstat_create()
541 pg->pghw_cu_kstat->ks_update = pghw_cu_kstat_update; in pghw_kstat_create()
542 pg->pghw_cu_kstat->ks_private = pg; in pghw_kstat_create()
543 pg->pghw_cu_kstat->ks_data_size += strlen(sharing) + 1; in pghw_kstat_create()
545 pg->pghw_cu_kstat->ks_data_size += PGHW_KSTAT_STR_LEN_MAX; in pghw_kstat_create()
546 pg->pghw_cu_kstat->ks_data_size += pg_cpulist_maxlen; in pghw_kstat_create()
547 kstat_install(pg->pghw_cu_kstat); in pghw_kstat_create()
572 struct pghw_cu_kstat *pgsp = &pghw_cu_kstat; in pghw_cu_kstat_update()