Lines Matching refs:pures
364 zs_pset_zone_t *puold, *punew, *pures; in zs_usage_compute_pset_usage() local
388 pures = (zs_pset_zone_t *)malloc( in zs_usage_compute_pset_usage()
390 if (pures == NULL) in zs_usage_compute_pset_usage()
392 *pures = *punew; in zs_usage_compute_pset_usage()
394 pures->zspz_pset = pres; in zs_usage_compute_pset_usage()
395 pures->zspz_zone = zs_lookup_zone_byname(ures, in zs_usage_compute_pset_usage()
397 assert(pures->zspz_zone != NULL); in zs_usage_compute_pset_usage()
398 pures->zspz_intervals = 0; in zs_usage_compute_pset_usage()
402 pures); in zs_usage_compute_pset_usage()
405 pures); in zs_usage_compute_pset_usage()
407 pures = punew; in zs_usage_compute_pset_usage()
410 pures->zspz_intervals++; in zs_usage_compute_pset_usage()
414 pures->zspz_zone->zsz_pset_time, in zs_usage_compute_pset_usage()
416 pures->zspz_zone->zsz_cpus_online += in zs_usage_compute_pset_usage()
449 pures = puold; in zs_usage_compute_pset_usage()
451 pures = punew; in zs_usage_compute_pset_usage()
453 pures = (zs_pset_zone_t *)malloc( in zs_usage_compute_pset_usage()
455 if (pures == NULL) in zs_usage_compute_pset_usage()
457 *pures = *punew; in zs_usage_compute_pset_usage()
458 pures->zspz_pset = pres; in zs_usage_compute_pset_usage()
459 pures->zspz_zone = zs_lookup_zone_byname(ures, in zs_usage_compute_pset_usage()
461 assert(pures->zspz_zone != NULL); in zs_usage_compute_pset_usage()
462 list_insert_tail(&pres->zsp_usage_list, pures); in zs_usage_compute_pset_usage()
465 pures->zspz_intervals++; in zs_usage_compute_pset_usage()
478 TIMESTRUC_DELTA(pures->zspz_cpu_usage, in zs_usage_compute_pset_usage()
481 zs_pset_zone_add_usage(pures, punew, func); in zs_usage_compute_pset_usage()
503 pures = (zs_pset_zone_t *)calloc(sizeof (zs_pset_zone_t), 1); in zs_usage_compute_pset_usage()
504 if (pures == NULL) in zs_usage_compute_pset_usage()
506 *pures = *punew; in zs_usage_compute_pset_usage()
507 pures->zspz_pset = pres; in zs_usage_compute_pset_usage()
508 pures->zspz_zone = zs_lookup_zone_byname(ures, in zs_usage_compute_pset_usage()
510 assert(pures->zspz_zone != NULL); in zs_usage_compute_pset_usage()
512 pures->zspz_intervals++; in zs_usage_compute_pset_usage()
514 list_insert_tail(&pold->zsp_usage_list, pures); in zs_usage_compute_pset_usage()
516 list_insert_tail(&pres->zsp_usage_list, pures); in zs_usage_compute_pset_usage()