Lines Matching refs:ss
43 static struct snapshot *ss;
53 static void dosum(struct sys_snapshot *ss);
54 static void dointr(struct snapshot *ss);
140 ss = acquire_snapshot(kc, types, &df);
143 etime = ss->s_sys.ss_ticks / hz;
146 dointr(ss);
147 free_snapshot(ss);
151 dosum(&ss->s_sys);
152 free_snapshot(ss);
182 dovmstats(old, ss);
190 old = ss;
191 ss = acquire_snapshot(kc, types, &df);
194 snapshot_report_changes(old, ss);
197 if (snapshot_has_changed(old, ss)) {
202 dovmstats(old, ss);
206 free_snapshot(ss);
375 int i = df.if_max_iodevs - ss->s_nr_iodevs;
397 (void) snapshot_walk(SNAP_IODEVS, NULL, ss, print_disk, NULL);
419 dosum(struct sys_snapshot *ss)
426 sum_out("swap ins", &ss->ss_agg_vm, "swapin");
427 sum_out("swap outs", &ss->ss_agg_vm, "swapout");
428 sum_out("pages swapped in", &ss->ss_agg_vm, "pgswapin");
429 sum_out("pages swapped out", &ss->ss_agg_vm, "pgswapout");
431 ksn = kstat_data_lookup(&ss->ss_agg_vm, "hat_fault");
434 ss->ss_agg_vm.ks_name);
437 ksn = kstat_data_lookup(&ss->ss_agg_vm, "as_fault");
440 ss->ss_agg_vm.ks_name);
447 sum_out("page ins", &ss->ss_agg_vm, "pgin");
448 sum_out("page outs", &ss->ss_agg_vm, "pgout");
449 sum_out("pages paged in", &ss->ss_agg_vm, "pgpgin");
450 sum_out("pages paged out", &ss->ss_agg_vm, "pgpgout");
451 sum_out("total reclaims", &ss->ss_agg_vm, "pgrec");
452 sum_out("reclaims from free list", &ss->ss_agg_vm, "pgfrec");
453 sum_out("micro (hat) faults", &ss->ss_agg_vm, "hat_fault");
454 sum_out("minor (as) faults", &ss->ss_agg_vm, "as_fault");
455 sum_out("major faults", &ss->ss_agg_vm, "maj_fault");
456 sum_out("copy-on-write faults", &ss->ss_agg_vm, "cow_fault");
457 sum_out("zero fill page faults", &ss->ss_agg_vm, "zfod");
458 sum_out("pages examined by the clock daemon", &ss->ss_agg_vm, "scan");
459 sum_out("revolutions of the clock hand", &ss->ss_agg_vm, "rev");
460 sum_out("pages freed by the clock daemon", &ss->ss_agg_vm, "dfree");
461 sum_out("forks", &ss->ss_agg_sys, "sysfork");
462 sum_out("vforks", &ss->ss_agg_sys, "sysvfork");
463 sum_out("execs", &ss->ss_agg_sys, "sysexec");
464 sum_out("cpu context switches", &ss->ss_agg_sys, "pswitch");
465 sum_out("device interrupts", &ss->ss_agg_sys, "intr");
466 sum_out("traps", &ss->ss_agg_sys, "trap");
467 sum_out("system calls", &ss->ss_agg_sys, "syscall");
469 nchtotal = (long double) ss->ss_nc.ncs_hits.value.ui64 +
470 (long double) ss->ss_nc.ncs_misses.value.ui64;
471 nchhits = ss->ss_nc.ncs_hits.value.ui64;
475 sum_out("user cpu", &ss->ss_agg_sys, "cpu_ticks_user");
476 sum_out("system cpu", &ss->ss_agg_sys, "cpu_ticks_kernel");
477 sum_out("idle cpu", &ss->ss_agg_sys, "cpu_ticks_idle");
478 sum_out("wait cpu", &ss->ss_agg_sys, "cpu_ticks_wait");
482 dointr(struct snapshot *ss)
490 for (i = 0; i < ss->s_nr_intrs; i++) {
492 ss->s_intrs[i].is_name, ss->s_intrs[i].is_total,
493 ss->s_intrs[i].is_total / etime);
494 total += ss->s_intrs[i].is_total;