Print this page
%B

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/tcp_stats.h
          +++ new/usr/src/uts/common/inet/tcp_stats.h
↓ open down ↓ 40 lines elided ↑ open up ↑
  41   41   *
  42   42   * How TCP statistics work.
  43   43   *
  44   44   * There are two types of statistics invoked by two macros.
  45   45   *
  46   46   * TCP_STAT(name) does non-atomic increment of a named stat counter. It is
  47   47   * supposed to be used in non MT-hot paths of the code.
  48   48   *
  49   49   * TCP_DBGSTAT(name) does atomic increment of a named stat counter. It is
  50   50   * supposed to be used for DEBUG purposes and may be used on a hot path.
  51      - * These counters are only available in a debugged kerel.  They are grouped
       51 + * These counters are only available in a debugged kernel.  They are grouped
  52   52   * under the TCP_DEBUG_COUNTER C pre-processor condition.
  53   53   *
  54   54   * Both TCP_STAT and TCP_DBGSTAT counters are available using kstat
  55   55   * (use "kstat tcp" to get them).
  56   56   *
  57   57   * How to add new counters.
  58   58   *
  59   59   * 1) Add a field in the tcp_stat structure describing your counter.
  60   60   * 2) Add a line in the template in tcp_kstat2_init() with the name
  61   61   *    of the counter.
↓ open down ↓ 190 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX