Searched refs:cpu_stats_list (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/power/ |
H A D | sysstat.c | 50 static kstat_t **cpu_stats_list = NULL; variable 308 safe_zalloc((void **)&cpu_stats_list, ncpus * sizeof (*cpu_stats_list), in cpu_stats_init() 316 cpu_stats_list[ncpus++] = ksp; in cpu_stats_init() 336 if (kstat_read(kc, cpu_stats_list[i], NULL) == -1) in cpu_stats_load() 340 kstat_copy(cpu_stats_list[i], &new_cpu_stats, 1); in cpu_stats_load() 349 tkp = (kstat_named_t *)cpu_stats_list[i]->ks_data; in cpu_stats_load() 350 for (j = 0; j < cpu_stats_list[i]->ks_ndata; j++) in cpu_stats_load() 353 cpu_stats_list[i]->ks_snaptime); in cpu_stats_load()
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rstat_proc.c | 68 static _cpu_stats_t *cpu_stats_list = NULL; variable 737 safe_zalloc((void **)&cpu_stats_list, ncpus * sizeof (*cpu_stats_list), in system_stat_init() 745 kstat_copy(ksp, &cpu_stats_list[ncpus].sys, in system_stat_init() 749 kstat_copy(ksp, &cpu_stats_list[ncpus].vm, 1); in system_stat_init() 781 if (kstat_read(kc, &cpu_stats_list[i].sys, NULL) == -1 || in system_stat_load() 782 kstat_read(kc, &cpu_stats_list[i].vm, NULL) == -1) in system_stat_load() 785 kstat_copy(&cpu_stats_list[0].sys, &cpu_stats_all.sys, in system_stat_load() 787 kstat_copy(&cpu_stats_list[0].vm, &cpu_stats_all.vm, 1); in system_stat_load() 798 tkp = (kstat_named_t *)cpu_stats_list[i].sys.ks_data; in system_stat_load() 799 for (j = 0; j < cpu_stats_list[i].sys.ks_ndata; j++) in system_stat_load() [all …]
|