Print this page
arcstat

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/stat/common/acquire.c
          +++ new/usr/src/cmd/stat/common/acquire.c
↓ open down ↓ 42 lines elided ↑ open up ↑
  43   43  
  44   44  static char *cpu_states[] = {
  45   45          "cpu_ticks_idle",
  46   46          "cpu_ticks_user",
  47   47          "cpu_ticks_kernel",
  48   48          "cpu_ticks_wait"
  49   49  };
  50   50  
  51   51  static kstat_t *
  52   52  kstat_lookup_read(kstat_ctl_t *kc, char *module,
  53      -                int instance, char *name)
       53 +    int instance, char *name)
  54   54  {
  55   55          kstat_t *ksp = kstat_lookup(kc, module, instance, name);
  56   56          if (ksp == NULL)
  57   57                  return (NULL);
  58   58          if (kstat_read(kc, ksp, NULL) == -1)
  59   59                  return (NULL);
  60   60          return (ksp);
  61   61  }
  62   62  
  63   63  /*
↓ open down ↓ 503 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX