Lines Matching refs:id
232 id_info_t *id;
307 for (id = list->l_head; id != NULL; id = id->id_next) {
314 if (next->vmu_id == id->id_uid)
318 if (next->vmu_id == id->id_taskid)
322 if (next->vmu_id == id->id_projid)
326 if (next->vmu_id == id->id_zoneid)
335 id->id_size = match->vmu_swap_all / 1024;
336 id->id_rssize = match->vmu_rss_all / 1024;
337 id->id_pctmem = (100.0 * (float)match->vmu_rss_all) /
340 id->id_sizematch = B_TRUE;
357 id_info_t *id;
446 id = list->l_ptrs[i];
451 cpu = (100 * id->id_pctcpu) / total_cpu;
453 cpu = id->id_pctcpu;
454 if (id->id_sizematch == B_FALSE && total_mem >= 100)
455 mem = (100 * id->id_pctmem) / total_mem;
457 mem = id->id_pctmem;
459 pwd_getname(id->id_uid, pname, sizeof (pname),
464 getzonename(id->id_zoneid, zonename,
469 getprojname(id->id_projid, projname,
475 Format_size(psize, id->id_size, 6);
476 Format_size(prssize, id->id_rssize, 6);
479 Format_time(ptime, id->id_time, 10);
483 (void) printf(PROJECT_LINE, (int)id->id_projid,
484 id->id_nproc, psize, prssize, pmem, ptime,
487 (void) printf(TASK_LINE, (int)id->id_taskid,
488 id->id_nproc, psize, prssize, pmem, ptime,
491 (void) printf(ZONE_LINE, (int)id->id_zoneid,
492 id->id_nproc, psize, prssize, pmem, ptime,
495 (void) printf(USER_LINE, id->id_nproc, pname,
676 id_info_t *id = list->l_head;
679 while (id) {
680 nextid = id->id_next;
681 free(id);
682 id = nextid;
692 id_info_t *id;
695 list->l_head = list->l_tail = id = Zalloc(sizeof (id_info_t));
699 for (id = list->l_head; id; id = id->id_next) {
701 (id->id_uid != lwp->li_info.pr_uid))
704 (id->id_taskid != lwp->li_info.pr_taskid))
707 (id->id_projid != lwp->li_info.pr_projid))
710 (id->id_zoneid != lwp->li_info.pr_zoneid))
713 (id->id_lgroup != lwp->li_info.pr_lwp.pr_lgrp))
715 id->id_nproc++;
716 id->id_taskid = lwp->li_info.pr_taskid;
717 id->id_projid = lwp->li_info.pr_projid;
718 id->id_zoneid = lwp->li_info.pr_zoneid;
719 id->id_lgroup = lwp->li_info.pr_lwp.pr_lgrp;
722 id->id_size += lwp->li_info.pr_size;
723 id->id_rssize += lwp->li_info.pr_rssize;
725 id->id_pctcpu += FRC2PCT(lwp->li_info.pr_lwp.pr_pctcpu);
727 id->id_time += TIME2SEC(lwp->li_info.pr_lwp.pr_time);
729 id->id_time += TIME2SEC(lwp->li_info.pr_time);
730 id->id_pctmem += FRC2PCT(lwp->li_info.pr_pctmem);
731 id->id_key += lwp->li_key;
737 id = list->l_tail;
738 id->id_next = Zalloc(sizeof (id_info_t));
739 id->id_next->id_prev = list->l_tail;
740 id->id_next->id_next = NULL;
741 list->l_tail = id->id_next;
742 id = list->l_tail;
744 id->id_uid = lwp->li_info.pr_uid;
745 id->id_projid = lwp->li_info.pr_projid;
746 id->id_taskid = lwp->li_info.pr_taskid;
747 id->id_zoneid = lwp->li_info.pr_zoneid;
748 id->id_lgroup = lwp->li_info.pr_lwp.pr_lgrp;
749 id->id_nproc++;
750 id->id_sizematch = B_FALSE;
752 id->id_size = lwp->li_info.pr_size;
753 id->id_rssize = lwp->li_info.pr_rssize;
755 id->id_pctcpu = FRC2PCT(lwp->li_info.pr_lwp.pr_pctcpu);
757 id->id_time = TIME2SEC(lwp->li_info.pr_lwp.pr_time);
759 id->id_time = TIME2SEC(lwp->li_info.pr_time);
760 id->id_pctmem = FRC2PCT(lwp->li_info.pr_pctmem);
761 id->id_key = lwp->li_key;
762 total_cpu += id->id_pctcpu;
763 total_mem += id->id_pctmem;
1340 psetid_t id;
1345 if ((id = Atoi(p)) == 0)
1346 id = PS_NONE;
1347 add_element(&set_tbl, id);
1349 if ((id = Atoi(p)) == 0)
1350 id = PS_NONE;
1351 if (!has_element(&set_tbl, id))
1352 add_element(&set_tbl, id);