Print this page
7085 add support for "if" and "else" statements in dtrace

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdtrace/common/dt_open.c
          +++ new/usr/src/lib/libdtrace/common/dt_open.c
↓ open down ↓ 107 lines elided ↑ open up ↑
 108  108  #define DT_VERS_1_7     DT_VERSION_NUMBER(1, 7, 0)
 109  109  #define DT_VERS_1_7_1   DT_VERSION_NUMBER(1, 7, 1)
 110  110  #define DT_VERS_1_8     DT_VERSION_NUMBER(1, 8, 0)
 111  111  #define DT_VERS_1_8_1   DT_VERSION_NUMBER(1, 8, 1)
 112  112  #define DT_VERS_1_9     DT_VERSION_NUMBER(1, 9, 0)
 113  113  #define DT_VERS_1_9_1   DT_VERSION_NUMBER(1, 9, 1)
 114  114  #define DT_VERS_1_10    DT_VERSION_NUMBER(1, 10, 0)
 115  115  #define DT_VERS_1_11    DT_VERSION_NUMBER(1, 11, 0)
 116  116  #define DT_VERS_1_12    DT_VERSION_NUMBER(1, 12, 0)
 117  117  #define DT_VERS_1_12_1  DT_VERSION_NUMBER(1, 12, 1)
 118      -#define DT_VERS_LATEST  DT_VERS_1_12_1
 119      -#define DT_VERS_STRING  "Sun D 1.12.1"
      118 +#define DT_VERS_1_12_2  DT_VERSION_NUMBER(1, 12, 2)
      119 +#define DT_VERS_LATEST  DT_VERS_1_12_2
      120 +#define DT_VERS_STRING  "Sun D 1.12.2"
 120  121  
 121  122  const dt_version_t _dtrace_versions[] = {
 122  123          DT_VERS_1_0,    /* D API 1.0.0 (PSARC 2001/466) Solaris 10 FCS */
 123  124          DT_VERS_1_1,    /* D API 1.1.0 Solaris Express 6/05 */
 124  125          DT_VERS_1_2,    /* D API 1.2.0 Solaris 10 Update 1 */
 125  126          DT_VERS_1_2_1,  /* D API 1.2.1 Solaris Express 4/06 */
 126  127          DT_VERS_1_2_2,  /* D API 1.2.2 Solaris Express 6/06 */
 127  128          DT_VERS_1_3,    /* D API 1.3 Solaris Express 10/06 */
 128  129          DT_VERS_1_4,    /* D API 1.4 Solaris Express 2/07 */
 129  130          DT_VERS_1_4_1,  /* D API 1.4.1 Solaris Express 4/07 */
↓ open down ↓ 5 lines elided ↑ open up ↑
 135  136          DT_VERS_1_7,    /* D API 1.7 */
 136  137          DT_VERS_1_7_1,  /* D API 1.7.1 */
 137  138          DT_VERS_1_8,    /* D API 1.8 */
 138  139          DT_VERS_1_8_1,  /* D API 1.8.1 */
 139  140          DT_VERS_1_9,    /* D API 1.9 */
 140  141          DT_VERS_1_9_1,  /* D API 1.9.1 */
 141  142          DT_VERS_1_10,   /* D API 1.10 */
 142  143          DT_VERS_1_11,   /* D API 1.11 */
 143  144          DT_VERS_1_12,   /* D API 1.12 */
 144  145          DT_VERS_1_12_1, /* D API 1.12.1 */
      146 +        DT_VERS_1_12_2, /* D API 1.12.2 */
 145  147          0
 146  148  };
 147  149  
 148  150  /*
 149  151   * Table of global identifiers.  This is used to populate the global identifier
 150  152   * hash when a new dtrace client open occurs.  For more info see dt_ident.h.
 151  153   * The global identifiers that represent functions use the dt_idops_func ops
 152  154   * and specify the private data pointer as a prototype string which is parsed
 153  155   * when the identifier is first encountered.  These prototypes look like ANSI
 154  156   * C function prototypes except that the special symbol "@" can be used as a
↓ open down ↓ 1272 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX