Print this page
patch relling-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/rpcsvc/rstat_proc.c
          +++ new/usr/src/cmd/rpcsvc/rstat_proc.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   26  /*
  29   27   * rstat service:  built with rstat.x
  30   28   */
  31   29  
  32   30  #include <stdio.h>
  33   31  #include <stdlib.h>
  34   32  #include <stdarg.h>
  35   33  #include <string.h>
  36   34  #include <signal.h>
  37   35  #include <utmpx.h>
↓ open down ↓ 324 lines elided ↑ open up ↑
 362  360          stats_s4.curtime = stats_s3.curtime;
 363  361  
 364  362          stats_s2.v_pgpgin =
 365  363          stats_s3.v_pgpgin =
 366  364          stats_s4.v_pgpgin = CPU_STAT(&cpu_stats_all.vm, "pgpgin");
 367  365          stats_s2.v_pgpgout =
 368  366          stats_s3.v_pgpgout =
 369  367          stats_s4.v_pgpgout = CPU_STAT(&cpu_stats_all.vm, "pgpgout");
 370  368          stats_s2.v_pswpin =
 371  369          stats_s3.v_pswpin =
 372      -        stats_s4.v_pswpin = CPU_STAT(&cpu_stats_all.vm, "pgswapin");
      370 +        stats_s4.v_pswpin = 0;
 373  371          stats_s2.v_pswpout =
 374  372          stats_s3.v_pswpout =
 375      -        stats_s4.v_pswpout = CPU_STAT(&cpu_stats_all.vm, "pgswapout");
      373 +        stats_s4.v_pswpout = 0;
 376  374          stats_s3.v_intr = CPU_STAT(&cpu_stats_all.sys, "intr");
 377  375          stats_s3.v_intr -= hz*(stats_s3.curtime.tv_sec - btm.tv_sec) +
 378  376                  hz*(stats_s3.curtime.tv_usec - btm.tv_usec)/1000000;
 379  377          stats_s2.v_intr =
 380  378          stats_s4.v_intr = stats_s3.v_intr;
 381  379          /* swtch not in V1 */
 382  380          stats_s2.v_swtch =
 383  381          stats_s3.v_swtch =
 384  382          stats_s4.v_swtch = CPU_STAT(&cpu_stats_all.sys, "pswitch");
 385  383  
↓ open down ↓ 715 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX