Lines Matching refs:lcol

155 	lcollection_t *lcol;  in lprocess_insert_mark()  local
179 if ((lcol = lcollection_find(&colid)) == NULL) in lprocess_insert_mark()
186 lproc = lcol->lcol_lprocess; in lprocess_insert_mark()
210 lproc->lpc_collection = lcol; in lprocess_insert_mark()
226 if (lcollection_member(lcol, lproc)) { in lprocess_insert_mark()
227 lprocess_t *cur = lcol->lcol_lprocess; in lprocess_insert_mark()
230 (long long)lcol->lcol_id.rcid_val, in lprocess_insert_mark()
240 lproc->lpc_next = lcol->lcol_lprocess; in lprocess_insert_mark()
244 lcol->lcol_lprocess = lproc; in lprocess_insert_mark()
251 lcol->lcol_stat.lcols_proc_in++; in lprocess_insert_mark()
256 list_walk_process_cb(lcollection_t *lcol, void *arg) in list_walk_process_cb() argument
263 member = lcol->lcol_lprocess; in list_walk_process_cb()
269 if (cb(lcol, member) != 0) { in list_walk_process_cb()
499 update_col_rss(lcollection_t *lcol) in update_col_rss() argument
503 lcol->lcol_rss = 0; in update_col_rss()
504 lcol->lcol_image_size = 0; in update_col_rss()
507 if (vmu_vals[i].vmu_id != lcol->lcol_id.rcid_val) in update_col_rss()
511 lcol->lcol_id.rcid_type != RCIDT_ZONE) in update_col_rss()
515 lcol->lcol_id.rcid_type != RCIDT_PROJECT) in update_col_rss()
519 lcol->lcol_rss = vmu_vals[i].vmu_rss_all / 1024; in update_col_rss()
520 lcol->lcol_image_size = vmu_vals[i].vmu_swap_all / 1024; in update_col_rss()
531 rss_sample_col_cb(lcollection_t *lcol, void *arg) in rss_sample_col_cb() argument
537 update_col_rss(lcol); in rss_sample_col_cb()
539 lcol->lcol_stat.lcols_rss_sample++; in rss_sample_col_cb()
540 rss = lcol->lcol_rss; in rss_sample_col_cb()
541 excess = rss - lcol->lcol_rss_cap; in rss_sample_col_cb()
543 lcol->lcol_stat.lcols_rss_act_sum += rss; in rss_sample_col_cb()
545 if (lcol->lcol_id.rcid_type == RCIDT_PROJECT) in rss_sample_col_cb()
548 lcol->lcol_stat.lcols_rss_sum += rss; in rss_sample_col_cb()
550 if (lcol->lcol_stat.lcols_min_rss > rss) in rss_sample_col_cb()
551 lcol->lcol_stat.lcols_min_rss = rss; in rss_sample_col_cb()
552 if (lcol->lcol_stat.lcols_max_rss < rss) in rss_sample_col_cb()
553 lcol->lcol_stat.lcols_max_rss = rss; in rss_sample_col_cb()
562 col_type_cb(lcollection_t *lcol, void *arg) in col_type_cb() argument
567 if (lcol->lcol_rss_cap == 0) in col_type_cb()
570 if (lcol->lcol_id.rcid_type == RCIDT_PROJECT) in col_type_cb()
615 sweep_process_cb(lcollection_t *lcol, lprocess_t *lpc) in sweep_process_cb() argument
633 excess_print_cb(lcollection_t *lcol, void *arg) in excess_print_cb() argument
635 int64_t excess = lcol->lcol_rss - lcol->lcol_rss_cap; in excess_print_cb()
638 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ? "project" : "zone"), in excess_print_cb()
639 lcol->lcol_name, in excess_print_cb()
640 (unsigned long long)lcol->lcol_rss, in excess_print_cb()
641 (unsigned long long)lcol->lcol_rss_cap, in excess_print_cb()
656 scan_cb(lcollection_t *lcol, void *arg) in scan_cb() argument
661 if (lcol->lcol_id.rcid_type == RCIDT_ZONE && in scan_cb()
662 lcol->lcol_id.rcid_val == GLOBAL_ZONEID) { in scan_cb()
663 gz_col = lcol; in scan_cb()
667 if ((excess = lcol->lcol_rss - lcol->lcol_rss_cap) > 0) { in scan_cb()
668 scan(lcol, excess); in scan_cb()
669 lcol->lcol_stat.lcols_scan++; in scan_cb()
680 scan_gz(lcollection_t *lcol, boolean_t project_over_cap) in scan_gz() argument
692 excess = lcol->lcol_rss - lcol->lcol_rss_cap; in scan_gz()
695 update_col_rss(lcol); in scan_gz()
696 excess = lcol->lcol_rss - lcol->lcol_rss_cap; in scan_gz()
701 scan(lcol, excess); in scan_gz()
702 lcol->lcol_stat.lcols_scan++; in scan_gz()
714 soft_scan_cb(lcollection_t *lcol, void *a) in soft_scan_cb() argument
720 if (lcol->lcol_id.rcid_type == RCIDT_ZONE && in soft_scan_cb()
721 lcol->lcol_id.rcid_val == GLOBAL_ZONEID) { in soft_scan_cb()
722 gz_col = lcol; in soft_scan_cb()
726 if ((excess = lcol->lcol_rss - lcol->lcol_rss_cap) > 0) { in soft_scan_cb()
732 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ? in soft_scan_cb()
734 (long)lcol->lcol_id.rcid_val, in soft_scan_cb()
739 scan(lcol, adjusted_excess); in soft_scan_cb()
740 lcol->lcol_stat.lcols_scan++; in soft_scan_cb()
747 soft_scan_gz(lcollection_t *lcol, void *a) in soft_scan_gz() argument
760 excess = lcol->lcol_rss - lcol->lcol_rss_cap; in soft_scan_gz()
763 update_col_rss(lcol); in soft_scan_gz()
764 excess = lcol->lcol_rss - lcol->lcol_rss_cap; in soft_scan_gz()
773 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ? in soft_scan_gz()
775 (long)lcol->lcol_id.rcid_val, in soft_scan_gz()
780 scan(lcol, adjusted_excess); in soft_scan_gz()
781 lcol->lcol_stat.lcols_scan++; in soft_scan_gz()
791 unenforced_cap_cb(lcollection_t *lcol, void *arg) in unenforced_cap_cb() argument
793 lcol->lcol_stat.lcols_unenforced_cap++; in unenforced_cap_cb()
867 collection_clear_cb(lcollection_t *lcol, void *arg) in collection_clear_cb() argument
869 lcol->lcol_mark = 0; in collection_clear_cb()
908 collection_sweep_cb(lcollection_t *lcol, void *arg) in collection_sweep_cb() argument
910 if (lcol->lcol_mark == 0) { in collection_sweep_cb()
912 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ? in collection_sweep_cb()
913 "project" : "zone"), lcol->lcol_name); in collection_sweep_cb()
914 lcollection_free(lcol); in collection_sweep_cb()
1028 simple_report_collection_cb(lcollection_t *lcol, void *arg) in simple_report_collection_cb() argument
1032 (lcol->lcol_stat.field - lcol->lcol_stat_old.field)) in simple_report_collection_cb()
1038 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ? "project" : "zone"), in simple_report_collection_cb()
1039 lcol->lcol_name, in simple_report_collection_cb()
1043 (unsigned long long)lcol->lcol_stat.lcols_min_rss, in simple_report_collection_cb()
1044 (unsigned long long)lcol->lcol_stat.lcols_max_rss, in simple_report_collection_cb()
1045 (unsigned long long)lcol->lcol_rss_cap, in simple_report_collection_cb()
1046 (unsigned long long)(lcol->lcol_stat.lcols_proc_in - in simple_report_collection_cb()
1047 lcol->lcol_stat.lcols_proc_out), DELTA(lcols_proc_out), in simple_report_collection_cb()
1060 report_collection_cb(lcollection_t *lcol, void *arg) in report_collection_cb() argument
1069 dc.lcol_id = lcol->lcol_id; in report_collection_cb()
1070 (void) strcpy(dc.lcol_name, lcol->lcol_name); in report_collection_cb()
1071 dc.lcol_rss = lcol->lcol_rss; in report_collection_cb()
1072 dc.lcol_image_size = lcol->lcol_image_size; in report_collection_cb()
1073 dc.lcol_rss_cap = lcol->lcol_rss_cap; in report_collection_cb()
1074 dc.lcol_stat = lcol->lcol_stat; in report_collection_cb()
1077 lcol->lcol_stat_old = lcol->lcol_stat; in report_collection_cb()
1080 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ? in report_collection_cb()
1082 lcol->lcol_name); in report_collection_cb()
1255 sum_excess_cb(lcollection_t *lcol, void *arg) in sum_excess_cb() argument
1259 *sum_excess += MAX((int64_t)0, (int64_t)(lcol->lcol_rss - in sum_excess_cb()
1260 lcol->lcol_rss_cap)); in sum_excess_cb()