Print this page
3379 Typo or undefined operation in uts/common/cpr/cpr_stat.c

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/cpr/cpr_stat.c
          +++ new/usr/src/uts/common/cpr/cpr_stat.c
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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 + * Copyright (c) 2014 Gary Mills
  22   23   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   24   * Use is subject to license terms.
  24   25   */
  25   26  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   27  #include <sys/types.h>
  29   28  #include <sys/ddi.h>
  30   29  #include <sys/pte.h>
  31   30  #include <sys/cpr.h>
  32   31  
  33   32  /*
  34   33   * Support routines for CPR statistic collection
  35   34   */
  36   35  struct cpr_event cpr_events_buf[CPR_E_MAX_EVENTNUM];
  37   36  
↓ open down ↓ 26 lines elided ↑ open up ↑
  64   63                  return;
  65   64          }
  66   65          /*
  67   66           * disallow entering start twice without calling end first
  68   67           */
  69   68          if (cep->ce_ntests & CE_START_MASK)
  70   69                  return;
  71   70  
  72   71          cep->ce_ntests |= CE_START_MASK;
  73   72          cep->ce_sec.stime = cep->ce_sec.etime = tv.tv_sec;
  74      -        cep->ce_sec.ltime = cep->ce_sec.ltime = 0;
       73 +        cep->ce_sec.ltime = 0;
  75   74          cep->ce_msec.stime = cep->ce_msec.etime = tv.tv_nsec / 100000000;
  76      -        cep->ce_msec.ltime = cep->ce_msec.ltime = 0;
       75 +        cep->ce_msec.ltime = 0;
  77   76  }
  78   77  
  79   78  void
  80   79  cpr_stat_event_end(char *name, cpr_time_t *ctp)
  81   80  {
  82   81          struct cpr_stat *cp = STAT;
  83   82          struct cpr_event *cep;
  84   83          cpr_time_t tv;
  85   84  
  86   85          if (ctp)
↓ open down ↓ 212 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX