Print this page
4474 DTrace Userland CTF Support
4475 DTrace userland Keyword
4476 DTrace tests should be better citizens
4479 pid provider types
4480 dof emulation missing checks
Reviewed by: Bryan Cantrill <bryan@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdtrace/common/dt_grammar.y
          +++ new/usr/src/lib/libdtrace/common/dt_grammar.y
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17   17   * If applicable, add the following below this CDDL HEADER, with the
  18   18   * fields enclosed by brackets "[]" replaced with your own identifying
  19   19   * information: Portions Copyright [yyyy] [name of copyright owner]
  20   20   *
  21   21   * CDDL HEADER END
  22   22   *
  23   23   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26      -
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
       26 +/*
       27 + * Copyright (c) 2013 by Delphix. All rights reserved.
       28 + * Copyright (c) 2013, Joyent, Inc. All rights reserved.
       29 + */
  28   30  
  29   31  #include <dt_impl.h>
  30   32  
  31   33  #define OP1(op, c)      dt_node_op1(op, c)
  32   34  #define OP2(op, l, r)   dt_node_op2(op, l, r)
  33   35  #define OP3(x, y, z)    dt_node_op3(x, y, z)
  34   36  #define LINK(l, r)      dt_node_link(l, r)
  35   37  #define DUP(s)          strdup(s)
  36   38  
  37   39  %}
↓ open down ↓ 57 lines elided ↑ open up ↑
  95   97  %token  DT_KEY_SHORT
  96   98  %token  DT_KEY_SIGNED
  97   99  %token  DT_KEY_STATIC
  98  100  %token  DT_KEY_STRING
  99  101  %token  DT_KEY_STRUCT
 100  102  %token  DT_KEY_SWITCH
 101  103  %token  DT_KEY_THIS
 102  104  %token  DT_KEY_TYPEDEF
 103  105  %token  DT_KEY_UNION
 104  106  %token  DT_KEY_UNSIGNED
      107 +%token  DT_KEY_USERLAND
 105  108  %token  DT_KEY_VOID
 106  109  %token  DT_KEY_VOLATILE
 107  110  %token  DT_KEY_WHILE
 108  111  %token  DT_KEY_XLATOR
 109  112  
 110  113  %token  DT_TOK_EPRED
 111  114  %token  DT_CTX_DEXPR
 112  115  %token  DT_CTX_DPROG
 113  116  %token  DT_CTX_DTYPE
 114  117  %token  DT_TOK_EOF      0
↓ open down ↓ 511 lines elided ↑ open up ↑
 626  629  
 627  630  type_specifier: DT_KEY_VOID { $$ = dt_decl_spec(CTF_K_INTEGER, DUP("void")); }
 628  631          |       DT_KEY_CHAR { $$ = dt_decl_spec(CTF_K_INTEGER, DUP("char")); }
 629  632          |       DT_KEY_SHORT { $$ = dt_decl_attr(DT_DA_SHORT); }
 630  633          |       DT_KEY_INT { $$ = dt_decl_spec(CTF_K_INTEGER, DUP("int")); }
 631  634          |       DT_KEY_LONG { $$ = dt_decl_attr(DT_DA_LONG); }
 632  635          |       DT_KEY_FLOAT { $$ = dt_decl_spec(CTF_K_FLOAT, DUP("float")); }
 633  636          |       DT_KEY_DOUBLE { $$ = dt_decl_spec(CTF_K_FLOAT, DUP("double")); }
 634  637          |       DT_KEY_SIGNED { $$ = dt_decl_attr(DT_DA_SIGNED); }
 635  638          |       DT_KEY_UNSIGNED { $$ = dt_decl_attr(DT_DA_UNSIGNED); }
      639 +        |       DT_KEY_USERLAND { $$ = dt_decl_attr(DT_DA_USER); }
 636  640          |       DT_KEY_STRING {
 637  641                          $$ = dt_decl_spec(CTF_K_TYPEDEF, DUP("string"));
 638  642                  }
 639  643          |       DT_TOK_TNAME { $$ = dt_decl_spec(CTF_K_TYPEDEF, $1); }
 640  644          |       struct_or_union_specifier
 641  645          |       enum_specifier
 642  646          ;
 643  647  
 644  648  type_qualifier: DT_KEY_CONST { $$ = dt_decl_attr(DT_DA_CONST); }
 645  649          |       DT_KEY_RESTRICT { $$ = dt_decl_attr(DT_DA_RESTRICT); }
↓ open down ↓ 189 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX