Lines Matching refs:pres
362 zs_pset_t *pres, zs_pset_t *pold, zs_pset_t *pnew, int func)
387 if (pres != pnew) {
394 pures->zspz_pset = pres;
399 if (pres == pold)
404 list_insert_tail(&pres->zsp_usage_list,
415 pres->zsp_total_time);
417 pres->zsp_online;
448 if (pres == pold) {
450 } else if (pres == pnew) {
458 pures->zspz_pset = pres;
462 list_insert_tail(&pres->zsp_usage_list, pures);
498 if (pres == pnew)
507 pures->zspz_pset = pres;
513 if (pres == pold)
516 list_insert_tail(&pres->zsp_usage_list, pures);
554 zs_pset_t *pold, *pnew, *pres;
574 pres = (zs_pset_t *)malloc(sizeof (zs_pset_t));
575 if (pres == NULL)
577 *pres = *pnew;
578 pres->zsp_intervals = 0;
579 list_create(&pres->zsp_usage_list,
585 pold, pres);
588 pres);
591 pres = pnew;
593 if (zs_usage_compute_pset_usage(uold, ures, pres,
599 pres->zsp_intervals++;
615 pres = pold;
617 pres = pnew;
619 pres = (zs_pset_t *)calloc(sizeof (zs_pset_t), 1);
620 if (pres == NULL)
623 *pres = *pnew;
624 list_create(&pres->zsp_usage_list,
627 list_insert_tail(&ures->zsu_pset_list, pres);
631 pres->zsp_intervals++;
640 TIMESTRUC_DELTA(pres->zsp_total_time,
643 TIMESTRUC_DELTA(pres->zsp_usage_kern,
645 TIMESTRUC_DELTA(pres->zsp_usage_zones,
648 zs_pset_add_usage(pres, pnew, func);
651 if (zs_usage_compute_pset_usage(uold, ures, pres, pold,
664 pres = (zs_pset_t *)calloc(sizeof (zs_pset_t), 1);
665 if (pres == NULL)
667 *pres = *pnew;
668 list_create(&pres->zsp_usage_list,
673 pres->zsp_intervals++;
675 list_insert_tail(&uold->zsu_pset_list, pres);
677 list_insert_tail(&ures->zsu_pset_list, pres);
679 if (zs_usage_compute_pset_usage(uold, ures, pres, NULL,