Print this page
DLPX-43064 include high-resolution round-trip times in connstat (EP-652)

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/time.h
          +++ new/usr/src/uts/common/sys/time.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  13   13   *
  14   14   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  15   15   * Use is subject to license terms.
  16   16   *
  17   17   * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  18   18   * Copyright 2016 Joyent, Inc.
  19   19   */
  20   20  
  21   21  /*
  22      - * Copyright (c) 2013, 2015 by Delphix. All rights reserved.
       22 + * Copyright (c) 2013, 2016 by Delphix. All rights reserved.
  23   23   */
  24   24  
  25   25  #ifndef _SYS_TIME_H
  26   26  #define _SYS_TIME_H
  27   27  
  28   28  #include <sys/feature_tests.h>
  29   29  
  30   30  /*
  31   31   * Structure returned by gettimeofday(2) system call,
  32   32   * and used in other calls.
↓ open down ↓ 208 lines elided ↑ open up ↑
 241  241   *      Definitions for commonly used resolutions.
 242  242   */
 243  243  #define SEC             1
 244  244  #define MILLISEC        1000
 245  245  #define MICROSEC        1000000
 246  246  #define NANOSEC         1000000000LL
 247  247  
 248  248  #define MSEC2NSEC(m)    ((hrtime_t)(m) * (NANOSEC / MILLISEC))
 249  249  #define NSEC2MSEC(n)    ((n) / (NANOSEC / MILLISEC))
 250  250  
 251      -#define USEC2NSEC(m)    ((hrtime_t)(m) * (NANOSEC / MICROSEC))
 252      -#define NSEC2USEC(n)    ((n) / (NANOSEC / MICROSEC))
      251 +#define USEC2NSEC(m)    ((hrtime_t)(m) * (NANOSEC / MICROSEC))
      252 +#define NSEC2USEC(n)    ((n) / (NANOSEC / MICROSEC))
 253  253  
 254  254  #define NSEC2SEC(n)     ((n) / (NANOSEC / SEC))
 255  255  #define SEC2NSEC(m)     ((hrtime_t)(m) * (NANOSEC / SEC))
 256  256  
 257  257  #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
 258  258  
 259  259  #ifndef _ASM
 260  260  
 261  261  /*
 262  262   * Time expressed as a 64-bit nanosecond counter.
↓ open down ↓ 231 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX