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_impl.h
          +++ new/usr/src/lib/libdtrace/common/dt_impl.h
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  /*
  28   28   * Copyright (c) 2013, Joyent, Inc. All rights reserved.
  29      - * Copyright (c) 2012 by Delphix. All rights reserved.
       29 + * Copyright (c) 2011, 2014 by Delphix. All rights reserved.
  30   30   */
  31   31  
  32   32  #ifndef _DT_IMPL_H
  33   33  #define _DT_IMPL_H
  34   34  
  35   35  #include <sys/param.h>
  36   36  #include <sys/objfs.h>
  37   37  #include <setjmp.h>
  38   38  #include <libctf.h>
  39   39  #include <dtrace.h>
↓ open down ↓ 273 lines elided ↑ open up ↑
 313  313          void *dt_bufarg;        /* buffered handler argument */
 314  314          dt_dof_t dt_dof;        /* DOF generation buffers (see dt_dof.c) */
 315  315          struct utsname dt_uts;  /* uname(2) information for system */
 316  316          dt_list_t dt_lib_dep;   /* scratch linked-list of lib dependencies */
 317  317          dt_list_t dt_lib_dep_sorted;    /* dependency sorted library list */
 318  318          dtrace_flowkind_t dt_flow;      /* flow kind */
 319  319          const char *dt_prefix;  /* recommended flow prefix */
 320  320          int dt_indent;          /* recommended flow indent */
 321  321          dtrace_epid_t dt_last_epid;     /* most recently consumed EPID */
 322  322          uint64_t dt_last_timestamp;     /* most recently consumed timestamp */
      323 +        boolean_t dt_has_sugar; /* syntactic sugar used? */
 323  324  };
 324  325  
 325  326  /*
 326  327   * Values for the user arg of the ECB.
 327  328   */
 328  329  #define DT_ECB_DEFAULT          0
 329  330  #define DT_ECB_ERROR            1
 330  331  
 331  332  /*
 332  333   * Values for the dt_linkmode property, which is used by the assembler when
↓ open down ↓ 357 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX