Lines Matching refs:sres
250 struct zs_system *sres;
253 sres = ures->zsu_system;
278 zres->zsz_system = sres;
320 zres->zsz_system = sres;
368 zres->zsz_system = sres;
2836 * sres - points to usage struct which is diff of snew and sold
2840 * sres and sold - point same struct that is running total of previous
2856 struct zs_system *sold, *snew, *sres;
2872 sres = ures->zsu_system;
2879 if (sres != snew)
2880 *sres = *snew;
2882 TIMESTRUC_DELTA(sres->zss_cpu_total_time,
2884 TIMESTRUC_DELTA(sres->zss_cpu_usage_kern,
2886 TIMESTRUC_DELTA(sres->zss_cpu_usage_zones,
2889 sres->zss_net_rbytes = snew->zss_net_rbytes -
2891 sres->zss_net_obytes = snew->zss_net_obytes -
2893 sres->zss_net_prbytes = snew->zss_net_prbytes -
2895 sres->zss_net_pobytes = snew->zss_net_pobytes -
2897 sres->zss_net_bytes = snew->zss_net_bytes -
2899 sres->zss_net_pbytes = snew->zss_net_pbytes -
2902 sres->zss_net_prbytes, B_FALSE);
2903 sres->zss_net_pused = snew->zss_net_pused;
2912 sres->zss_ncpus = MAX(sold->zss_ncpus, snew->zss_ncpus);
2913 sres->zss_ncpus_online = MAX(sold->zss_ncpus_online,
2917 sres->zss_cpu_total_time = ZS_MAXTS(sold->zss_cpu_total_time,
2919 sres->zss_cpu_usage_kern = ZS_MAXTS(sold->zss_cpu_usage_kern,
2921 sres->zss_cpu_usage_zones = ZS_MAXTS(sold->zss_cpu_usage_zones,
2925 sres->zss_processes_max = snew->zss_processes_max;
2926 sres->zss_lwps_max = snew->zss_lwps_max;
2927 sres->zss_shm_max = snew->zss_shm_max;
2928 sres->zss_shmids_max = snew->zss_shmids_max;
2929 sres->zss_semids_max = snew->zss_semids_max;
2930 sres->zss_msgids_max = snew->zss_msgids_max;
2931 sres->zss_lofi_max = snew->zss_lofi_max;
2936 sres->zss_ram_total = MAX(sold->zss_ram_total,
2938 sres->zss_ram_kern = MAX(sold->zss_ram_kern,
2940 sres->zss_ram_zones = MAX(sold->zss_ram_zones,
2942 sres->zss_locked_kern = MAX(sold->zss_locked_kern,
2944 sres->zss_locked_zones = MAX(sold->zss_locked_zones,
2946 sres->zss_vm_total = MAX(sold->zss_vm_total,
2948 sres->zss_vm_kern = MAX(sold->zss_vm_kern,
2950 sres->zss_vm_zones = MAX(sold->zss_vm_zones,
2952 sres->zss_swap_total = MAX(sold->zss_swap_total,
2954 sres->zss_swap_used = MAX(sold->zss_swap_used,
2957 sres->zss_processes = MAX(sold->zss_processes,
2959 sres->zss_lwps = MAX(sold->zss_lwps, snew->zss_lwps);
2960 sres->zss_shm = MAX(sold->zss_shm, snew->zss_shm);
2961 sres->zss_shmids = MAX(sold->zss_shmids, snew->zss_shmids);
2962 sres->zss_semids = MAX(sold->zss_semids, snew->zss_semids);
2963 sres->zss_msgids = MAX(sold->zss_msgids, snew->zss_msgids);
2964 sres->zss_lofi = MAX(sold->zss_msgids, snew->zss_lofi);
2966 sres->zss_net_pused = MAX(sold->zss_net_pused,
2968 sres->zss_net_speed = MAX(sold->zss_net_speed,
2970 sres->zss_net_bytes = MAX(sold->zss_net_bytes,
2972 sres->zss_net_rbytes = MAX(sold->zss_net_rbytes,
2974 sres->zss_net_obytes = MAX(sold->zss_net_obytes,
2976 sres->zss_net_pbytes = MAX(sold->zss_net_pbytes,
2978 sres->zss_net_prbytes = MAX(sold->zss_net_prbytes,
2980 sres->zss_net_pobytes = MAX(sold->zss_net_pobytes,
2993 sres->zss_ncpus = sold->zss_ncpus + snew->zss_ncpus;
2994 sres->zss_ncpus_online = sold->zss_ncpus_online +
2998 sres->zss_cpu_total_time = sold->zss_cpu_total_time;
2999 TIMESTRUC_ADD_TIMESTRUC(sres->zss_cpu_total_time,
3001 sres->zss_cpu_usage_kern = sold->zss_cpu_usage_kern;
3002 TIMESTRUC_ADD_TIMESTRUC(sres->zss_cpu_usage_kern,
3004 sres->zss_cpu_usage_zones = sold->zss_cpu_usage_zones;
3005 TIMESTRUC_ADD_TIMESTRUC(sres->zss_cpu_usage_zones,
3009 sres->zss_processes_max = snew->zss_processes_max;
3010 sres->zss_lwps_max = snew->zss_lwps_max;
3011 sres->zss_shm_max = snew->zss_shm_max;
3012 sres->zss_shmids_max = snew->zss_shmids_max;
3013 sres->zss_semids_max = snew->zss_semids_max;
3014 sres->zss_msgids_max = snew->zss_msgids_max;
3015 sres->zss_lofi_max = snew->zss_lofi_max;
3020 if (sres != sold) {
3021 sres->zss_ram_total = sold->zss_ram_total / 1024;
3022 sres->zss_ram_kern = sold->zss_ram_kern / 1024;
3023 sres->zss_ram_zones = sold->zss_ram_zones / 1024;
3024 sres->zss_locked_kern = sold->zss_locked_kern / 1024;
3025 sres->zss_locked_zones = sold->zss_locked_zones / 1024;
3026 sres->zss_vm_total = sold->zss_vm_total / 1024;
3027 sres->zss_vm_kern = sold->zss_vm_kern / 1024;
3028 sres->zss_vm_zones = sold->zss_vm_zones / 1024;
3029 sres->zss_swap_total = sold->zss_swap_total / 1024;
3030 sres->zss_swap_used = sold->zss_swap_used / 1024;
3032 sres->zss_processes = sold->zss_processes;
3033 sres->zss_lwps = sold->zss_lwps;
3034 sres->zss_shm = sold->zss_shm / 1024;
3035 sres->zss_shmids = sold->zss_shmids;
3036 sres->zss_semids = sold->zss_semids;
3037 sres->zss_msgids = sold->zss_msgids;
3038 sres->zss_lofi = sold->zss_lofi;
3041 sres->zss_ram_total += (snew->zss_ram_total / 1024);
3042 sres->zss_ram_kern += (snew->zss_ram_kern / 1024);
3043 sres->zss_ram_zones += (snew->zss_ram_zones / 1024);
3044 sres->zss_locked_kern += (snew->zss_locked_kern / 1024);
3045 sres->zss_locked_zones += (snew->zss_locked_zones / 1024);
3046 sres->zss_vm_total += (snew->zss_vm_total / 1024);
3047 sres->zss_vm_kern += (snew->zss_vm_kern / 1024);
3048 sres->zss_vm_zones += (snew->zss_vm_zones / 1024);
3049 sres->zss_swap_total += (snew->zss_swap_total / 1024);
3050 sres->zss_swap_used += (snew->zss_swap_used / 1024);
3051 sres->zss_processes += snew->zss_processes;
3052 sres->zss_lwps += snew->zss_lwps;
3053 sres->zss_shm += (snew->zss_shm / 1024);
3054 sres->zss_shmids += snew->zss_shmids;
3055 sres->zss_semids += snew->zss_semids;
3056 sres->zss_msgids += snew->zss_msgids;
3057 sres->zss_lofi += snew->zss_lofi;
3060 sres->zss_net_bytes += snew->zss_net_bytes;
3061 sres->zss_net_rbytes += snew->zss_net_rbytes;
3062 sres->zss_net_obytes += snew->zss_net_obytes;
3063 sres->zss_net_pbytes += snew->zss_net_pbytes;
3064 sres->zss_net_prbytes += snew->zss_net_prbytes;
3065 sres->zss_net_pobytes += snew->zss_net_pobytes;
3066 sres->zss_net_speed += snew->zss_net_speed;
3067 sres->zss_net_pused += snew->zss_net_pused;