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_as.c
          +++ new/usr/src/lib/libdtrace/common/dt_as.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 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 <sys/types.h>
  30   32  #include <strings.h>
  31   33  #include <stdlib.h>
  32   34  #include <assert.h>
  33   35  
  34   36  #include <dt_impl.h>
  35   37  #include <dt_parser.h>
  36   38  #include <dt_as.h>
  37   39  
↓ open down ↓ 80 lines elided ↑ open up ↑
 118  120                  dvp->dtdv_scope = DIFV_SCOPE_THREAD;
 119  121          else
 120  122                  dvp->dtdv_scope = DIFV_SCOPE_GLOBAL;
 121  123  
 122  124          if (idp->di_flags & DT_IDFLG_DIFR)
 123  125                  dvp->dtdv_flags |= DIFV_F_REF;
 124  126          if (idp->di_flags & DT_IDFLG_DIFW)
 125  127                  dvp->dtdv_flags |= DIFV_F_MOD;
 126  128  
 127  129          bzero(&dn, sizeof (dn));
 128      -        dt_node_type_assign(&dn, idp->di_ctfp, idp->di_type);
      130 +        dt_node_type_assign(&dn, idp->di_ctfp, idp->di_type, B_FALSE);
 129  131          dt_node_diftype(pcb->pcb_hdl, &dn, &dvp->dtdv_type);
 130  132  
 131  133          idp->di_flags &= ~(DT_IDFLG_DIFR | DT_IDFLG_DIFW);
 132  134          return (0);
 133  135  }
 134  136  
 135  137  static ssize_t
 136  138  dt_copystr(const char *s, size_t n, size_t off, dt_pcb_t *pcb)
 137  139  {
 138  140          bcopy(s, pcb->pcb_difo->dtdo_strtab + off, n);
↓ open down ↓ 363 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX