Print this page
4477 DTrace should speak JSON
Reviewed by: Bryan Cantrill <bmc@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/dtrace.h
          +++ new/usr/src/uts/common/sys/dtrace.h
↓ open down ↓ 281 lines elided ↑ open up ↑
 282  282  #define DIF_SUBR_HTONLL                 37
 283  283  #define DIF_SUBR_NTOHS                  38
 284  284  #define DIF_SUBR_NTOHL                  39
 285  285  #define DIF_SUBR_NTOHLL                 40
 286  286  #define DIF_SUBR_INET_NTOP              41
 287  287  #define DIF_SUBR_INET_NTOA              42
 288  288  #define DIF_SUBR_INET_NTOA6             43
 289  289  #define DIF_SUBR_TOUPPER                44
 290  290  #define DIF_SUBR_TOLOWER                45
 291  291  #define DIF_SUBR_GETF                   46
      292 +#define DIF_SUBR_JSON                   47
      293 +#define DIF_SUBR_STRTOLL                48
 292  294  
 293      -#define DIF_SUBR_MAX                    46      /* max subroutine value */
      295 +#define DIF_SUBR_MAX                    48      /* max subroutine value */
 294  296  
 295  297  typedef uint32_t dif_instr_t;
 296  298  
 297  299  #define DIF_INSTR_OP(i)                 (((i) >> 24) & 0xff)
 298  300  #define DIF_INSTR_R1(i)                 (((i) >> 16) & 0xff)
 299  301  #define DIF_INSTR_R2(i)                 (((i) >>  8) & 0xff)
 300  302  #define DIF_INSTR_RD(i)                 ((i) & 0xff)
 301  303  #define DIF_INSTR_RS(i)                 ((i) & 0xff)
 302  304  #define DIF_INSTR_LABEL(i)              ((i) & 0xffffff)
 303  305  #define DIF_INSTR_VAR(i)                (((i) >>  8) & 0xffff)
↓ open down ↓ 2035 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX