Print this page
dccp: basic dtrace


  93  * modification to the version number.
  94  */
  95 #define DT_VERS_1_0     DT_VERSION_NUMBER(1, 0, 0)
  96 #define DT_VERS_1_1     DT_VERSION_NUMBER(1, 1, 0)
  97 #define DT_VERS_1_2     DT_VERSION_NUMBER(1, 2, 0)
  98 #define DT_VERS_1_2_1   DT_VERSION_NUMBER(1, 2, 1)
  99 #define DT_VERS_1_2_2   DT_VERSION_NUMBER(1, 2, 2)
 100 #define DT_VERS_1_3     DT_VERSION_NUMBER(1, 3, 0)
 101 #define DT_VERS_1_4     DT_VERSION_NUMBER(1, 4, 0)
 102 #define DT_VERS_1_4_1   DT_VERSION_NUMBER(1, 4, 1)
 103 #define DT_VERS_1_5     DT_VERSION_NUMBER(1, 5, 0)
 104 #define DT_VERS_1_6     DT_VERSION_NUMBER(1, 6, 0)
 105 #define DT_VERS_1_6_1   DT_VERSION_NUMBER(1, 6, 1)
 106 #define DT_VERS_1_6_2   DT_VERSION_NUMBER(1, 6, 2)
 107 #define DT_VERS_1_6_3   DT_VERSION_NUMBER(1, 6, 3)
 108 #define DT_VERS_1_7     DT_VERSION_NUMBER(1, 7, 0)
 109 #define DT_VERS_1_7_1   DT_VERSION_NUMBER(1, 7, 1)
 110 #define DT_VERS_1_8     DT_VERSION_NUMBER(1, 8, 0)
 111 #define DT_VERS_1_8_1   DT_VERSION_NUMBER(1, 8, 1)
 112 #define DT_VERS_1_9     DT_VERSION_NUMBER(1, 9, 0)
 113 #define DT_VERS_LATEST  DT_VERS_1_9
 114 #define DT_VERS_STRING  "Sun D 1.9"

 115 
 116 const dt_version_t _dtrace_versions[] = {
 117         DT_VERS_1_0,    /* D API 1.0.0 (PSARC 2001/466) Solaris 10 FCS */
 118         DT_VERS_1_1,    /* D API 1.1.0 Solaris Express 6/05 */
 119         DT_VERS_1_2,    /* D API 1.2.0 Solaris 10 Update 1 */
 120         DT_VERS_1_2_1,  /* D API 1.2.1 Solaris Express 4/06 */
 121         DT_VERS_1_2_2,  /* D API 1.2.2 Solaris Express 6/06 */
 122         DT_VERS_1_3,    /* D API 1.3 Solaris Express 10/06 */
 123         DT_VERS_1_4,    /* D API 1.4 Solaris Express 2/07 */
 124         DT_VERS_1_4_1,  /* D API 1.4.1 Solaris Express 4/07 */
 125         DT_VERS_1_5,    /* D API 1.5 Solaris Express 7/07 */
 126         DT_VERS_1_6,    /* D API 1.6 */
 127         DT_VERS_1_6_1,  /* D API 1.6.1 */
 128         DT_VERS_1_6_2,  /* D API 1.6.2 */
 129         DT_VERS_1_6_3,  /* D API 1.6.3 */
 130         DT_VERS_1_7,    /* D API 1.7 */
 131         DT_VERS_1_7_1,  /* D API 1.7.1 */
 132         DT_VERS_1_8,    /* D API 1.8 */
 133         DT_VERS_1_8_1,  /* D API 1.8.1 */
 134         DT_VERS_1_9,    /* D API 1.9 */

 135         0
 136 };
 137 
 138 /*
 139  * Table of global identifiers.  This is used to populate the global identifier
 140  * hash when a new dtrace client open occurs.  For more info see dt_ident.h.
 141  * The global identifiers that represent functions use the dt_idops_func ops
 142  * and specify the private data pointer as a prototype string which is parsed
 143  * when the identifier is first encountered.  These prototypes look like ANSI
 144  * C function prototypes except that the special symbol "@" can be used as a
 145  * wildcard to represent a single parameter of any type (i.e. any dt_node_t).
 146  * The standard "..." notation can also be used to represent varargs.  An empty
 147  * parameter list is taken to mean void (that is, no arguments are permitted).
 148  * A parameter enclosed in square brackets (e.g. "[int]") denotes an optional
 149  * argument.
 150  */
 151 static const dt_ident_t _dtrace_globals[] = {
 152 { "alloca", DT_IDENT_FUNC, 0, DIF_SUBR_ALLOCA, DT_ATTR_STABCMN, DT_VERS_1_0,
 153         &dt_idops_func, "void *(size_t)" },
 154 { "arg0", DT_IDENT_SCALAR, 0, DIF_VAR_ARG0, DT_ATTR_STABCMN, DT_VERS_1_0,




  93  * modification to the version number.
  94  */
  95 #define DT_VERS_1_0     DT_VERSION_NUMBER(1, 0, 0)
  96 #define DT_VERS_1_1     DT_VERSION_NUMBER(1, 1, 0)
  97 #define DT_VERS_1_2     DT_VERSION_NUMBER(1, 2, 0)
  98 #define DT_VERS_1_2_1   DT_VERSION_NUMBER(1, 2, 1)
  99 #define DT_VERS_1_2_2   DT_VERSION_NUMBER(1, 2, 2)
 100 #define DT_VERS_1_3     DT_VERSION_NUMBER(1, 3, 0)
 101 #define DT_VERS_1_4     DT_VERSION_NUMBER(1, 4, 0)
 102 #define DT_VERS_1_4_1   DT_VERSION_NUMBER(1, 4, 1)
 103 #define DT_VERS_1_5     DT_VERSION_NUMBER(1, 5, 0)
 104 #define DT_VERS_1_6     DT_VERSION_NUMBER(1, 6, 0)
 105 #define DT_VERS_1_6_1   DT_VERSION_NUMBER(1, 6, 1)
 106 #define DT_VERS_1_6_2   DT_VERSION_NUMBER(1, 6, 2)
 107 #define DT_VERS_1_6_3   DT_VERSION_NUMBER(1, 6, 3)
 108 #define DT_VERS_1_7     DT_VERSION_NUMBER(1, 7, 0)
 109 #define DT_VERS_1_7_1   DT_VERSION_NUMBER(1, 7, 1)
 110 #define DT_VERS_1_8     DT_VERSION_NUMBER(1, 8, 0)
 111 #define DT_VERS_1_8_1   DT_VERSION_NUMBER(1, 8, 1)
 112 #define DT_VERS_1_9     DT_VERSION_NUMBER(1, 9, 0)
 113 #define DT_VERS_1_10    DT_VERSION_NUMBER(1, 10, 0)
 114 #define DT_VERS_LATEST  DT_VERS_1_10
 115 #define DT_VERS_STRING  "Sun D 1.10"
 116 
 117 const dt_version_t _dtrace_versions[] = {
 118         DT_VERS_1_0,    /* D API 1.0.0 (PSARC 2001/466) Solaris 10 FCS */
 119         DT_VERS_1_1,    /* D API 1.1.0 Solaris Express 6/05 */
 120         DT_VERS_1_2,    /* D API 1.2.0 Solaris 10 Update 1 */
 121         DT_VERS_1_2_1,  /* D API 1.2.1 Solaris Express 4/06 */
 122         DT_VERS_1_2_2,  /* D API 1.2.2 Solaris Express 6/06 */
 123         DT_VERS_1_3,    /* D API 1.3 Solaris Express 10/06 */
 124         DT_VERS_1_4,    /* D API 1.4 Solaris Express 2/07 */
 125         DT_VERS_1_4_1,  /* D API 1.4.1 Solaris Express 4/07 */
 126         DT_VERS_1_5,    /* D API 1.5 Solaris Express 7/07 */
 127         DT_VERS_1_6,    /* D API 1.6 */
 128         DT_VERS_1_6_1,  /* D API 1.6.1 */
 129         DT_VERS_1_6_2,  /* D API 1.6.2 */
 130         DT_VERS_1_6_3,  /* D API 1.6.3 */
 131         DT_VERS_1_7,    /* D API 1.7 */
 132         DT_VERS_1_7_1,  /* D API 1.7.1 */
 133         DT_VERS_1_8,    /* D API 1.8 */
 134         DT_VERS_1_8_1,  /* D API 1.8.1 */
 135         DT_VERS_1_9,    /* D API 1.9 */
 136         DT_VERS_1_10,   /* D API 1.10 */
 137         0
 138 };
 139 
 140 /*
 141  * Table of global identifiers.  This is used to populate the global identifier
 142  * hash when a new dtrace client open occurs.  For more info see dt_ident.h.
 143  * The global identifiers that represent functions use the dt_idops_func ops
 144  * and specify the private data pointer as a prototype string which is parsed
 145  * when the identifier is first encountered.  These prototypes look like ANSI
 146  * C function prototypes except that the special symbol "@" can be used as a
 147  * wildcard to represent a single parameter of any type (i.e. any dt_node_t).
 148  * The standard "..." notation can also be used to represent varargs.  An empty
 149  * parameter list is taken to mean void (that is, no arguments are permitted).
 150  * A parameter enclosed in square brackets (e.g. "[int]") denotes an optional
 151  * argument.
 152  */
 153 static const dt_ident_t _dtrace_globals[] = {
 154 { "alloca", DT_IDENT_FUNC, 0, DIF_SUBR_ALLOCA, DT_ATTR_STABCMN, DT_VERS_1_0,
 155         &dt_idops_func, "void *(size_t)" },
 156 { "arg0", DT_IDENT_SCALAR, 0, DIF_VAR_ARG0, DT_ATTR_STABCMN, DT_VERS_1_0,